[Patch 6/17] Migrate excess precision logic to use TARGET_EXCESS_PRECISION
[gcc.git] / gcc / ChangeLog
1 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2
3 * toplev.c (init_excess_precision): Delete most logic.
4 * tree.c (excess_precision_type): Rewrite to use
5 TARGET_EXCESS_PRECISION.
6 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
7 more generic fashion.
8 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
9 __STDC_WANT_IEC_60559_TYPES_EXT__.
10
11 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
12
13 * common.opt (fpermitted-flt-eval-methods): New.
14 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
15 * flag_types.h (permitted_flt_eval_methods): New.
16
17 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
18
19 * config/m68k/m68k.c (m68k_excess_precision): New.
20 (TARGET_C_EXCESS_PRECISION): Define.
21
22 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
23
24 * config/s390/s390.c (s390_excess_precision): New.
25 (TARGET_C_EXCESS_PRECISION): Define.
26
27 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
28
29 * config/i386/i386.c (ix86_excess_precision): New.
30 (TARGET_C_EXCESS_PRECISION): Define.
31
32 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
33
34 * target.def (excess_precision): New hook.
35 * target.h (flt_eval_method): New.
36 (excess_precision_type): Likewise.
37 * targhooks.c (default_excess_precision): New.
38 * targhooks.h (default_excess_precision): New.
39 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
40 * doc/tm.texi: Regenerate.
41
42 2016-11-23 Martin Sebor <msebor@redhat.com>
43
44 PR middle-end/78461
45 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
46 set the minimum number of bytes for an unknown string to zero.
47
48 2016-11-23 Martin Jambor <mjambor@suse.cz>
49 Martin Liska <mliska@suse.cz>
50
51 * hsa-builtins.def: New file.
52 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
53 * builtins.def: Include hsa-builtins.def.
54 (DEF_HSA_BUILTIN): New macro.
55 * dumpfile.h (OPTGROUP_OPENMP): Define.
56 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
57 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
58 GF_OMP_FOR_GRID_GROUP_ITER.
59 (gimple_omp_for_grid_phony): Added checking assert.
60 (gimple_omp_for_set_grid_phony): Likewise.
61 (gimple_omp_for_grid_intra_group): New function.
62 (gimple_omp_for_set_grid_intra_group): Likewise.
63 (gimple_omp_for_grid_group_iter): Likewise.
64 (gimple_omp_for_set_grid_group_iter): Likewise.
65 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
66 previosuly only distribute loop was permitted.
67 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
68 (grid_get_kernel_launch_attributes): Support multiple HSA grid
69 dimensions.
70 (grid_expand_omp_for_loop): Likewise and also support standalone
71 distribute constructs. New parameter INTRA_GROUP, updated both users.
72 (grid_expand_target_grid_body): Support standalone distribute
73 constructs.
74 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
75 (pass_data_expand_omp_ssa): Likewise.
76 (pass_data_omp_device_lower): Likewsie.
77 (pass_data_lower_omp): Likewise.
78 (pass_data_diagnose_omp_blocks): Likewise.
79 (pass_data_oacc_device_lower): Likewise.
80 (pass_data_omp_target_link): Likewise.
81 (grid_lastprivate_predicate): New function.
82 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
83 gridified loops.
84 (lower_omp_for): Support standalone distribute constructs.
85 (grid_prop): New type.
86 (grid_safe_assignment_p): Check for assignments to group_sizes, new
87 parameter GRID.
88 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
89 it to callee.
90 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
91 optimization info messages.
92 (grid_find_single_omp_among_assignments): Likewise.
93 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
94 (grid_parallel_clauses_gridifiable): New function.
95 (grid_inner_loop_gridifiable_p): Likewise.
96 (grid_dist_follows_simple_pattern): Likewise.
97 (grid_gfor_follows_tiling_pattern): Likewise.
98 (grid_call_permissible_in_distribute_p): Likewise.
99 (grid_handle_call_in_distribute): Likewise.
100 (grid_dist_follows_tiling_pattern): Likewise.
101 (grid_target_follows_gridifiable_pattern): Support standalone distribute
102 constructs.
103 (grid_var_segment): New enum.
104 (grid_mark_variable_segment): New function.
105 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
106 if a new argument says so.
107 (grid_process_grid_body): New function.
108 (grid_eliminate_combined_simd_part): Likewise.
109 (grid_mark_tiling_loops): Likewise.
110 (grid_mark_tiling_parallels_and_loops): Likewise.
111 (grid_process_kernel_body_copy): Support standalone distribute
112 constructs.
113 (grid_attempt_target_gridification): New grid variable holding overall
114 gridification state. Support standalone distribute constructs and
115 collapse clauses.
116 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
117 * hsa.h (hsa_bb): Add method method append_phi.
118 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
119 occurences in all files too.
120 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
121 (is_a_helper <hsa_insn_br *>::test): New function.
122 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
123 branch instructions.
124 (hsa_insn_signal): Make a direct descendant of
125 hsa_insn_basic. Add memorder constructor parameter and
126 m_memory_order and m_signalop member variables.
127 (hsa_insn_queue): Changed constructor parameters to common form.
128 Added m_segment and m_memory_order member variables.
129 (hsa_summary_t): Add private member function
130 process_gpu_implementation_attributes.
131 (hsa_function_summary): Rename m_binded_function to
132 m_bound_function.
133 (hsa_insn_basic_p): Remove typedef.
134 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
135 (hsa_op_reg_p): Remove typedef.
136 (hsa_function_representation): Change hsa_op_reg_p into plain
137 pointers.
138 (hsa_insn_phi): Removed new and delete operators.
139 (hsa_insn_br): Likewise.
140 (hsa_insn_cbr): Likewise.
141 (hsa_insn_sbr): Likewise.
142 (hsa_insn_cmp): Likewise.
143 (hsa_insn_mem): Likewise.
144 (hsa_insn_atomic): Likewise.
145 (hsa_insn_signal): Likewise.
146 (hsa_insn_seg): Likewise.
147 (hsa_insn_call): Likewise.
148 (hsa_insn_arg_block): Likewise.
149 (hsa_insn_comment): Likewise.
150 (hsa_insn_srctype): Likewise.
151 (hsa_insn_packed): Likewise.
152 (hsa_insn_cvt): Likewise.
153 (hsa_insn_alloca): Likewise.
154 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
155 (process_gpu_implementation_attributes): New function.
156 (link_functions): Move some functionality into it. Adjust after
157 renaming m_binded_functions to m_bound_functions.
158 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
159 to the list of instructions with no output registers.
160 (get_in_type): Return this if it is a register of
161 matching size.
162 (hsa_get_declaration_name): Moved to...
163 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
164 temporary string on an obstack instead from ggc.
165 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
166 down to two overloads.
167 (hsa_allocp_operand_address): Removed.
168 (hsa_allocp_operand_immed): Likewise.
169 (hsa_allocp_operand_reg): Likewise.
170 (hsa_allocp_operand_code_list): Likewise.
171 (hsa_allocp_operand_operand_list): Likewise.
172 (hsa_allocp_inst_basic): Likewise.
173 (hsa_allocp_inst_phi): Likewise.
174 (hsa_allocp_inst_mem): Likewise.
175 (hsa_allocp_inst_atomic): Likewise.
176 (hsa_allocp_inst_signal): Likewise.
177 (hsa_allocp_inst_seg): Likewise.
178 (hsa_allocp_inst_cmp): Likewise.
179 (hsa_allocp_inst_br): Likewise.
180 (hsa_allocp_inst_sbr): Likewise.
181 (hsa_allocp_inst_call): Likewise.
182 (hsa_allocp_inst_arg_block): Likewise.
183 (hsa_allocp_inst_comment): Likewise.
184 (hsa_allocp_inst_queue): Likewise.
185 (hsa_allocp_inst_srctype): Likewise.
186 (hsa_allocp_inst_packed): Likewise.
187 (hsa_allocp_inst_cvt): Likewise.
188 (hsa_allocp_inst_alloca): Likewise.
189 (hsa_allocp_bb): Likewise.
190 (hsa_obstack): New.
191 (hsa_init_data_for_cfun): Initialize obstack.
192 (hsa_deinit_data_for_cfun): Release memory of the obstack.
193 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
194 (hsa_op_reg::operator new): Likewise.
195 (hsa_op_address::operator new): Likewise.
196 (hsa_op_code_list::operator new): Likewise.
197 (hsa_op_operand_list::operator new): Likewise.
198 (hsa_insn_basic::operator new): Likewise.
199 (hsa_insn_phi::operator new): Likewise.
200 (hsa_insn_br::operator new): Likewise.
201 (hsa_insn_sbr::operator new): Likewise.
202 (hsa_insn_cmp::operator new): Likewise.
203 (hsa_insn_mem::operator new): Likewise.
204 (hsa_insn_atomic::operator new): Likewise.
205 (hsa_insn_signal::operator new): Likewise.
206 (hsa_insn_seg::operator new): Likewise.
207 (hsa_insn_call::operator new): Likewise.
208 (hsa_insn_arg_block::operator new): Likewise.
209 (hsa_insn_comment::operator new): Likewise.
210 (hsa_insn_srctype::operator new): Likewise.
211 (hsa_insn_packed::operator new): Likewise.
212 (hsa_insn_cvt::operator new): Likewise.
213 (hsa_insn_alloca::operator new): Likewise.
214 (hsa_init_new_bb): Likewise.
215 (hsa_bb::append_phi): New function.
216 (gen_hsa_phi_from_gimple_phi): Use it.
217 (get_symbol_for_decl): Fix dinstinguishing between
218 global and local functions. Put local variables into a segment
219 according to their attribute or static flag, if there is one.
220 (hsa_insn_br::hsa_insn_br): New.
221 (hsa_insn_br::operator new): Likewise.
222 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
223 (query_hsa_grid_nodim): New function.
224 (multiply_grid_dim_characteristics): Likewise.
225 (gen_get_num_threads): Likewise.
226 (gen_get_num_teams): Reimplemented.
227 (gen_get_team_num): Likewise.
228 (gen_hsa_insns_for_known_library_call): Updated calls to the above
229 helper functions.
230 (get_memory_order_name): Removed.
231 (get_memory_order): Likewise.
232 (hsa_memorder_from_tree): New function.
233 (gen_hsa_ternary_atomic_for_builtin): Renamed to
234 gen_hsa_atomic_for_builtin, can also create signals.
235 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
236 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
237 (hsa_insn_atomic): Fix function comment.
238 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
239 ancestor constructor and initialization of new member variables.
240 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
241 member variables.
242 (hsa_get_host_function): Handle functions with no bound CPU
243 implementation. Fix binded to bound.
244 (get_brig_function_name): Likewise.
245 (HSA_SORRY_ATV): Remove semicolon after macro.
246 (HSA_SORRY_AT): Likewise.
247 (omp_simple_builtin::generate): Add missing semicolons.
248 (hsa_insn_phi::operator new): Removed.
249 (hsa_insn_br::operator new): Likewise.
250 (hsa_insn_cbr::operator new): Likewise.
251 (hsa_insn_sbr::operator new): Likewise.
252 (hsa_insn_cmp::operator new): Likewise.
253 (hsa_insn_mem::operator new): Likewise.
254 (hsa_insn_atomic::operator new): Likewise.
255 (hsa_insn_signal::operator new): Likewise.
256 (hsa_insn_seg::operator new): Likewise.
257 (hsa_insn_call::operator new): Likewise.
258 (hsa_insn_arg_block::operator new): Likewise.
259 (hsa_insn_comment::operator new): Likewise.
260 (hsa_insn_srctype::operator new): Likewise.
261 (hsa_insn_packed::operator new): Likewise.
262 (hsa_insn_cvt::operator new): Likewise.
263 (hsa_insn_alloca::operator new): Likewise.
264 (get_symbol_for_decl): Accept CONST_DECLs, put them to
265 readonly segment.
266 (gen_hsa_addr): Also process CONST_DECLs.
267 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
268 copies.
269 (gen_hsa_unary_operation): Make sure the function does
270 not use bittype source type for firstbit and lastbit operations.
271 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
272 source type.
273 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
274 instruction.
275 (emit_branch_insn): Renamed to emit_cond_branch_insn.
276 Emit the width stored in the class.
277 (emit_generic_branch_insn): New function.
278 (emit_insn): Call emit_generic_branch_insn.
279 (emit_signal_insn): Remove obsolete comment. Update
280 member variable name, pick a type according to profile.
281 (emit_alloca_insn): Remove obsolete comment.
282 (emit_atomic_insn): Likewise.
283 (emit_queue_insn): Get segment and memory order from the IR object.
284 (hsa_brig_section): Make allocate_new_chunk, chunks
285 and cur_chunk provate, add a default NULL parameter to add method.
286 (hsa_brig_section::add): Added a new parameter, store pointer to
287 output data there if it is non-NULL.
288 (emit_function_directives): Use this new parameter instead of
289 calculating the pointer itself, fix function comment.
290 (hsa_brig_emit_function): Add forgotten endian conversion.
291 (hsa_output_kernels): Remove unnecessary building of
292 kernel_dependencies_vector_type.
293 (emit_immediate_operand): Declare.
294 (emit_directive_variable): Also emit initializers of CONST_DECLs.
295 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
296 (verify_function_arguments): Properly detect variadic
297 arguments.
298 * hsa-dump.c (hsa_width_specifier_name): New function.
299 (dump_hsa_insn_1): Dump generic branch instructions, update signal
300 member variable name. Special dumping for queue objects.
301 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
302 m_binded_functions to m_bound_functions. Copy externally visible flag
303 to the node.
304 (ipa_hsa_write_summary): Likewise.
305 (ipa_hsa_read_section): Likewise.
306
307 2016-11-23 Richard Biener <rguenther@suse.de>
308
309 PR tree-optimization/78396
310 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
311 vectorize try vectorizing an if-converted body using BB vectorization.
312
313 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
314 Alan Hayward <alan.hayward@arm.com>
315 David Sherwood <david.sherwood@arm.com>
316
317 * rtlanal.c (subreg_get_info): Use more local variables.
318 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
319 occupies at least one register. Assume that full hard registers
320 have consistent endianness. Share previously-duplicated if block.
321 Rework the main handling so that it operates on independently-
322 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
323 to check lowpart offsets, without trying to find an equivalent
324 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
325 as a final register-endianness correction.
326
327 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
328
329 PR target/77881
330 PR bootstrap/78390
331 PR target/78438
332 PR bootstrap/78477
333 * combine.c (make_compound_operation_int): Do not convert a subreg of
334 a non-constant logical shift right to a zero_extract. Handle the case
335 where some zero bits have been shifted into the range covered by that
336 subreg.
337
338 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
339 Alan Hayward <alan.hayward@arm.com>
340 David Sherwood <david.sherwood@arm.com>
341
342 * rtl.h (subreg_size_offset_from_lsb): Declare.
343 (subreg_offset_from_lsb): New function.
344 (subreg_size_lowpart_offset): Declare.
345 (subreg_lowpart_offset): Turn into an inline function.
346 (subreg_size_highpart_offset): Declare.
347 (subreg_highpart_offset): Turn into an inline function.
348 * emit-rtl.c (subreg_size_lowpart_offset): New function.
349 (subreg_size_highpart_offset): Likewise
350 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
351
352 2016-11-23 Richard Biener <rguenther@suse.de>
353
354 PR tree-optimization/78482
355 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
356 (remove_forwarder_block_with_phi): When merging with a loop
357 header creates a new latch reset number of iteration information
358 of the loop.
359
360 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
361
362 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
363 (*ashrsi3_extend0): ...this. Accept constant integers.
364 (*ashrsi3_extend2): Rename to...
365 (*ashrsi3_extend1): ...this.
366 (*ashrsi3_extend2): New pattern.
367 (*lshrsi3_extend1): Accept constant integers.
368 (*lshrsi3_extend2): Fix condition on operand 2.
369
370 2016-11-23 Martin Liska <mliska@suse.cz>
371
372 * config/i386/i386.c: Initialize function pointer to NULL.
373
374 2016-11-23 Bin Cheng <bin.cheng@arm.com>
375
376 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
377 for A == C1 ? A : C2 to below.
378 * match.pd: Move from above to here:
379 (cond (eq (convert1? x) c1) (convert2? x) c2)
380 -> (cond (eq x c1) c1 c2).
381
382 2016-11-23 Bin Cheng <bin.cheng@arm.com>
383
384 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
385 for A cmp C1 ? A : C2 to below, also simplify remaining code.
386 * match.pd: Move and extend simplification from above to here:
387 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
388 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
389 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
390
391 2016-11-23 Martin Liska <mliska@suse.cz>
392 Martin Jambor <mjambor@suse.cz>
393
394 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
395
396 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
397
398 PR target/78213
399 * opts.c (finish_options): Set -fsyntax-only if running self
400 tests.
401
402 2016-11-23 Richard Biener <rguenther@suse.de>
403
404 PR middle-end/71762
405 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
406 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
407
408 2016-11-23 Richard Biener <rguenther@suse.de>
409
410 PR lto/78472
411 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
412 fields.
413
414 2016-11-23 Richard Biener <rguenther@suse.de>
415 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
416
417 PR tree-optimization/78154
418 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
419 returns it's argument and the argument is nonnull.
420 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
421 ATT_RETNONNULL_NOTHROW_LEAF.
422 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
423 ATTR_RETNONNULL_NOTHROW_LEAF.
424 (BUILT_IN_STPCPY): Likewise.
425 (BUILT_IN_STPNCPY): Likewise.
426 (BUILT_IN_MEMPCPY_CHK): Likewise.
427 (BUILT_IN_STPCPY_CHK): Likewise.
428 (BUILT_IN_STPNCPY_CHK): Likewise.
429 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
430 (BUILT_IN_STRNCAT): Likewise.
431 (BUILT_IN_STRNCPY): Likewise.
432 (BUILT_IN_MEMSET_CHK): Likewise.
433 (BUILT_IN_STRCAT_CHK): Likewise.
434 (BUILT_IN_STRCPY_CHK): Likewise.
435 (BUILT_IN_STRNCAT_CHK): Likewise.
436 (BUILT_IN_STRNCPY_CHK): Likewise.
437
438 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
439
440 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
441 * fold-const.h (tree_expr_nonzero_p) : Declare.
442 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
443
444 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
445
446 * system.h (HAVE_DESIGNATED_INITIALIZERS,
447 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
448 "defined" in macros.
449 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
450 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
451 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
452
453 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
454
455 PR target/60300
456 * config/avr/constraints.md (Csp): Widen range to [-11..6].
457 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
458 of RCALLs in prologue to 3.
459
460 2016-11-22 Michael Collison <michael.collison@arm.com>
461
462 * config/aarch64/aarch64-protos.h
463 (aarch64_and_split_imm1, aarch64_and_split_imm2)
464 (aarch64_and_bitmask_imm): New prototypes
465 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
466 New overloaded function to create bit mask covering the
467 lowest to highest bits set.
468 (aarch64_and_split_imm2): New overloaded functions to create bit
469 mask of zeros between first and last bit set.
470 (aarch64_and_bitmask_imm): New function to determine if a integer
471 is a valid two instruction "and" operation.
472 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
473 allowing wider range of constants with "and" operations.
474 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
475 "and" operator from matching restricted constant range used for
476 ior and xor operators.
477 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
478 for constants in "and" operantions.
479 (UsP constraint): New DImode constraint for constants in "and" operations.
480 * config/aarch64/iterators.md (lconst2): New mode iterator.
481 (LOGICAL2): New code iterator.
482 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
483 predicate
484 (aarch64_logical_and_operand): New predicate allowing extended constants
485 for "and" operations.
486
487 2016-11-22 Walter Lee <walt@tilera.com>
488
489 * config/tilegx/tilegx.md (trap): New pattern.
490 * config/tilepro/tilepro.md (trap): Likewise.
491
492 2016-11-22 Walter Lee <walt@tilera.com>
493
494 * config/tilegx/tilegx.md (*zero_extract): Use
495 define_insn_and_split instead of define_insn; Handle pos + size >
496 64.
497 (*sign_extract): Likewise.
498
499 2016-11-22 Marek Polacek <polacek@redhat.com>
500
501 PR tree-optimization/78455
502 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
503
504 2016-11-22 Ian Lance Taylor <iant@golang.org>
505
506 PR go/78431
507 PR go/78432
508 * godump.c (go_format_type): Always pass alignment as 1 when
509 calling go_append_padding at end of struct/union.
510
511 2016-11-22 Jakub Jelinek <jakub@redhat.com>
512
513 PR target/78451
514 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
515 _mm512_setzero_hi): Removed.
516 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
517 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
518 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
519 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
520 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
521 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
522 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
523 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
524 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
525 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
526 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
527 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
528 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
529 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
530 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
531 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
532 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
533 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
534 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
535 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
536 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
537 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
538 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
539 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
540 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
541 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
542 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
543 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
544 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
545 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
546 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
547 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
548 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
549 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
550 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
551 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
552 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
553 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
554 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
555 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
556 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
557 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
558 _mm512_setzero_qi or _mm512_setzero_hi.
559 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
560 _mm512_maskz_dbsad_epu8): Formatting fixes.
561 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
562 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
563 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
564 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
565 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
566 _mm512_setzero_qi or _mm512_setzero_hi.
567
568 2016-11-22 Nathan Sidwell <nathan@acm.org>
569
570 * gcc-ar.c (main): Fix indentation.
571 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
572 * ggc-page.c (move_ptes_to_front): Fix formatting.
573 * hsa-dump.c (dump_has_cfun): Fix indentation.
574 * sel-sched-ir.h: Remove trailing blank lines.
575
576 2016-11-22 Jakub Jelinek <jakub@redhat.com>
577 Alexander Monakov <amonakov@ispras.ru>
578
579 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
580 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
581 (omp_clause_code_name): Add _simt_ name.
582 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
583 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
584 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
585 (scan_omp_simd): New function.
586 (scan_omp_1_stmt): Use it in target regions if needed.
587 (omp_max_vf): Don't max with omp_max_simt_vf.
588 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
589 OMP_CLAUSE__SIMT_ is present.
590 (lower_rec_input_clauses): Compute maybe_simt from presence of
591 OMP_CLAUSE__SIMT_.
592 (lower_lastprivate_clauses): Likewise.
593 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
594 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
595 * internal-fn.def (GOMP_USE_SIMT): New internal function.
596 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
597
598 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
599
600 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
601 (expand_GOMP_SIMT_VF): New.
602 (expand_GOMP_SIMT_LAST_LANE): New.
603 (expand_GOMP_SIMT_ORDERED_PRED): New.
604 (expand_GOMP_SIMT_VOTE_ANY): New.
605 (expand_GOMP_SIMT_XCHG_BFLY): New.
606 (expand_GOMP_SIMT_XCHG_IDX): New.
607 * internal-fn.def (GOMP_SIMT_LANE): New.
608 (GOMP_SIMT_VF): New.
609 (GOMP_SIMT_LAST_LANE): New.
610 (GOMP_SIMT_ORDERED_PRED): New.
611 (GOMP_SIMT_VOTE_ANY): New.
612 (GOMP_SIMT_XCHG_BFLY): New.
613 (GOMP_SIMT_XCHG_IDX): New.
614 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
615 (create_omp_child_function): ...here. Set "omp target entrypoint"
616 or "omp declare target" attribute based on is_gimple_omp_offloaded.
617 (omp_max_simt_vf): New. Use it...
618 (omp_max_vf): ...here.
619 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
620 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
621 (lower_omp_ordered): Likewise, for "ordered" lowering.
622 (expand_omp_simd): Add SIMT transforms.
623 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
624 (execute_omp_device_lower): New.
625 (pass_data_omp_device_lower): New.
626 (pass_omp_device_lower): New pass.
627 (make_pass_omp_device_lower): New.
628 * passes.def (pass_omp_device_lower): Position new pass.
629 * tree-pass.h (PROP_gimple_lomp_dev): Define.
630 (make_pass_omp_device_lower): Declare.
631
632 2016-11-22 Jakub Jelinek <jakub@redhat.com>
633
634 PR target/78451
635 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
636 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
637 _mm_setzero_di.
638 (_mm_maskz_load_epi64): Likewise.
639 (_mm_setzero_hi): Removed.
640 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
641 _mm_setzero_di.
642 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
643 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
644 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
645 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
646 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
647 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
648 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
649 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
650 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
651 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
652 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
653 Likewise.
654 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
655 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
656 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
657 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
658 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
659 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
660 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
661 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
662 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
663 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
664 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
665 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
666 instead of _mm_setzero_hi.
667 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
668 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
669 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
670 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
671 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
672 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
673 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
674 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
675 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
676 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
677 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
678 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
679 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
680 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
681 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
682 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
683 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
684 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
685 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
686 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
687 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
688 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
689 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
690 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
691 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
692 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
693 _mm_setzero_di.
694 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
695 instead of _mm_setzero_hi.
696 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
697 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
698 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
699 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
700 _mm_setzero_si128 instead of _mm_setzero_di.
701 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
702 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
703 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
704 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
705 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
706 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
707 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
708 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
709 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
710 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
711 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
712 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
713 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
714 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
715 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
716 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
717 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
718 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
719 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
720 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
721 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
722 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
723 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
724 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
725 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
726 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
727 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
728 _mm512_maskz_insertf32x8): Formatting fixes.
729 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
730 _mm_setzero_si128 instead of _mm_setzero_di.
731 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
732 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
733 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
734 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
735 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
736 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
737 _mm_setzero_si128 instead of _mm_setzero_di.
738 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
739 Likewise in macros.
740 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
741 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
742 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
743 _mm_setzero_si128 instead of _mm_setzero_hi.
744 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
745 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
746 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
747 instead of _mm_setzero_di.
748 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
749 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
750 _mm_setzero_hi.
751 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
752 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
753 _mm_setzero_hi.
754 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
755 _mm_setzero_di.
756 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
757 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
758 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
759
760 2016-11-22 Carl Love <cel@us.ibm.com>
761
762 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
763 equal and vector compare not equal. The vector compares take two
764 arguments of type vector bool char, vector bool short, vector bool int,
765 vector bool long long with the same return type.
766 * doc/extend.texi: Update built-in documentation file for the new
767 powerpc built-ins.
768
769 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
770
771 * Makefile.in ($(lang_checks_parallelized)): Fix detection
772 of -j argument.
773
774 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
775
776 * config.gcc: Allow new rmprofile value for configure option
777 --with-multilib-list.
778 * config/arm/t-rmprofile: New file.
779 * doc/install.texi (--with-multilib-list): Document new rmprofile value
780 for ARM.
781
782 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
783
784 PR target/78439
785 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
786 register operand in alternatives 4,5,6.
787
788 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
789
790 PR target/77904
791 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
792 in save register mask if it is needed.
793
794 2016-11-22 Jakub Jelinek <jakub@redhat.com>
795
796 PR tree-optimization/78436
797 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
798 (shift_bytes_in_array, shift_bytes_in_array_right,
799 merged_store_group::apply_stores): Formatting fixes.
800 (clear_bit_region): Likewise. Use memset.
801 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
802 instead of EXPR and inerted instead of inserted. Use memset instead
803 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
804 if shift_amnt is 0.
805
806 PR middle-end/78416
807 * expmed.c (expand_divmod): Use wide_int for computation of
808 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
809 Use size <= HOST_BITS_PER_WIDE_INT instead of
810 HOST_BITS_PER_WIDE_INT >= size.
811
812 PR tree-optimization/78445
813 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
814 any_complicated_phi, version loop even if flag_tree_loop_if_convert
815 is 1. Formatting fix.
816
817 2016-11-22 Martin Liska <mliska@suse.cz>
818
819 PR ipa/78309
820 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
821 (sem_function::get_hash): Use the new field.
822 (sem_function::parse): Remove an argument from ctor.
823 (sem_variable::parse): Likewise.
824 (sem_variable::get_hash): Use the new field.
825 (sem_item_optimizer::read_section): Use new ctor and set hash.
826 * ipa-icf.h: _hash is removed from sem_item::sem_item,
827 sem_variable::sem_variable, sem_function::sem_function.
828
829 2016-11-21 Jeff Law <law@redhat.com>
830
831 PR target/68538
832 * config/cris/cris.md: Don't call copy_to_mode_reg unless
833 can_create_pseudo_p is true.
834
835 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
836
837 PR target/68803
838 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
839 *rotldi3_insert_7): New define_insns.
840
841 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
842
843 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
844 so that DImode can be allocated to FP/vector registers in more
845 cases, and we can avoid direct move operations. If the register
846 needs reloading, prefer GPRs over FP/vector registers. In the
847 case of FPR vs. Altivec registers, prefer FPR registers unless we
848 have the ISA 3.0 reg+offset scalar instructions.
849 (movdi_internal64): Likewise.
850
851 2016-11-21 Jakub Jelinek <jakub@redhat.com>
852
853 PR middle-end/67335
854 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
855 for tmp simd array if DECL_NAME (parm) is NULL.
856
857 2016-11-20 Jeff Law <law@redhat.com>
858
859 PR target/25128
860 * config/m68k/predicates.md (swap_peephole_relational_operator): New
861 predicate.
862 * config/m68k/m68k.md (relational tests against 65535/65536): New
863 peephole2.
864
865 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
866
867 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
868
869 2016-11-21 Martin Sebor <msebor@redhat.com>
870
871 * doc/invoke.texi (-fprintf-return-value): Document that option
872 is enabled by default.
873
874 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
875
876 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
877 for-loop declaration of loop variable.
878 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
879 * config/avr/avr.c (avr_popcount_each_byte)
880 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
881 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
882 (avr_expand_epilogue, avr_function_arg_advance)
883 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
884 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
885 (avr_adjust_reg_alloc_order, output_reload_in_const)
886 (avr_conditional_register_usage, avr_find_unused_d_reg)
887 (avr_map_decompose, avr_fold_builtin): Same.
888
889 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
890
891 * config/avr/avr.c (avr_popcount): Remove static function.
892 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
893
894 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
895
896 * arm.opt (mapcs-float): Delete option.
897 * arm.c (arm_option_override): Remove hunk relating to
898 TARGET_APCS_FLOAT.
899 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
900
901 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
902
903 * tree-tailcall.c (process_assignment): Simplify the check for
904 a valid copy, allowing the source to be a local variable as
905 well as an SSA name.
906 (find_tail_calls): Allow copies between local variables to follow
907 the call. Allow the result to be stored in any local variable,
908 even if it's an aggregate.
909 (eliminate_tail_call): Check whether the result is an SSA name
910 before updating its SSA_NAME_DEF_STMT.
911
912 2016-11-21 David Malcolm <dmalcolm@redhat.com>
913
914 PR preprocessor/78324
915 * input.c (get_substring_ranges_for_loc): Fail gracefully if
916 -ftrack-macro-expansion has a value other than 2.
917
918 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
919
920 PR rtl-optimization/78400
921 * shrink-wrap.c (try_shrink_wrapping_separate): Call
922 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
923 and df_update_exit_block_uses.
924
925 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
926
927 PR c++/71973
928 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
929 new default-enabled warning..
930 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
931 (BT_PTR_CONST_STRING): Updated.
932 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
933 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
934 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
935 (strftime): Update builtin function.
936 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
937 * tree.h (const_tm_ptr_type_node): New type node.
938 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
939 const_tm_ptr_type_node.
940
941 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
942
943 PR tree-optimization/78413
944 * tree-if-conv.c (versionable_outer_loop_p): Require that both
945 inner and outer loop latches have single predecessors.
946
947 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
948
949 PR target/78093
950 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
951 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
952
953 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
954
955 * rtl.h: Adjust prototype.
956 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
957 (dead_or_set_regno_p): Likewise.
958
959 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
960
961 * rtl.h: Adjust prototype.
962 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
963
964 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
965
966 * function.c (contains): Change argument type to rtx_insn *.
967 (prologue_contains): Likewise.
968 (epilogue_contains): Likewise.
969 (prologue_epilogue_contains): Likewise.
970 * function.h: Adjust prototype.
971
972 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
973
974 * optabs.c (emit_libcall_block): Change argument type to
975 rtx_insn *.
976 * optabs.h: Adjust prototype.
977
978 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
979
980 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
981 (fixup_reorder_chain): Adjust.
982 * cfgrtl.h: Adjust prototype.
983
984 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
985
986 * rtl.h: Adjust prototype.
987 * rtlanal.c (replace_label_in_insn): Change argument type to
988 rtx_insn *.
989
990 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
991
992 * config/v850/v850.c (expand_prologue): Adjust.
993 (expand_epilogue): Likewise.
994 * expr.c (init_expr_target): Likewise.
995 * genrecog.c (print_subroutine): Always make the argument type
996 rtx_insn *.
997 * recog.h: Adjust prototype.
998
999 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1000
1001 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
1002 up variables to make some rtx_insn *.
1003 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1004 * config/arc/arc.c: Likewise.
1005 * config/arm/arm.c: Likewise.
1006 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
1007 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
1008 Likewise.
1009 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1010
1011 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1012
1013 * config/arm/arm.c (legitimize_pic_address): Change to use
1014 rtx_insn * as the type of variables.
1015 (arm_pic_static_addr): Likewise.
1016 (arm_emit_movpair): Likewise.
1017 * config/c6x/c6x.c (reorg_split_calls): Likewise.
1018 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
1019 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
1020 * config/frv/frv.md: Likewise.
1021 * config/i386/i386-protos.h: Likewise.
1022 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1023 (ix86_split_fp_branch): Likewise.
1024 (predict_jump): Likewise.
1025 * config/ia64/ia64.c: Likewise.
1026 * config/mcore/mcore.c: Likewise.
1027 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1028 * config/s390/s390.c: Likewise.
1029 * config/s390/s390.md: Likewise.
1030 * config/spu/spu.md: Likewise.
1031 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
1032 * lower-subreg.c (resolve_simple_move): Likewise.
1033
1034 2016-11-20 Jeff Law <law@redhat.com>
1035
1036 PR target/48551
1037 * reload.h (struct target_reload): Make x_double_reg_address_ok
1038 be per-mode rather.
1039 * reload.c (find_reloads_address): Check if double_reg_address_ok
1040 is true for the mode of the memory reference.
1041 * reload1.c (init_reload): Initialize double_reg_address_ok for
1042 each mode.
1043
1044 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
1045
1046 PR middle-end/61409
1047 * tree-ssa-uninit.c: Define new global max_phi_args.
1048 (compute_uninit_opnds_pos): Use max_phi_args.
1049 (prune_uninit_phi_opnds): Same.
1050 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
1051 missing NUM_PREDS in function comment.
1052 (can_one_predicate_be_invalidated_p): New.
1053 (can_chain_union_be_invalidated_p): New.
1054 (flatten_out_predicate_chains): New.
1055 (uninit_ops_invalidate_phi_use): New.
1056 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
1057
1058 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1059
1060 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
1061 * match.pd (A /[ex] B CMP C): New simplifications.
1062
1063 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
1064
1065 * match.pd (0 / X, X / X, X % X): New simplifications.
1066
1067 2016-11-19 Jakub Jelinek <jakub@redhat.com>
1068
1069 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
1070 when checking if callee's isa flags are subset of caller's isa flags.
1071 Fix comment wording.
1072
1073 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
1074 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
1075 instead and using = 0 instead of &= 0.
1076
1077 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
1078 ix86_add_new_builtins): Formatting fixes.
1079 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
1080 (ix86_get_builtin): Likewise.
1081
1082 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
1083 don't initialize it, don't use it for the case where it isn't
1084 provable %{z} nor using the same argument, instead move merge
1085 argument into a new pseudo and use that as target. Formatting fixes.
1086
1087 2016-11-19 Jeff Law <law@redhat.com>
1088
1089 PR target/25111
1090 * config/m68k/m68k.md (bsetdreg): New pattern.
1091 (bchgdreg, bclrdreg): Likewise.
1092
1093 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
1094
1095 PR target/78426
1096 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
1097 instead of force_reg.
1098 (sh_expand_setmem): Likewise.
1099
1100 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
1101
1102 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
1103
1104 2016-11-18 Walter Lee <walt@tilera.com>
1105
1106 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
1107 end-of-bundle marker for consecutive barriers.
1108
1109 2016-11-18 Walter Lee <walt@tilera.com>
1110
1111 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
1112
1113 2016-11-18 Jakub Jelinek <jakub@redhat.com>
1114
1115 PR middle-end/78419
1116 * multiple_target.c (get_attr_len): Start with argnum and increment
1117 argnum on every arg. Use strchr in a loop instead of counting commas
1118 manually.
1119 (get_attr_str): Increment argnum for every comma in the string.
1120 (separate_attrs): Use for instead of while loop, simplify.
1121 (expand_target_clones): Rename defenition argument to definition.
1122 Free attrs and attr_str even when diagnosing errors. Temporarily
1123 change input_location around targetm.target_option.valid_attribute_p
1124 calls. Don't emit warning or errors if that function fails.
1125
1126 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
1127
1128 PR debug/78191
1129 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
1130 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
1131 abbrev_opt_base_type_end only by increasing die_abbrev, before
1132 any other dies.
1133 (optimize_abbrev_table): Don't change abbrev numbers of
1134 base types and CU or optimize implicit consts in them if
1135 calc_base_type_die_sizes has been called during build_abbrev_table.
1136 (calc_base_type_die_sizes): If abbrev_opt_start, set
1137 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
1138
1139 2016-11-18 Jeff Law <law@redhat.com>
1140
1141 PR target/25112
1142 * config/m68k/m68k.c (moveq feeding equality comparison): New
1143 peepholes.
1144 * config/m68k/predicates.md (addq_subq_operand): New predicate.
1145 (equality_comparison_operator): Likewise.
1146
1147 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1148
1149 * rtlanal.c (load_extend_op): Move to...
1150 * rtl.h: ...here and make inline.
1151
1152 2016-11-18 Terry Guo <terry.guo@arm.com>
1153 Thomas Preud'homme <thomas.preudhomme@arm.com>
1154
1155 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
1156 * config/arm/arm-opts.h: Include arm-flags.h.
1157 (struct arm_arch_core_flag): Define.
1158 (arm_arch_core_flags): Define.
1159 * config/arm/arm-protos.h: Include arm-flags.h
1160 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
1161 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
1162 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
1163 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
1164 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
1165 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
1166 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
1167 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
1168 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
1169 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
1170 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
1171 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
1172 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
1173 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
1174 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
1175 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
1176 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
1177 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
1178 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
1179 ARM_FSET_CPU_SUBSET): Move to ...
1180 * config/arm/arm-flags.h: This new file.
1181 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
1182 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
1183 (TARGET_MODE_SPECS): Define.
1184 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
1185
1186 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1187
1188 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
1189 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
1190 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
1191 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
1192 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
1193 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
1194 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
1195 missing and make value unsigned.
1196 (arm_feature_set): Use unsigned entries instead of unsigned long.
1197
1198 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1199
1200 Re-apply after PR bootstrap/77359 is fixed:
1201 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1202
1203 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1204 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
1205 size needed.
1206
1207 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1208
1209 PR bootstrap/77359
1210 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
1211 variables in functions calling alloca. Also update the ASCII
1212 drawings.
1213 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
1214 (STACK_DYNAMIC_OFFSET): Likewise.
1215 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
1216 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
1217 macros to aix.h.
1218
1219 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1220 Alan Hayward <alan.hayward@arm.com>
1221 David Sherwood <david.sherwood@arm.com>
1222
1223 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
1224 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
1225 (add_const_value_attribute): Likewise.
1226 * explow.c (plus_constant): Likewise.
1227 * expmed.c (expand_mult, make_tree): Likewise.
1228 * expr.c (convert_modes): Likewise.
1229 * loop-doloop.c (doloop_optimize): Likewise.
1230 * postreload.c (reload_cse_simplify_set): Likewise.
1231 * simplify-rtx.c (simplify_const_unary_operation): Likewise
1232 (simplify_binary_operation_1, simplify_const_binary_operation):
1233 Likewise.
1234 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
1235 * wide-int.h: Update documentation to recommend rtx_mode_t
1236 instead of std::make_pair.
1237
1238 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
1239 Alan Hayward <alan.hayward@arm.com>
1240 David Sherwood <david.sherwood@arm.com>
1241
1242 * tree.h (SET_DECL_MODE): New macro.
1243 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
1244 (expand_gimple_basic_block): Likewise.
1245 * function.c (split_complex_args): Likeise.
1246 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1247 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
1248 * stor-layout.c (layout_decl, relayout_decl): Likewise.
1249 (finish_bitfield_representative): Likewise.
1250 * tree.c (make_node_stat): Likewise.
1251 * tree-inline.c (remap_ssa_name): Likewise.
1252 (tree_function_versioning): Likewise.
1253 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1254 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
1255 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1256 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1257 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1258 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1259 * varasm.c (make_debug_expr_from_rtl): Likewise.
1260
1261 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
1262
1263 PR rtl-optimization/71785
1264 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
1265 (duplicate_computed_gotos): New function.
1266 (pass_duplicate_computed_gotos::execute): Rewrite.
1267
1268 2016-11-17 Jeff Law <law@redhat.com>
1269
1270 PR target/47192
1271 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
1272 barrier prior to deallocating the stack.
1273
1274 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
1277 to make better use of cmem loads in the case where a single bit is
1278 being accessed.
1279 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
1280
1281 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
1282
1283 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
1284 F_AVX5124FMAPS.
1285 (isa_names_table): Handle new features.
1286
1287 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
1288 Andrew Senkevich <andrew.senkevich@intel.com>
1289
1290 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
1291 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
1292 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
1293 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
1294 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
1295 * config/i386/avx5124fmapsintrin.h: New file.
1296 * config/i386/avx5124vnniwintrin.h: Ditto.
1297 * config/i386/constraints.md (h): New constraint.
1298 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
1299 * config/i386/driver-i386.c (host_detect_local_cpu):
1300 Detect avx5124fmaps, avx5124vnniw.
1301 * config/i386/i386-builtin-types.def: Add types
1302 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
1303 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
1304 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
1305 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
1306 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
1307 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
1308 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
1309 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
1310 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
1311 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
1312 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
1313 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
1314 __builtin_ia32_vp4dpwssds_mask): New.
1315 * config/i386/i386-c.c (ix86_target_macros_internal):
1316 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
1317 * config/i386/i386-modes.def: Fixed comment typos, added new
1318 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
1319 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
1320 -mavx5124vnniw.
1321 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
1322 (ix86_option_override_internal): Handle new options.
1323 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
1324 avx5124vnniw.
1325 (ix86_expand_builtin): Handle new builtins.
1326 (ix86_additional_allocno_class_p): New.
1327 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
1328 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
1329 (reg_class): Add MOD4_SSE_REGS.
1330 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
1331 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
1332 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
1333 avx5124vnniwintrin.h.
1334 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
1335 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
1336 (define_mode_iterator IMOD4): New.
1337 (define_mode_attr imod4_narrow): Ditto.
1338 (define_insn "mov<mode>"): Ditto.
1339 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
1340 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
1341 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
1342 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
1343 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
1344 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
1345 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
1346 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
1347 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
1348 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
1349 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
1350 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
1351 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
1352 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
1353 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
1354 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
1355 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
1356 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
1357 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
1358 * genmodes.c (mode_size_inline): Extend return type.
1359 * machmode.h (mode_size, mode_base_align): Extend type.
1360
1361 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1362
1363 PR target/78101
1364 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
1365 the appropriate checks for SFmode/DFmode load/stores in GPR
1366 registers.
1367 (fusion_addis_mem_combo_store): Likewise.
1368 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
1369 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
1370 d-form instructions for traditional Altivec registers.
1371 (emit_fusion_p9_load): Likewise.
1372 (emit_fusion_p9_store): Likewise.
1373 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
1374 early clobber from scratch register. Do not match if the register
1375 being stored is the scratch register.
1376 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
1377 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
1378 instructions for traditional Altivec registers.
1379 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1380 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1381 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1382
1383 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
1384
1385 PR target/77933
1386 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
1387 being live in the function and lr needing to be saved. Distinguish
1388 between already saved pushable registers and registers to push.
1389 Check for LR being an available pushable register.
1390
1391 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1392
1393 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
1394 string input is a string constant.
1395 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
1396 via cmpstrnsi even if neither string is constant.
1397
1398 2016-11-17 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR middle-end/78201
1401 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
1402 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
1403 instead, return false if it is NULL, or doesn't fit into uhwi, or
1404 is larger or equal to targetm.max_anchor_offset.
1405
1406 2016-11-17 Pip Cet <pipcet@gmail.com>
1407 Eric Botcazou <ebotcazou@adacore.com>
1408
1409 PR rtl-optimization/78355
1410 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
1411 needs to deal with unaligned accesses.
1412 * doc/tm.texi: Regenerate.
1413 * lra-constraints.c (simplify_operand_subreg): Only invoke
1414 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
1415
1416 2016-11-17 David Malcolm <dmalcolm@redhat.com>
1417
1418 * input.c (selftest::test_lexer_string_locations_long_line): New
1419 function.
1420 (selftest::test_lexer_string_locations_raw_string_multiline): New
1421 function.
1422 (selftest::input_c_tests): Call the new functions, via
1423 for_each_line_table_case.
1424
1425 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1426
1427 * config/aarch64/aarch64.md (mov<mode>): Call
1428 aarch64_split_dimode_const_store on DImode constant stores.
1429 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
1430 New prototype.
1431 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
1432 function.
1433
1434 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1435 Richard Biener <rguenther@suse.de>
1436
1437 PR tree-optimization/77848
1438 * tree-if-conv.c (tree_if_conversion): Always version loops unless
1439 the user specified -ftree-loop-if-convert.
1440
1441 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
1442
1443 PR target/77308
1444 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
1445 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
1446 *thumb2_strd_base_neg): Recognize insn regardless of
1447 current_tune->prefer_ldrd_strd.
1448 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
1449 whenever possible.
1450
1451 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1452
1453 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
1454 instruction type.
1455
1456 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
1457
1458 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
1459 for arcem.
1460 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
1461 * config/arc/arc-cpus.def (quarkse_em): Add.
1462 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
1463 * config/arc/arc-opts.h (FPX_QK): Define.
1464 * config/arc/arc-tables.opt: Regenerate.
1465 * config/arc/arc.c (gen_compare_reg): Change.
1466 (arc_register_move_cost): Avoid Dy,Dx moves.
1467 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
1468 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
1469 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
1470 New expands.
1471 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
1472 (fix_truncsfsi2_fpu): Rename.
1473 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
1474 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
1475 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
1476 * config/arc/t-multilib: Regenerate.
1477
1478 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
1479
1480 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
1481 appropriate.
1482 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
1483 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
1484 (avr_rtx_costs_1, extra_constraint_Q): Same.
1485 (avr_address_cost): Use SUBREG_P if possible.
1486
1487 2016-11-17 Richard Biener <rguenther@suse.de>
1488
1489 PR middle-end/78383
1490 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
1491 non-local goto into CFG.
1492
1493 2016-11-17 Richard Biener <rguenther@suse.de>
1494
1495 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
1496 backward compatibility.
1497 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
1498 * tree-if-conv.c (pass_if_conversion::gate): Do not test
1499 flag_tree_loop_if_convert_stores.
1500 (pass_if_conversion::execute): Likewise.
1501
1502 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1503
1504 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
1505 const_double code before calling aarch64_float_const_zero_rtx_p.
1506
1507 2016-11-17 Richard Biener <rguenther@suse.de>
1508
1509 PR tree-optimization/78306
1510 * ipa-inline-analysis.c (initialize_inline_failed): Do not
1511 inhibit inlining if function calls cilk_spawn.
1512 (can_inline_edge_p): Likewise.
1513
1514 2016-11-17 Richard Biener <rguenther@suse.de>
1515
1516 PR middle-end/78305
1517 * fold-const.c (negate_expr_p): Fix multiplication case.
1518
1519 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
1520
1521 PR target/78357
1522 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
1523 condition.
1524 (TARGET_INIT_LIBFUNCS): Delete definition and...
1525 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
1526 comments.
1527
1528 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
1529
1530 * config/netbsd-stdint.h: New.
1531 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
1532 (x86_64-*-netbsd*): Likewise.
1533
1534 2016-11-16 Andrew PInski <apinski@cavium.com>
1535
1536 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
1537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1538 flag_aarch64_verbose_cost instead of checking for details dump.
1539 (aarch64_rtx_costs_wrapper): Likewise.
1540
1541 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1542
1543 PR rtl-optimization/78378
1544 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
1545 inner only if pos is 0. Fix up formatting.
1546
1547 2016-11-17 Alan Modra <amodra@gmail.com>
1548
1549 PR rtl-optimization/78325
1550 PR rtl-optimization/70890
1551 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
1552 for dead regno.
1553
1554 2016-11-16 Jason Merrill <jason@redhat.com>
1555
1556 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
1557
1558 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1559 Richard Biener <rguenther@suse.de>
1560
1561 PR tree-optimization/77848
1562 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
1563 an outer loop, only save basic block aux information for the inner
1564 loop.
1565 (versionable_outer_loop_p): New function.
1566 (tree_if_conversion): Version the outer loop instead of the inner
1567 one if the pattern will be recognized for outer-loop
1568 vectorization.
1569
1570 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * gcc/bb-reorder.c: Remove 'toplev.h' include.
1573 (pass_partition_blocks::gate): No longer check
1574 user_defined_section_attribute, instead check the function decl
1575 for a section attribute.
1576 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
1577 set user_defined_section_attribute.
1578 * gcc/final.c (rest_of_handle_final): Likewise.
1579 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
1580 * gcc/toplev.h: Remove declaration of
1581 user_defined_section_attribute.
1582
1583 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1584
1585 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1586 Explicitly switch between JR and JRC for the table jump. Adjust
1587 instruction count.
1588
1589 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1590
1591 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
1592 `insn_count' to 11 rather than 16.
1593
1594 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1595
1596 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
1597 `ltu' rather than `leu' operation in the RTL pattern
1598
1599 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1600
1601 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
1602 missing <d> instruction prefixes throughout. Correct
1603 formatting.
1604
1605 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1606
1607 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
1608 rather than R_MIPS_JALR relocation in microMIPS code. Do not
1609 cancel short delay slots in PIC call relaxation.
1610
1611 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1612
1613 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
1614 general register with general register or ARM constant into SP
1615 register.
1616
1617 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1618
1619 PR fortran/78299
1620 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
1621 that loop->header == body_bb if broken_loop.
1622
1623 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
1624
1625 * tree-ssa-math-opts.c (bswap_replace): Remove test
1626 of SLOW_UNALIGNED_ACCESS.
1627
1628 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
1629
1630 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
1631 is selected. Pass -mgomp to offload compiler in OpenMP case.
1632 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
1633 declaration from nvptx.c.
1634 (nvptx_gen_shuffle): Declare.
1635 (nvptx_output_set_softstack): Declare.
1636 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
1637 (need_softstack_decl): New variable.
1638 (need_unisimt_decl): New variable.
1639 (diagnose_openacc_conflict): New. Use it...
1640 (nvptx_option_override): ...here. Handle TARGET_GOMP.
1641 (nvptx_encode_section_info): Handle "shared" attribute.
1642 (write_as_kernel): Restrict to OpenACC target regions.
1643 (init_softstack_frame): New.
1644 (nvptx_init_unisimt_predicate): New.
1645 (write_omp_entry): New. Use it...
1646 (nvptx_declare_function_name): ...here to emit OpenMP target region
1647 entrypoints. Handle TARGET_SOFT_STACK. Call
1648 nvptx_init_unisimt_predicate.
1649 (nvptx_output_set_softstack): New.
1650 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
1651 (nvptx_gen_shuffle): Export.
1652 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
1653 predicate.
1654 (nvptx_print_operand): Fix handling of instruction predicates.
1655 (nvptx_get_unisimt_master): New helper function.
1656 (nvptx_get_unisimt_predicate): Ditto.
1657 (nvptx_call_insn_is_syscall_p): Ditto.
1658 (nvptx_unisimt_handle_set): Ditto.
1659 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
1660 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
1661 (nvptx_handle_shared_attribute): New. Use it...
1662 (nvptx_attribute_table): ... here (new entry).
1663 (nvptx_record_offload_symbol): Handle NULL attributes.
1664 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
1665 (nvptx_simt_vf): New.
1666 (TARGET_SIMT_VF): Define.
1667 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
1668 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
1669 -muniform-simt option is active.
1670 (STACK_SIZE_MODE): Define.
1671 (FIXED_REGISTERS): Adjust.
1672 (SOFTSTACK_SLOT_REGNUM): New.
1673 (SOFTSTACK_PREV_REGNUM): New.
1674 (REGISTER_NAMES): Adjust.
1675 (struct machine_function): New fields.
1676 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
1677 (UNSPEC_VOTE_BALLOT): Ditto.
1678 (UNSPEC_LANEID): Ditto.
1679 (UNSPECV_NOUNROLL): Ditto.
1680 (atomic): New attribute.
1681 (predicable): New attribute. Generate predicated forms via
1682 define_cond_exec.
1683 (br_true): Mark as not predicable.
1684 (br_false): Ditto.
1685 (br_true_uni): Ditto.
1686 (br_false_uni): Ditto.
1687 (return): Ditto.
1688 (trap_if_true): Ditto.
1689 (trap_if_false): Ditto.
1690 (nvptx_fork): Ditto.
1691 (nvptx_forked): Ditto.
1692 (nvptx_joining): Ditto.
1693 (nvptx_join): Ditto.
1694 (nvptx_barsync): Ditto.
1695 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
1696 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
1697 (allocate_stack_<mode>): Remove unused pattern.
1698 (set_softstack_insn): New pattern.
1699 (restore_stack_block): Handle for TARGET_SOFT_STACK.
1700 (nvptx_vote_ballot): New pattern.
1701 (omp_simt_lane): Ditto.
1702 (omp_simt_last_lane): Ditto.
1703 (omp_simt_ordered): Ditto.
1704 (omp_simt_vote_any): Ditto.
1705 (omp_simt_xchg_bfly): Ditto.
1706 (omp_simt_xchg_idx): Ditto.
1707 (nvptx_nounroll): Ditto.
1708 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
1709 (atomic_exchange<mode>): Ditto.
1710 (atomic_fetch_add<mode>): Ditto.
1711 (atomic_fetch_addsf): Ditto.
1712 (atomic_fetch_<logic><mode>): Ditto.
1713 * config/nvptx/nvptx.opt (msoft-stack): New option.
1714 (muniform-simt): Ditto.
1715 (mgomp): Ditto.
1716 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
1717 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
1718 * doc/invoke.texi (msoft-stack): Document.
1719 (muniform-simt): Document
1720 (mgomp): Document.
1721 * doc/tm.texi: Regenerate.
1722 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
1723 * target.def: Define it.
1724 * target-insns.def (omp_simt_lane): New.
1725 (omp_simt_last_lane): New.
1726 (omp_simt_ordered): New.
1727 (omp_simt_vote_any): New.
1728 (omp_simt_xchg_bfly): New.
1729 (omp_simt_xchg_idx): New.
1730
1731 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
1732
1733 * config/mips/mips-protos.h (mips_set_text_contents_type): New
1734 prototype.
1735 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
1736 (ASM_OUTPUT_CASE_END): Likewise.
1737 * config/mips/mips.c (mips_set_text_contents_type): New function.
1738 (mips16_emit_constants): Record the pool's initial label number
1739 with the `consttable' insn. Emit a `consttable_end' insn at the end.
1740 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
1741 for `consttable' insns.
1742 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
1743 for `consttable_end' insns.
1744 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
1745 (consttable): Add operand.
1746 (consttable_end): New insn.
1747
1748 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
1749
1750 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
1751 * tree-if-conv.c (tree_if_conversion): Make public.
1752 * * tree-if-conv.h: New file.
1753 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
1754 dynamic alias checks for epilogues.
1755 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
1756 * tree-vect-loop.c: include tree-if-conv.h.
1757 (new_loop_vec_info): Add zeroing orig_loop_info field.
1758 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
1759 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
1760 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
1761 using passed argument.
1762 (vect_transform_loop): Check if created epilogue should be returned
1763 for further vectorization with less vf. If-convert epilogue if
1764 required. Print vectorization success for epilogue.
1765 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
1766 if it is required, pass loop_vinfo produced during vectorization of
1767 loop body to vect_analyze_loop.
1768 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1769 orig_loop_info.
1770 (LOOP_VINFO_ORIG_LOOP_INFO): New.
1771 (LOOP_VINFO_EPILOGUE_P): New.
1772 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
1773 (vect_do_peeling): Change prototype to return epilogue.
1774 (vect_analyze_loop): Add argument of loop_vec_info type.
1775 (vect_transform_loop): Return created loop.
1776
1777 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1778
1779 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
1780 component as used also if LR_REGNO is a live input to the bb.
1781 * df-scan.c (df_get_entry_block_def_set): Return immediately after
1782 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
1783 (df_get_exit_block_use_set): Ditto.
1784 * df.h (df_scan_flags): New enum.
1785 * shrink-wrap.c (try_shrink_wrapping_separate): Set
1786 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
1787 df_update_entry_block_defs and df_update_exit_block_uses
1788 at the start; clear the flag and call those functions at the end.
1789
1790 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1791 Alan Hayward <alan.hayward@arm.com>
1792 David Sherwood <david.sherwood@arm.com>
1793
1794 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
1795 nb_iterations to the number of latch iterations rather than the
1796 number of loop iterations.
1797
1798 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1799 Alan Hayward <alan.hayward@arm.com>
1800 David Sherwood <david.sherwood@arm.com>
1801
1802 * combine.c (maybe_swap_commutative_operands): New function.
1803 (combine_simplify_rtx): Use it.
1804 (change_zero_ext): Likewise.
1805 (make_compound_operation_int): New function, split out of...
1806 (make_compound_operation): ...here. Use
1807 maybe_swap_commutative_operands for both.
1808
1809 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
1810
1811 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
1812 (neon-vfpv3): New FPU, currently an alias for 'neon'.
1813 * arm/arm-tables.opt: Regenerated.
1814 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
1815 neon-vfpv3.
1816 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
1817 and 'neon' are aliases for specific implementations.
1818
1819 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1820 Alan Hayward <alan.hayward@arm.com>
1821 David Sherwood <david.sherwood@arm.com>
1822
1823 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
1824 and use it in the final call to gen_rtx_fmt_ee.
1825 (expand_vec_cond_expr): Update accordingly.
1826 (expand_vec_cmp_expr): Likewise.
1827
1828 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1829 Alan Hayward <alan.hayward@arm.com>
1830 David Sherwood <david.sherwood@arm.com>
1831
1832 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
1833
1834 2016-11-16 Richard Biener <rguenther@suse.de>
1835
1836 PR middle-end/78333
1837 * gimplify.c (gimplify_function_tree): Do not instrument
1838 GNU extern inline functions.
1839
1840 2016-11-16 Martin Liska <mliska@suse.cz>
1841
1842 PR sanitizer/78270
1843 * gimplify.c (gimplify_switch_expr): Always save previous
1844 gimplify_ctxp->live_switch_vars.
1845
1846 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
1849 zero_extract operations to allow a movb to occur.
1850 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
1851 * testsuite/gcc.target/arc/movb-2.c: Likewise.
1852 * testsuite/gcc.target/arc/movb-5.c: Likewise.
1853 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
1854 little endian arc.
1855
1856 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1857 Alan Hayward <alan.hayward@arm.com>
1858 David Sherwood <david.sherwood@arm.com>
1859
1860 * expr.c (emit_group_load_1): Tighten check for whether an
1861 access involves only one operand of a CONCAT. Use extract_bit_field
1862 for constants if the bit range does span the whole operand.
1863
1864 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1865 Alan Hayward <alan.hayward@arm.com>
1866 David Sherwood <david.sherwood@arm.com>
1867
1868 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
1869
1870 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1871 Alan Hayward <alan.hayward@arm.com>
1872 David Sherwood <david.sherwood@arm.com>
1873
1874 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
1875 all three iteration counts with an any_* test. Use a single update
1876 for each count. Fix the calculation of nb_iterations_estimate.
1877
1878 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1879
1880 * config/pdp11/pdp11.c: Include dbxout.h.
1881
1882 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
1883
1884 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
1885
1886 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1887
1888 PR target/78364
1889 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
1890 proper ranges for an SBFX instruction.
1891 (extzv_t2): Likewise for UBFX.
1892
1893 2016-11-16 Richard Biener <rguenther@suse.de>
1894
1895 PR tree-optimization/78348
1896 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
1897 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
1898 (classify_partition): Set PKIND_MEMCPY if dependence analysis
1899 revealed no dependency, PKIND_MEMMOVE otherwise.
1900
1901 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1902
1903 PR sanitizer/77823
1904 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
1905 it points to non-NULL tree, use it instead of ubsan_create_data.
1906 (instrument_si_overflow): Handle vector signed integer overflow
1907 checking.
1908 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
1909 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
1910 vector IFN_UBSAN_CHECK_*.
1911 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
1912 pass it through to ubsan_build_overflow_builtin.
1913 (expand_neg_overflow, expand_mul_overflow): Likewise.
1914 (expand_vector_ubsan_overflow): New function.
1915 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
1916 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
1917 (expand_arith_overflow): Adjust expand_*_overflow callers.
1918
1919 2016-11-16 Matthias Klose <doko@ubuntu.com>
1920
1921 * doc/install.texi: Remove references to java/libjava.
1922
1923 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1924
1925 * tree-ssa-coalesce.c (register_default_def): Remove
1926 register_ssa_partition.
1927 (create_outofssa_var_map): Likewise.
1928 * tree-ssa-live.c (register_ssa_partition_check): Remove.
1929 * tree-ssa-live.h (register_ssa_partition): Likewise.
1930
1931 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1932
1933 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
1934 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
1935 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
1936 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
1937 rtx when all sub-rtx are also permanent.
1938 (attr_eq): Simplify.
1939 (attr_copy_rtx): Remove.
1940 (make_canonical, get_attr_value): Use attr_equal_p.
1941 (copy_boolean): Rehash NOT.
1942 (simplify_test_exp_in_temp,
1943 optimize_attrs): Remove call to attr_copy_rtx.
1944 (attr_alt_intersection, attr_alt_union,
1945 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
1946 (make_automaton_attrs): Use attr_eq.
1947
1948 2016-11-15 Matthias Klose <doko@ubuntu.com>
1949
1950 * doc/install.texi: Remove references to java/libjava.
1951 * doc/sourcebuild.texi: Likewise.
1952 * doc/invoke.texi: Likewise.
1953 * doc/standards.texi: Likewise.
1954
1955 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1956 Alan Hayward <alan.hayward@arm.com>
1957 David Sherwood <david.sherwood@arm.com>
1958
1959 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
1960 of VOIDmode.
1961 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1962 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1963 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1964 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1965 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1966 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1967 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1968
1969 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1970 Alan Hayward <alan.hayward@arm.com>
1971 David Sherwood <david.sherwood@arm.com>
1972
1973 * dce.c (check_argument_store): Pass the size instead of
1974 the memory reference.
1975 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
1976
1977 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1978 Alan Hayward <alan.hayward@arm.com>
1979 David Sherwood <david.sherwood@arm.com>
1980
1981 * alias.c (canon_rtx): Use simplify_gen_binary.
1982
1983 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1984 Alan Hayward <alan.hayward@arm.com>
1985 David Sherwood <david.sherwood@arm.com>
1986
1987 * rtl.h (load_extend_op): Declare.
1988 * rtlanal.c (load_extend_op): New function.
1989 (nonzero_bits1): Use it.
1990 (num_sign_bit_copies1): Likewise.
1991 * cse.c (cse_insn): Likewise.
1992 * fold-const.c (fold_single_bit_test): Likewise.
1993 (fold_unary_loc): Likewise.
1994 * fwprop.c (free_load_extend): Likewise.
1995 * postreload.c (reload_cse_simplify_set): Likewise.
1996 (reload_cse_simplify_operands): Likewise.
1997 * combine.c (try_combine): Likewise.
1998 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
1999 subreg_lowpart_p checks.
2000
2001 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2002 Alan Hayward <alan.hayward@arm.com>
2003 David Sherwood <david.sherwood@arm.com>
2004
2005 * combine.c (simplify_shift_const_1): Use the number of bits
2006 in the inner mode to determine the range of the shift.
2007 When handling shifts of vectors, skip any rules that apply
2008 only to scalars.
2009
2010 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2011 Alan Hayward <alan.hayward@arm.com>
2012 David Sherwood <david.sherwood@arm.com>
2013
2014 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
2015 handling VOIDmode.
2016
2017 2016-11-15 Matthias Klose <doko@ubuntu.com>
2018
2019 * doc/install.texi: Remove references to gcj/libjava.
2020 * doc/invoke.texi: Likewise.
2021
2022 2016-11-15 Jeff Law <law@redhat.com>
2023
2024 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
2025 parameter. Callers changed.
2026 (check-subpath_and_update_thread_path): Extracted from
2027 fsm_find_control_statement_thread_paths.
2028 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
2029 (handle_phi, handle_assignment): Allow any constant node, not
2030 just INTEGER_CST.
2031
2032 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
2033
2034 * config/arc/arc-arch.h: New file.
2035 * config/arc/arc-arches.def: Likewise.
2036 * config/arc/arc-cpus.def: Likewise.
2037 * config/arc/arc-options.def: Likewise.
2038 * config/arc/t-multilib: Likewise.
2039 * config/arc/genmultilib.awk: Likewise.
2040 * config/arc/genoptions.awk: Likewise.
2041 * config/arc/arc-tables.opt: Likewise.
2042 * config/arc/driver-arc.c: Likewise.
2043 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
2044 * common/config/arc/arc-common.c (arc_handle_option): Trace
2045 toggled options.
2046 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
2047 options; check for supported cpu against arc-cpus.def file.
2048 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
2049 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
2050 * config/arc/arc-c.def: Add emacs local variables.
2051 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
2052 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
2053 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
2054 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
2055 (DEFAULT_arc_fpu_build): Define.
2056 (DEFAULT_arc_mpy_option): Define.
2057 * config/arc/arc-protos.h (arc_init): Delete.
2058 * config/arc/arc.c (arc_cpu_name): New variable.
2059 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
2060 (arc_arc700, arc_arc600, arc_arc601): New variable.
2061 (arc_init): Add static; remove selection of default tune value,
2062 cleanup obsolete error messages.
2063 (arc_override_options): Make use of .def files for selecting the
2064 right cpu and option configurations.
2065 * config/arc/arc.h (stdbool.h): Include.
2066 (TARGET_CPU_DEFAULT): Define.
2067 (CPP_SPEC): Remove mcpu=NPS400 handling.
2068 (arc_cpu_to_as): Declare.
2069 (EXTRA_SPEC_FUNCTIONS): Define.
2070 (OPTION_DEFAULT_SPECS): Likewise.
2071 (ASM_DEFAULT): Remove.
2072 (ASM_SPEC): Use arc_cpu_to_as.
2073 (DRIVER_SELF_SPECS): Remove deprecated options.
2074 (arc_base_cpu): Declare.
2075 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
2076 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
2077 variable.
2078 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
2079 * config/arc/arc.md (attr_cpu): Remove.
2080 * config/arc/arc.opt (mno-mpy): Deprecate.
2081 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
2082 (mcpu=ARCHS): Remove.
2083 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
2084 Deprecate.
2085 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
2086 (arc_fpu): Use new defines.
2087 (mpy-option): Change to use numeric or string like inputs.
2088 * config/arc/t-arc (driver-arc.o): New target.
2089 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
2090 * config/arc/t-arc-newlib: Delete.
2091 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
2092 * doc/invoke.texi (ARC): Update arc options.
2093
2094 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
2095
2096 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
2097 insn at the beginning of the constant pool.
2098 (mips_insert_insn_pseudos): New function.
2099 (mips_machine_reorg2): Call it.
2100 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
2101 UNSPEC_INSN_PSEUDO enum values.
2102 (insn_pseudo, consttable): New insns.
2103
2104 2016-11-15 Michael Matz <matz@suse.de>
2105
2106 PR missed-optimization/77881
2107 * combine.c (simplify_comparison): Remove useless subregs
2108 also inside the loop, not just after it.
2109 (make_compound_operation): Recognize some subregs as being
2110 masking as well.
2111
2112 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
2113 Alan Hayward <alan.hayward@arm.com>
2114 David Sherwood <david.sherwood@arm.com>
2115
2116 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
2117 GET_MODE_SIZE typo.
2118
2119 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2120
2121 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
2122 for using xxinsertw and vinsert{b,h} on ISA 3.0.
2123
2124 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
2125 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
2126 vinsert{b,h} on ISA 3.0.
2127
2128 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2129
2130 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2131 and cmpnop in two steps: first the ones not accessed in original gimple
2132 expression in a endian independent way and then the ones not accessed
2133 in the final result in an endian-specific way.
2134 (bswap_replace): Stop doing big endian adjustment.
2135
2136 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
2137
2138 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
2139 (*ashl<mode>3_doubleword): Ditto.
2140
2141 2016-11-14 Martin Liska <mliska@suse.cz>
2142
2143 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
2144
2145 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
2146 Richard Biener <rguenther@suse.de>
2147
2148 * doc/invoke.texi (fgimple): Document.
2149 * dumpfile.h (TDF_GIMPLE): Add.
2150 * dumpfile.c (dump_options): Add gimple.
2151 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
2152 for TDF_GIMPLE.
2153 (dump_gimple_label): Likewise.
2154 (dump_gimple_phi): Likewise.
2155 (dump_gimple_bb_header): Likewise.
2156 (dump_phi_nodes): Likewise.
2157 (pp_cfg_jump): Likewise. Pass in dump flags.
2158 (dump_implicit_edges): Adjust.
2159 * passes.c (pass_init_dump_file): Do not dump function header
2160 for TDF_GIMPLE.
2161 * tree-cfg.c (dump_function_to_file): Dump function return type
2162 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
2163 GIMPLE stmts.
2164 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
2165 (dump_generic_node): Likewise.
2166 * function.h (struct function): Add pass_startwith member.
2167 * passes.c (execute_one_pass): Implement startwith.
2168 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
2169 and assign proper version for parsed ssa names.
2170 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
2171 * internal-fn.c (expand_PHI): New function.
2172 * internal-fn.h (expand_PHI): Declared here.
2173 * internal-fn.def: New defination for PHI.
2174 * tree-cfg.c (lower_phi_internal_fn): New function.
2175 (build_gimple_cfg): Call it.
2176 (verify_gimple_call): Condition for passing label as arg in internal
2177 function PHI.
2178 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
2179 present PHIs with arguments.
2180
2181 2016-11-14 Martin Liska <mliska@suse.cz>
2182
2183 PR bootstrap/78069
2184 * common.opt: Add prefer-atomic as a new enum value for
2185 -fprofile-update.
2186 * coretypes.h: Likewise.
2187 * doc/invoke.texi: Document the new option value.
2188 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
2189 * tree-profile.c (tree_profiling): Select default value
2190 of -fprofile-update when 'prefer-atomic' is selected.
2191
2192 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2193
2194 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
2195 (cortex_a57_alu_shift): ...here.
2196
2197 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2198
2199 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
2200 Use bfx attribute.
2201 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
2202 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2203 (<optab>si3_insn_uxtw): Likewise.
2204 (<optab><mode>3_insn): Likewise.
2205 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
2206 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
2207 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
2208 (<optab><mode>): Likewise.
2209 (insv<mode>): Likewise.
2210 (andim_ashift<mode>_bfiz): Likewise.
2211 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
2212 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
2213 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
2214 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
2215 (exynos_m1_alu_p): Likewise.
2216 * config/arm/types.md: Add bfx.
2217 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
2218
2219 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
2220
2221 * config/aarch64/aarch64.c (cortexa57_vector_cost):
2222 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
2223
2224 2016-11-14 Richard Biener <rguenther@suse.de>
2225
2226 PR tree-optimization/78312
2227 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
2228 flow-sensitive info.
2229
2230 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
2231
2232 PR target/78093
2233 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
2234 * config/avr/avr.opt (-mabsdata): New option.
2235 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
2236 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
2237 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
2238 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
2239 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
2240 spec depending on AVR_ISA_LDS.
2241 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
2242
2243 2016-11-13 Jakub Jelinek <jakub@redhat.com>
2244
2245 * match.pd: Don't try to compare addresses of variables with
2246 DECL_VALUE_EXPR.
2247
2248 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
2249
2250 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
2251 (propagate_vr_accross_jump_function): Handle unary expressions.
2252 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2253 (load_from_param_1): New.
2254 (load_from_unmodified_param): Factor common part into load_from_param_1.
2255 (load_from_param): New.
2256 (compute_complex_assign_jump_func): Handle unary expressions.
2257 (update_jump_functions_after_inlining): Likewise.
2258 (ipa_write_jump_function): Likewise.
2259 (ipa_read_jump_function): Likewise.
2260
2261 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2262
2263 PR c/35503
2264 * doc/invoke.texi: Document Wrestrict.
2265 * pretty-print.c (pp_format): Add case for "Z" specifier.
2266 (test_pp_format): Test "Z" specifier.
2267
2268 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2269
2270 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
2271 original function needs a static chain.
2272
2273 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
2274
2275 PR target/78336
2276 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
2277 ASM_OUTPUT_DEF.
2278
2279 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2280
2281 PR target/77957
2282 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2283 return early if !optional_tbtab.
2284
2285 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
2286
2287 PR rtl-optimization/59461
2288 * doc/rtl.texi (paradoxical subregs): Add missing word.
2289 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
2290 in modes with precision larger than that of last_set_mode.
2291 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
2292 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
2293 REGs to paradoxical SUBREGs.
2294 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
2295 larger than a word before invoking LOAD_EXTEND_OP on it.
2296
2297 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2298
2299 PR target/78243
2300 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
2301 element order for little endian ordering.
2302
2303 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
2304 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
2305 number.
2306
2307 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
2308
2309 PR target/78310
2310 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
2311 when calculating operand 2.
2312 (rotate to rotatex zext splitter): Ditto.
2313
2314 2016-11-11 Jeff Law <law@redhat.com>
2315
2316 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
2317 function.
2318 (stmt_uses_name_in_undefined_way): New function, extracted from
2319 find_implicit_erroneous_behavior and extended for div/mod case.
2320 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
2321 find_explicit_erroneous_behavior and extended for div/mod case.
2322 (find_implicit_erroneous_behavior): Use new helper function.
2323 (find_explicit_erroneous_behavior): Use new helper function.
2324
2325 2016-11-11 Richard Biener <rguenther@suse.de>
2326
2327 PR tree-optimization/71575
2328 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2329 bogus assert.
2330
2331 2016-11-11 Richard Biener <rguenther@suse.de>
2332
2333 PR middle-end/78295
2334 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
2335 about uninitialized destination arg of BIT_INSERT_EXPR.
2336
2337 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
2338
2339 PR c/37998
2340 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
2341 terminology. Expand to remove ambiguity.
2342
2343 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2344
2345 PR rtl-optimization/78232
2346 * combine.c (try_combine): Add a big comment about why reusing i2dest
2347 is undesirable.
2348 (change_zero_ext): Do not call simplify_gen_binary, do the
2349 simplifications manually.
2350
2351 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2352
2353 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
2354 enable HImode and QImode to go in vector registers by default if
2355 the -mvsx-small-integer option is enabled.
2356 (rs6000_secondary_reload_simple_move): Likewise.
2357 (rs6000_preferred_reload_class): Don't force integer constants to
2358 be loaded into vector registers that we can easily make into
2359 memory (or being created in the GPRs and moved over with direct move).
2360 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
2361 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
2362 vector extraction on ISA 3.0 when the scalar integer can be
2363 allocated in vector registers. Generate the VEC_SELECT directy,
2364 and don't use UNSPEC's to avoid having the scalar type in a vector
2365 register. Make the expander target registers, and let the
2366 combiner fold in results storing to memory, if the machine
2367 supports stores.
2368 (vsx_extract_<mode>_di): Likewise.
2369 (vsx_extract_<mode>_p9): Likewise.
2370 (vsx_extract_<mode>_di_p9): Likewise.
2371 (vsx_extract_<mode>_store_p9): Likewise.
2372 (vsx_extract_si): Likewise.
2373 (vsx_extract_<mode>_p8): Likewise.
2374 (p9_lxsi<wd>zx): Delete, no longer used.
2375 (p9_stxsi<wd>x): Likewise.
2376 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
2377 integers in vector registers for ISA 3.0.
2378 (QHI): Update comment.
2379 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
2380 vector extract instructions in sign/zero extend.
2381 (zero_extendhi<mode>): Likewise.
2382 (extendqi<mode>): Likewise.
2383 (extendhi<mode>2): Likewise.
2384 (HImode splitter for load/sign extend in vector register): Likewise.
2385 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
2386 optimizing floating point conversions to/from small data types and
2387 rewrite it to support QImode/HImode being allowed in vector
2388 registers on ISA 3.0.
2389 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2390 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
2391 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
2392 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
2393 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2394 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
2395 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
2396 VSPLITISW on ISA 2.07.
2397 (movhi_internal): Combine movhi_internal and movqi_internal into
2398 one mov<mode>_internal with an iterator. Add support for QImode
2399 and HImode being allowed in vector registers. Make large number
2400 of attributes and constraints easier to read.
2401 (movqi_internal): Likewise.
2402 (mov<mode>_internal): Likewise.
2403 (movdi_internal64): Fix constraint to allow loading -16..15 with
2404 VSPLITISW on ISA 2.07.
2405 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
2406 well as DImode.
2407
2408 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
2409
2410 PR rtl-optimization/78241
2411 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
2412 but emit initial peel copy if niter expr is not reliable.
2413
2414 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2415
2416 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
2417 (maybe_record_trace_start): If the CFI is different on the new and
2418 old paths, print out both to the dump file before ICEing.
2419
2420 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
2421
2422 * target.def (additional_allocno_class_p): New.
2423 * hooks.h (hook_bool_reg_class_t_false): New prototype.
2424 * hooks.c (hook_bool_reg_class_t_false): New.
2425 * ira.c (setup_allocno_and_important_classes): Use the new hook.
2426 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
2427 * doc/tm.texi: Update.
2428
2429 2016-11-10 Jason Merrill <jason@redhat.com>
2430
2431 * gengtype.c (new_structure): Append to structures list.
2432 (find_structure): Likewise.
2433
2434 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
2435
2436 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
2437 this_dir is 2. Check for this_dir non-zero before dir != this_dir
2438 check.
2439
2440 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2441
2442 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
2443 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
2444 TRUNC_DIV_EXPR.
2445 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
2446 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
2447 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
2448 teams distribute parallel for simd even to distribute and teams
2449 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
2450 OMP_CLAUSE_DEPEND_SINK case.
2451 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
2452 (omp_no_lastprivate): Removed.
2453 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
2454 (gimplify_omp_for): Likewise.
2455 (computable_teams_clause): Fail for automatic vars from current
2456 function not yet seen in bind expr.
2457 * langhooks.c (lhd_omp_scalar_p): New function.
2458 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
2459 * varpool.c (varpool_node::get_create): Set node->offloading
2460 even for DECL_EXTERNAL decls.
2461 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
2462 (LANG_HOOKS_OMP_SCALAR_P): Define.
2463 (LANG_HOOKS_DECLS): Use it.
2464
2465 2016-11-10 Martin Liska <mliska@suse.cz>
2466
2467 PR sanitizer/78270
2468 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
2469 only when SWITCH_BODY is a BIND_EXPR.
2470
2471 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
2472
2473 PR debug/78112
2474 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
2475 on the context only when it has no DIE yet.
2476
2477 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
2478
2479 * arm.h (target_cpus): Delete.
2480 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
2481 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
2482 (all_architectures): Likewise.
2483 (arm_option_override): Adjust use of CPU enums.
2484 (arm_sched_reorder): Likewise.
2485 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2486 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
2487 * arm/genopt.sh (processor_type): Prefix enumeration entries with
2488 TARGET_CPU_.
2489 * arm-tables.opt: Regenerated.
2490
2491 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
2492
2493 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
2494 (falkor): New core.
2495 * config/aarch64/aarch64-tune.md: Regenerated.
2496 * config/arm/arm-cores.def (falkor): New core.
2497 * config/arm/arm-tables.opt: Regenerated.
2498 * config/arm/arm-tune.md: Regenerated.
2499 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
2500 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2501 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
2502 (ARM Options/-mtune): Likewise.
2503
2504 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
2505
2506 Revert
2507 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2508
2509 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2510 (propagate_vr_accross_jump_function): Likewise.
2511 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2512 (load_from_param_1): New.
2513 (load_from_unmodified_param): Factor common part into load_from_param_1.
2514 (load_from_param): New.
2515 (compute_complex_assign_jump_func): Handle unary expressions.
2516 (ipa_write_jump_function): Likewise.
2517 (ipa_read_jump_function): Likewise.
2518
2519 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
2520
2521 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2522 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
2523 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
2524 is a const_int.
2525
2526 2016-11-09 David Malcolm <dmalcolm@redhat.com>
2527
2528 * print-rtl-function.c: Include varasm.h.
2529 (print_any_param_name): New function.
2530 (print_param): New function.
2531 (print_rtx_function): Call print_param for each argument.
2532 * print-rtl.c (rtx_writer::finish_directive): New function.
2533 * print-rtl.h (rtx_writer::finish_directive): New decl.
2534
2535 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
2536
2537 PR target/78262
2538 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
2539 operand 0 as earlyclobber.
2540 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
2541
2542 2016-11-09 Martin Liska <mliska@suse.cz>
2543
2544 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
2545
2546 2016-11-09 Jakub Jelinek <jakub@redhat.com>
2547
2548 PR target/77718
2549 * builtins.c (expand_builtin_memcmp): Formatting fix.
2550
2551 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
2552 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
2553 or of them, renumber other enumerators.
2554 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
2555 * doc/invoke.texi: Document -fsanitize=shift-base and
2556 -fsanitize-shift-exponent, document -fsanitize=shift as
2557 having those 2 suboptions.
2558
2559 2016-11-09 Richard Biener <rguenther@suse.de>
2560
2561 * fold-const.c (tree_swap_operands_p): Remove unused arg.
2562 * fold-const.c (tree_swap_operands_p): Likewise.
2563 (fold_binary_loc): Adjust.
2564 (fold_ternary_loc): Likewise.
2565 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
2566 * gimple-fold.c (fold_stmt_1): Likewise.
2567 * gimple-match-head.c (gimple_resimplify2): Likewise.
2568 (gimple_resimplify3): Likewise.
2569 (gimple_simplify): Likewise.
2570 * tree-ssa-dom.c (record_equality): Likewise.
2571 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
2572 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
2573 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
2574
2575 2016-11-09 Richard Biener <rguenther@suse.de>
2576
2577 * tree-ssa-dom.c (canonicalize_comparison): Remove.
2578 (optimize_stmt): Remove redundant pre-propagation canonicalization
2579 of comparison operand order.
2580
2581 2016-11-09 Martin Liska <mliska@suse.cz>
2582
2583 * fold-const-call.c (fold_const_call): Fix the folding.
2584
2585 2016-11-09 Richard Biener <rguenther@suse.de>
2586
2587 * common.opt (flag_evaluation_order): Remove.
2588 * expr.c (expand_operands): Remove code guarded by
2589 flag_evaluation_order.
2590 * fold-const.c (reorder_operands_p): Remove, it always returns
2591 true.
2592 (negate_expr_p): Remove calls to reorder_operands_p.
2593 (fold_negate_expr): Likewise.
2594 (tree_swap_operands_p): Likewise.
2595 (fold_binary_loc): Likewise.
2596
2597 2016-11-09 Andreas Schwab <schwab@suse.de>
2598
2599 PR target/78254
2600 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
2601 insns operating on a register.
2602
2603 2016-11-09 Richard Biener <rguenther@suse.de>
2604
2605 PR tree-optimization/78007
2606 * tree-vect-stmts.c (vectorizable_bswap): New function.
2607 (vectorizable_call): Call vectorizable_bswap for
2608 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
2609
2610 2016-11-09 Richard Biener <rguenther@suse.de>
2611
2612 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2613 Look at the DR_BASE_ADDRESS object for forcing alignment.
2614
2615 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2616
2617 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
2618 (propagate_vr_accross_jump_function): Likewise.
2619 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
2620 (load_from_param_1): New.
2621 (load_from_unmodified_param): Factor common part into load_from_param_1.
2622 (load_from_param): New.
2623 (compute_complex_assign_jump_func): Handle unary expressions.
2624 (ipa_write_jump_function): Likewise.
2625 (ipa_read_jump_function): Likewise.
2626
2627 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
2628
2629 PR ipa/78121
2630 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
2631 Also fold constant passed as argument while computing value range.
2632 (propagate_constants_accross_call): Pass param type.
2633 * ipa-prop.c: export ipa_get_callee_param_type.
2634 * ipa-prop.h: export ipa_get_callee_param_type.
2635
2636 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2637
2638 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
2639 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
2640
2641 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
2642
2643 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
2644 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
2645 ASAN_STACK_MAGIC_MIDDLE.
2646 (asan_global_struct): Increase the size of fields.
2647 (asan_add_global): Add new field constructor.
2648 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
2649 __asan_version_mismatch_check_v8.
2650
2651 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
2652
2653 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
2654 at runtime.
2655
2656 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
2657
2658 PR target/70799
2659 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2660 Handle ASHIFT and LSHIFTRT.
2661 (dimode_scalar_chain::compute_convert_gain): Ditto.
2662 (dimode_scalar_chain::convert_insn): Ditto.
2663
2664 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2665
2666 * gimple-ssa-store-merging.c: Include selftest.h
2667 (verify_array_eq): New function.
2668 (verify_shift_bytes_in_array): Likewise.
2669 (verify_shift_bytes_in_array_right): Likewise.
2670 (verify_clear_bit_region): Likewise.
2671 (verify_clear_bit_region_be): Likewise.
2672 (store_merging_c_tests): Likewise.
2673 * selftest.h (store_merging_c_tests): Declare prototype.
2674 * selftest-run-tests.c (selftest::run_tests): Run
2675 store_merging_c_tests.
2676
2677 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2678
2679 * config/arm/arm.opt (mold-rtx-costs): Delete.
2680 (mnew-generic-costs): Delete.
2681 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
2682 * config/arm/arm.c (arm_rtx_costs_1): Delete.
2683 (arm_size_rtx_costs): Likewise.
2684 (arm_slowmul_rtx_costs): Likewise.
2685 (arm_fastmul_rtx_costs): Likewise.
2686 (arm_xscale_rtx_costs): Likewise.
2687 (arm_9e_rtx_costs): Likewise.
2688 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
2689 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
2690 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
2691 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
2692 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
2693 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
2694 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
2695 arm_cortex_m7_tune):
2696 Delete rtx_costs field.
2697 (arm_new_rtx_costs): Rename to...
2698 (arm_rtx_costs_internal): ... This.
2699 (arm_rtx_costs): Remove old way of doing rtx costs.
2700
2701 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2702
2703 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
2704 (arm_fastmul_tune): Likewise.
2705 (arm_strongarm_tune): Likewise.
2706 (arm_xscale_tune): Likewise.
2707 (arm_9e_tune): Likewise.
2708 (arm_marvell_pj4_tune): Likewise.
2709 (arm_v6t2_tune): Likewise.
2710 (arm_v6m_tune): Likewise.
2711 (arm_fa726te_tune): Likewise.
2712
2713 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2714
2715 PR tree-optimization/78234
2716 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
2717 in start != 0 case.
2718
2719 2016-11-08 Martin Liska <mliska@suse.cz>
2720
2721 PR testsuite/78242
2722 * dbgcnt.def: Add new debug counter asan_use_after_scope.
2723 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
2724 with a value expr. Do not add artificial variables to
2725 live_switch_vars. Use the debug counter.
2726 (gimplify_target_expr): Use the debug counter.
2727 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
2728 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
2729 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
2730
2731 2016-11-08 Richard Biener <rguenther@suse.de>
2732
2733 * tree-vect-stmts.c (get_group_load_store_type): If the
2734 access is aligned do not trigger peeling for gaps.
2735 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
2736 force alignment of vars with DECL_USER_ALIGN.
2737
2738 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
2739
2740 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
2741
2742 2016-11-08 Richard Biener <rguenther@suse.de>
2743
2744 PR tree-optimization/78205
2745 * tree-vect-stmts.c (vectorizable_load): Move check whether
2746 we may run into gaps when BB vectorizing SLP permutations ...
2747 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
2748 here where we can do a more precise check.
2749
2750 2016-11-08 Richard Biener <rguenther@suse.de>
2751
2752 PR tree-optimization/78224
2753 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2754 Split the fallthru edge in case its successor may have PHIs.
2755 Do not free dominance info.
2756
2757 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2758
2759 PR target/78229
2760 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2761 EH info even for bzhi and pdep/pext.
2762
2763 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
2764
2765 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
2766 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
2767
2768 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2769
2770 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
2771 if appropriate.
2772 * config/rs6000/vector.md (div<mode>3): Ditto.
2773
2774 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
2775
2776 * configure.ac (.hidden): Change to conftest_s string. Provide string
2777 for AIX assembler.
2778 (gcc_cv_ld_hidden): Yes for AIX.
2779 * configure: Regenerate.
2780
2781 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
2782
2783 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
2784 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
2785 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
2786 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2787 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
2788 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
2789 from #if to if.
2790 (rs6000_xcoff_visibility): New.
2791 (rs6000_xcoff_declare_function_name): Add visibility support.
2792 (rs6000_xcoff_asm_globalize_decl_name): New.
2793 (rs6000_xcoff_asm_output_aligned_decl_common): New.
2794 (rs6000_asm_weaken_decl): New.
2795 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
2796 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
2797 reference function.
2798
2799 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
2800
2801 PR driver/78206
2802 * incpath.c (remove_dup): Also silently ignore EPERM.
2803
2804 2016-11-07 Martin Jambor <mjambor@suse.cz>
2805
2806 * tree.c (verify_type_variant): Use pointer comparison to check that
2807 TYPE_SIZE_UNIT match.
2808
2809 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2810
2811 PR target/77834
2812 * dse.c (dse_step5): Call scan_reads even if just
2813 insn_info->frame_read. Improve and fix dump file messages.
2814
2815 PR target/78227
2816 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2817 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2818
2819 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2820
2821 PR middle-end/35691
2822 * match.pd: Add following two patterns:
2823 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
2824 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
2825
2826 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
2827
2828 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
2829 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
2830 * rtl.h (duplicate_reg_notes): Declare.
2831 * rtlanal.c (duplicate_reg_note): New function.
2832
2833 PR rtl-optimization/77309
2834 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2835 don't assume an equality comparison for plain COMPARE.
2836 (simplify_comparison): Pass a more accurate code to
2837 make_compound_operation.
2838
2839 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
2840
2841 * target.def (compute_pressure_classes): New target hook.
2842 * doc/tm.texi.in: Document it.
2843 * doc/tm.texi: Regenerate.
2844 * ira.c (setup_pressure_classes): Call target hook if defined.
2845
2846 2016-11-07 David Malcolm <dmalcolm@redhat.com>
2847
2848 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
2849 method.
2850 (rtx_writer::print_rtx): In compact mode, omit trailing operands
2851 that have the default values.
2852 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
2853 method.
2854 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
2855 label string from expected dump.
2856 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
2857 from expected dump.
2858
2859 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR target/77834
2862 * alias.c (nonoverlapping_memrefs_p): If one decl is
2863 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
2864
2865 2016-11-07 Richard Biener <rguenther@suse.de>
2866
2867 PR target/78229
2868 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
2869 EH info.
2870
2871 2016-11-07 Richard Biener <rguenther@suse.de>
2872
2873 PR tree-optimization/78218
2874 * gimple-ssa-store-merging.c
2875 (pass_store_merging::terminate_all_aliasing_chains):
2876 Drop unused argument, fix alias check to also consider uses.
2877 (pass_store_merging::execute): Adjust.
2878
2879 2016-11-07 Richard Biener <rguenther@suse.de>
2880
2881 PR tree-optimization/78228
2882 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
2883 undefined behavior.
2884
2885 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2886
2887 PR target/77822
2888 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
2889 aarch64_simd_shift_imm_<mode> predicate for operand 1.
2890 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
2891 to restrict them to an appropriate range and add FAIL check if the
2892 region they specify is out of range. Delete useless constraint
2893 strings.
2894 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
2895 2 and 3 to restrict their range and add pattern predicate.
2896
2897 2016-11-07 Martin Liska <mliska@suse.cz>
2898
2899 * asan.c (enum asan_check_flags): Move the enum to header file.
2900 (asan_init_shadow_ptr_types): Make type creation more generic.
2901 (shadow_mem_size): New function.
2902 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
2903 Rewritten stack unpoisoning code.
2904 (build_shadow_mem_access): Add new argument return_address.
2905 (instrument_derefs): Instrument local variables if use after scope
2906 sanitization is enabled.
2907 (asan_store_shadow_bytes): New function.
2908 (asan_expand_mark_ifn): Likewise.
2909 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
2910 * asan.h (enum asan_mark_flags): Moved here from asan.c
2911 (asan_protect_stack_decl): Protect all declaration that need
2912 to live in memory.
2913 (asan_sanitize_use_after_scope): New function.
2914 (asan_no_sanitize_address_p): Likewise.
2915 * cfgexpand.c (partition_stack_vars): Consider
2916 asan_sanitize_use_after_scope in condition.
2917 (expand_stack_vars): Likewise.
2918 * common.opt (-fsanitize-address-use-after-scope): New option.
2919 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2920 Explain the parameter.
2921 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
2922 * gimplify.c (build_asan_poison_call_expr): New function.
2923 (asan_poison_variable): Likewise.
2924 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
2925 variables that have address taken.
2926 (gimplify_decl_expr): Likewise.
2927 (gimplify_target_expr): Likewise for C++ temporaries.
2928 (sort_by_decl_uid): New function.
2929 (gimplify_expr): Unpoison all variables for a label we can jump
2930 from outside of a scope.
2931 (gimplify_switch_expr): Unpoison variables defined in the switch
2932 context.
2933 (gimplify_function_tree): Clear asan_poisoned_variables.
2934 (asan_poison_variables): New function.
2935 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
2936 * internal-fn.c (expand_ASAN_MARK): New function.
2937 * internal-fn.def (ASAN_MARK): Declare.
2938 * opts.c (finish_options): Handle -fstack-reuse if
2939 -fsanitize-address-use-after-scope is enabled.
2940 (common_handle_option): Enable address sanitization if
2941 -fsanitize-address-use-after-scope is enabled.
2942 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
2943 New parameter.
2944 * params.h: Likewise.
2945 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
2946 * sanitizer.def: Define __asan_poison_stack_memory and
2947 __asan_unpoison_stack_memory functions.
2948 * asan.c (asan_mark_poison_p): New function.
2949 (transform_statements): Handle asan_mark_poison_p calls.
2950 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
2951
2952 2016-11-07 Tamar Christina <tamar.christina@arm.com>
2953
2954 PR driver/78196
2955 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
2956
2957 2016-11-07 Martin Liska <mliska@suse.cz>
2958
2959 * tree-profile.c (gimple_gen_time_profiler): Set proper type
2960 to time_profiler_counter_ptr.
2961
2962 2016-11-07 Richard Biener <rguenther@suse.de>
2963
2964 PR tree-optimization/37150
2965 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
2966 parameter.
2967 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
2968 (vect_analyze_slp_cost_1): Account for the real number of
2969 permutations emitted and for dead loads.
2970 (vect_transform_slp_perm_load): Add n_perms parameter counting
2971 the number of emitted permutations.
2972 * tree-vect-stmts.c (vectorizable_load): Adjust.
2973
2974 2016-11-07 Richard Biener <rguenther@suse.de>
2975
2976 PR tree-optimization/78189
2977 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2978 alignment computation.
2979
2980 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2981
2982 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
2983
2984 2016-11-05 Martin Sebor <msebor@redhat.com>
2985
2986 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
2987 documentation.
2988
2989 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
2990
2991 PR bootstrap/78188
2992 PR c++/71848
2993 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2994
2995 2016-11-04 Jakub Jelinek <jakub@redhat.com>
2996
2997 PR target/77834
2998 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2999 doesn't have rtl set.
3000
3001 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3002
3003 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
3004 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
3005 rs6000_gimple_fold_builtin.
3006 (rs6000_gimple_fold_builtin): New function. Add handling for
3007 early expansion of vector addition builtins.
3008
3009 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3010
3011 * expr.h (copy_blkmode_from_reg): Delete.
3012 * expr.c (copy_blkmode_from_reg): Make static.
3013
3014 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
3015
3016 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
3017 * combine.c (LOAD_EXTEND_OP): Delete.
3018 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
3019 * cse.c (LOAD_EXTEND_OP): Delete.
3020 * fold-const.c (LOAD_EXTEND_OP): Likewise.
3021 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
3022 * postreload.c (LOAD_EXTEND_OP): Delete.
3023 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
3024 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
3025 (find_reloads): Likewise.
3026 * reload1.c (eliminate_regs_1): Likewise.
3027 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
3028 (num_sign_bit_copies1): Likewise.
3029
3030 2016-11-04 David Malcolm <dmalcolm@redhat.com>
3031
3032 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
3033 (selftest::ix86_test_dumping_hard_regs): New function.
3034 (selftest::ix86_run_selftests): New function.
3035 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
3036 selftest::ix86_run_selftests.
3037 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
3038 * doc/tm.texi: Regenerate
3039 * selftest-rtl.h: New file.
3040 * rtl-tests.c: Include "selftest-rtl.h".
3041 (selftest::assert_rtl_dump_eq): Make non-static.
3042 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
3043 (selftest::test_dumping_regs): Update comment.
3044 * selftest-run-tests.c: Include "target.h".
3045 (selftest::run_tests): If non-NULL, call
3046 targetm.run_target_selftests.
3047 * target.def (run_target_selftests): New hook.
3048
3049 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3050
3051 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
3052 representative core for this architecture.
3053 * config/arm/arm-cores.def (cortex-m33): Define new processor.
3054 * config/arm/arm-tables.opt: Regenerate.
3055 * config/arm/arm-tune.md: Likewise.
3056 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
3057 valid -mcpu options.
3058 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
3059
3060 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3061
3062 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
3063 representative core for this architecture.
3064 * config/arm/arm-cores.def (cortex-m23): Define new processor.
3065 * config/arm/arm-tables.opt: Regenerate.
3066 * config/arm/arm-tune.md: Likewise.
3067 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
3068 this tuning parameters apply to in the comment.
3069 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
3070 valid -mcpu options.
3071 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
3072
3073 2016-11-04 Bin Cheng <bin.cheng@arm.com>
3074
3075 * fold-const.c (fold_cond_expr_with_comparison): Remove call
3076 to pedantic_non_lvalue_loc. Remove useless code for lvalue
3077 where cond_expr can't be a lvalue.
3078
3079 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
3080
3081 * config/arc/arc.c (arc_process_double_reg_moves): Use
3082 gen_dexcl_2op call.
3083 * config/arc/arc.md (movsi_insn): Disable unsupported move
3084 instructions for ARCv2 cores.
3085 (movdi): Use prepare_move_operands.
3086 (movsf, movdf): Use move_dest_operand predicate.
3087 * config/arc/constraints.md (Chs): Enable when barrel shifter is
3088 present.
3089 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
3090 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
3091 also a destination.
3092 (dexcl_3op_peep2_insn_nores): Likewise.
3093 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
3094 (LINK_COMMAND_SPEC): Remove.
3095
3096 2016-11-04 Richard Biener <rguenther@suse.de>
3097
3098 PR middle-end/78185
3099 * loop-invariant.c (find_exits): Record entering inner
3100 loops as possibly exiting to handle infinite sub-loops.
3101 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
3102 (fill_always_executed_in_1): Honor infinite child loops.
3103
3104 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3105
3106 PR target/78192
3107 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
3108 has already been adjusted for endianness, so don't adjust it any
3109 further.
3110
3111 PR target/77993
3112 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
3113 ICmode unless we have standard PowerPC floating point.
3114 * config/rs6000/rs6000.md (FP iterator): Likewise.
3115 (FMOVE128 iterator): Likewise.
3116
3117 2016-11-03 Jakub Jelinek <jakub@redhat.com>
3118 Alexandre Oliva <aoliva@redhat.com>
3119 Jason Merrill <jason@redhat.com>
3120
3121 PR debug/28767
3122 PR debug/56974
3123 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
3124 langhook.
3125 * langhooks.c (lhd_type_dwarf_attribute): New function.
3126 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
3127 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
3128 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
3129 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
3130 (check_qualified_type, check_aligned_type): Call it.
3131 * dwarf2out.c (modified_type_die): Don't use type_main_variant
3132 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3133 check_base_type and check_lang_type.
3134 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
3135 return early. For pointer-to-data-member add DW_AT_use_location
3136 attribute.
3137 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
3138 if needed.
3139 (gen_type_die_with_usage): Don't use type_main_variant
3140 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
3141 check_base_type and check_lang_type. Formatting fixes. Call
3142 get_debug_type langhook.
3143
3144 2016-11-03 Jason Merrill <jason@redhat.com>
3145
3146 * tree.c (check_lang_type): New.
3147 (check_qualified_type): Use it.
3148 (check_aligned_type): Use it.
3149 * tree.h: Declare it.
3150
3151 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
3152
3153 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
3154 (arm*-freebsd*): Likewise.
3155 (arm*-*-netbsdelf*): Likewise.
3156 (arm*-*-linux*): Likewise.
3157 (arm*-*-uclinux*eabi*): Likewise.
3158 (arm*-*-phoenix*): Likewise.
3159 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
3160 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
3161 specified. Default to arm6 if target_cpu_cname is not set.
3162 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
3163 default cpu has been correctly configured.
3164 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
3165 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
3166 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
3167 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
3168 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3169 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
3170 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
3171
3172 2016-11-03 Jiong Wang <jiong.wang@arm.com>
3173
3174 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
3175 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
3176 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
3177 (output_cfa_loc): Support DW_CFA_val_expression.
3178 (output_cfa_loc_raw): Likewise.
3179 (output_cfi): Likewise.
3180 (output_cfi_directive): Likewise.
3181 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
3182 (dw_cfi_oprnd2_desc): Likewise.
3183 (mem_loc_descriptor): Recognize new pattern generated for value
3184 expression.
3185
3186 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
3187
3188 PR rtl-optimization/78186
3189 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
3190 well, when converting to IOR.
3191
3192 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3193
3194 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
3195 (vec_interleave_highv8qi): Likewise.
3196
3197 2016-11-03 Martin Liska <mliska@suse.cz>
3198
3199 * profile.c (instrument_values): Fix coding style.
3200 (branch_prob): Use renamed function.
3201 * tree-profile.c (init_ic_make_global_vars): Likewise.
3202 (gimple_init_edge_profiler): Rename to
3203 gimple_init_gcov_profiler.
3204 tree_time_profiler_counter variable declaration.
3205 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
3206 emission.
3207 * value-prof.h: Remove an argument.
3208
3209 2016-11-03 Richard Biener <rguenther@suse.de>
3210
3211 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
3212 symtab_node::get_create.
3213
3214 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3215
3216 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
3217 Move comments into more natural position.
3218
3219 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
3220
3221 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
3222 (PTRDIFF_TYPE): Define as int.
3223
3224 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3225
3226 * ccmp.c (expand_ccmp_expr_1): Adjust.
3227 (expand_ccmp_expr): Likewise.
3228 (expand_ccmp_next): Likewise.
3229 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
3230 (aarch64_gen_ccmp_first): Likewise.
3231 * doc/tm.texi: Regenerate.
3232 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
3233 (gen_ccmp_next): Likewise.
3234
3235 2016-11-03 Bin Cheng <bin.cheng@arm.com>
3236
3237 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
3238 (vect_is_simple_reduction): Swap cond_reduction by inversion.
3239
3240 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
3241
3242 * config/i386/i386.c (ix86_init_libfuncs): New. Call
3243 darwin_rename_builtins here.
3244 (ix86_expand_divmod_libfunc): New.
3245 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
3246 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
3247
3248 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3249 Nathan Sidwell <nathan@acm.org>
3250
3251 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
3252
3253 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
3254
3255 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
3256 New function.
3257 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
3258 to format MODE_INT and MODE_PARTIAL_INT literals.
3259
3260 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
3261
3262 PR target/78168
3263 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
3264 NULL if TARGET_SPE_ABI.
3265
3266 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3267
3268 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
3269 clear padding bits even when they're less than a byte.
3270
3271 2016-11-02 Richard Biener <rguenther@suse.de>
3272
3273 * gimple-ssa-store-merging.c: Include gimplify-me.h.
3274 (imm_store_chain_info::output_merged_stores): Force base_addr
3275 to be proper GIMPLE for a MEM_REF address.
3276 (pass_store_merging::execute): Restrict negative bitpos
3277 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
3278 check. Take into account non-NULL_TREE offset if the base
3279 is already addressable.
3280
3281 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3282
3283 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
3284 New pattern.
3285 (aarch64_be_crypto_sha1hv4si): New pattern.
3286
3287 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
3288
3289 * config/aarch64/aarch64.md (add<mode>3): Remove
3290 redundant code. Don't split frame based additions.
3291
3292 2016-11-02 Richard Biener <rguenther@suse.de>
3293
3294 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
3295 redundant val and dest members.
3296 (store_immediate_info::store_immediate_info): Adjust.
3297 (merged_store_group::merged_store_group): Adjust.
3298 (merged_store_group::apply_stores): Likewise.
3299 (struct imm_store_chain_info): Add base_addr field.
3300 (imm_store_chain_info::imm_store_chain_info): New constructor.
3301 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
3302 (imm_store_chain_info::output_merged_store): Likewise. Use
3303 addr_base which is already the address.
3304 (imm_store_chain_info::output_merged_stores): Likewise.
3305 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
3306 imm_store_chain_info instead of base. Fix alias check.
3307 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
3308 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
3309 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
3310 use the address of the base and adjust for other changes.
3311
3312 2016-11-02 Martin Liska <mliska@suse.cz>
3313
3314 * fold-const-call.c (host_size_t_cst_p): Test whether
3315 t is convertible to size_t.
3316
3317 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3318
3319 PR tree-optimization/78170
3320 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
3321 introduced by native_encode_expr on little-endian as well.
3322
3323 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3324
3325 PR tree-optimization/78162
3326 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
3327 as invalid.
3328
3329 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3330
3331 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
3332 function comment.
3333 (aarch64_next_callee_save): Likewise.
3334 (aarch64_pushwb_single_reg): Likewise.
3335 (aarch64_gen_storewb_pair): Likewise.
3336 (aarch64_push_regs): Likewise.
3337 (aarch64_gen_loadwb_pair): Likewise.
3338 (aarch64_pop_regs): Likewise.
3339 (aarch64_gen_store_pair): Likewise.
3340 (aarch64_gen_load_pair): Likewise.
3341 (aarch64_save_callee_saves): Likewise.
3342 (aarch64_restore_callee_saves): Likewise.
3343
3344 2016-11-02 Richard Biener <rguenther@suse.de>
3345
3346 PR tree-optimization/78035
3347 PR tree-optimization/77964
3348 * gimple-pretty-print.c (pp_points_to_solution): Print
3349 vars_contains_interposable.
3350 * tree-ssa-alias.c: Include varasm.h.
3351 (ptrs_compare_unequal): Check vars_contains_interposable and
3352 decl_binds_to_current_def_p.
3353 (dump_points_to_solution): Dump vars_contains_interposable.
3354 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
3355 flag.
3356 * tree-ssa-structalias.c: Include varasm.h.
3357 (set_uids_in_ptset): Record whether vars contains a
3358 not decl_binds_to_current_def_p variable in vars_contains_interposable.
3359 (ipa_escaped_pt): Update initializer.
3360
3361 2016-11-02 Richard Biener <rguenther@suse.de>
3362
3363 PR tree-optimization/78047
3364 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3365 fake field at offset zero conservatively regarding to may_have_pointers.
3366
3367 2016-11-02 Richard Biener <rguenther@suse.de>
3368
3369 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
3370 infer_value_range on stmt ops and update value-ranges.
3371 Dump visited stmts and blocks.
3372 (evrp_dom_walker::push_value_range): Dump changes.
3373 (evrp_dom_walker::pop_value_range): Likewise.
3374 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
3375
3376 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3377
3378 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
3379 rtx_insn *.
3380 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
3381
3382 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3383
3384 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
3385 and adjust for that.
3386 * cfgrtl.h (delete_insn_chain): Adjust prototype.
3387
3388 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3389
3390 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
3391 to rtx_insn *.
3392 (transcode_memory_rtx): Likewise.
3393 (move_to_acc): Likewise.
3394 (move_from_acc): Likewise.
3395 (move_acc_to_reg): Likewise.
3396 (move_to_x): Likewise.
3397 (move_to_hl): Likewise.
3398 (move_to_de): Likewise.
3399 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
3400 (rs6000_emit_savres_rtx): Likewise.
3401 (rs6000_emit_prologue): Likewise.
3402 * reorg.c (update_reg_unused_notes): Likewise.
3403 * rtl.h (remove_note): Adjust prototype.
3404 * rtlanal.c (remove_note): Make argument type rtx_insn *.
3405
3406 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3407
3408 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
3409 variables so some can be rtx_insn *.
3410 (alpha_emit_xfloating_libcall): Likewise.
3411 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
3412 (mips_legitimize_tls_address): Likewise.
3413 * optabs.c (expand_binop): Likewise.
3414 * reload1.c (gen_reload): Likewise.
3415
3416 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3417
3418 * reorg.c (relax_delay_slots): Split up the trial variable.
3419
3420 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3421
3422 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
3423 of variables rtx_insn *.
3424 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
3425 (legitimize_tls_address): Likewise.
3426 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3427 (bfin_gen_bundles): Likewise.
3428 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3429 (c6x_reorg): Likewise.
3430 * config/frv/frv.c (frv_reorder_packet): Likewise.
3431 * config/i386/i386.c (ix86_split_idivmod): Likewise.
3432 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
3433 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
3434 * config/mn10300/mn10300.c: Likewise.
3435 * config/rl78/rl78.c: Likewise.
3436 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
3437 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
3438 (sh_expand_cmpnstr): Likewise.
3439 (sh_expand_strlen): Likewise.
3440 (sh_expand_setmem): Likewise.
3441 * config/sh/sh.md: Likewise.
3442 * emit-rtl.c (emit_pattern_before): Likewise.
3443 * except.c: Likewise.
3444 * final.c: Likewise.
3445 * jump.c: Likewise.
3446
3447 2016-11-01 Jason Merrill <jason@redhat.com>
3448
3449 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
3450 a COND_EXPR with constant condition.
3451
3452 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3453
3454 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
3455 and its initialization.
3456
3457 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3458
3459 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
3460 HAVE_AS_LEB128.
3461
3462 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3463
3464 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
3465 argument, don't call add_linkage_name if it is true.
3466 (gen_variable_die): For C++ inline static data members, consider the
3467 initial call when old_die is NULL to be declaration and call
3468 add_name_and_src_coords_attributes in that case with true as
3469 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
3470 (gen_member_die): For C++ inline static data members, emit a
3471 definition DIE right away in DW_TAG_compile_unit context.
3472
3473 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3474
3475 PR target/78166
3476 * config/pa/pa.md: Add new shift/add patterns to handle
3477 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3478
3479 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
3480
3481 * config/xtensa/xtensa-protos.h
3482 (xtensa_use_return_instruction_p): New prototype.
3483 * config/xtensa/xtensa.c (xtensa_current_frame_size,
3484 xtensa_callee_save_size): Remove.
3485 (struct machine_function): Add new fields: current_frame_size,
3486 callee_save_size, frame_laid_out and epilogue_done.
3487 (compute_frame_size, xtensa_expand_prologue,
3488 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
3489 cfun->machine->callee_save_size and xtensa_current_frame_size
3490 with cfun->machine->current_frame_size.
3491 (compute_frame_size): Update cfun->machine->frame_laid_out and
3492 don't update frame layout after reload completion.
3493 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
3494 instead of zeroing xtensa_current_frame_size.
3495 (xtensa_use_return_instruction_p): New function.
3496 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
3497 declaration.
3498 (INITIAL_ELIMINATION_OFFSET): Use return value of
3499 compute_frame_size instead of xtensa_current_frame_size value.
3500 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
3501 function xtensa_use_return_instruction_p instead of inline code.
3502
3503 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3504
3505 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
3506 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
3507 * dwarf2out.c (rnglist_idx): New variable.
3508 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
3509 (DEBUG_RNGLISTS_SECTION): Define.
3510 (ranges_base_label): New variable.
3511 (size_of_die) <case dw_val_class_range_list>: If using
3512 DW_FORM_rnglistx, count size of uleb128 of range list index.
3513 (value_format) <case dw_val_class_range_list>: For
3514 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
3515 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
3516 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
3517 (add_ranges_num): Remove useless prototype. Don't multiply
3518 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
3519 for new fields added to dw_ranges struct.
3520 (add_ranges): Add maybe_new_sec argument and pass it
3521 through to add_ranges_num.
3522 (note_rnglist_head): New function.
3523 (add_ranges_by_labels): Pass true as maybe_new_sec to
3524 add_ranges_num, call note_rnglist_head on the head of the list.
3525 (output_ranges): Add function comment. Switch to
3526 .debug_ranges section here and emit .Ldebug_ranges0 label.
3527 (index_rnglists, output_rnglists): New functions.
3528 (gen_subprogram_die): Formatting fixes.
3529 (add_high_low_attributes): Don't divide offsets
3530 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
3531 first list element or when pointing into the middle of
3532 a list. Pass true as second argument to add_ranges on the
3533 first block fragment after cold/hot section switch.
3534 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
3535 section instead of .debug_ranges. Initialize
3536 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
3537 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
3538 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
3539 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
3540 Call output_rnglists for -gdwarf-5.
3541 (dwarf2out_c_finalize): Clear rnglist_idx.
3542
3543 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
3544
3545 * combine.c (simplify_compare_const): Add gcc_fallthrough.
3546
3547 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
3548 Tamar Christina <tamar.christina@arm.com>
3549
3550 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
3551 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
3552 (vmaxnmq_f32): Likewise.
3553 (vminnm_f32): Likewise.
3554 (vminnmq_f32): Likewise.
3555 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
3556 (vminnm): Likewise.
3557 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
3558 expander.
3559
3560 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3561
3562 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
3563 binary floating point types supported by the hardware except for
3564 double.
3565 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
3566 vector instruction for optimizing extracting a SImode from a
3567 V4SImode vector and converting it to floating point.
3568 (vsx_xvcvuxwdp_df): Likewise.
3569 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
3570 registers to be any VSX register. Move stores to the end of the
3571 constraints.
3572 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
3573 to optimize extracting a SImode from a V4SImode vector and
3574 converting it to a binary floating point type supported by the
3575 hardware. Use the vector converts instead of extracting the
3576 element, sign extending it, and then converting it to double.
3577 Other floating point types than double first convert to double,
3578 then the double is converted to that type.
3579 (vsx_extract_si_<uns>float_<mode>): Likewise.
3580
3581 2016-10-31 Andrew Pinski <apinski@cavium.com>
3582
3583 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
3584 Rewrite handling of part num to handle the case where
3585 multiple implementers share the same part num.
3586
3587 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 Jakub Jelinek <jakub@redhat.com>
3589
3590 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
3591 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
3592
3593 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3594
3595 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
3596 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
3597 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
3598 (is_cu_die, is_unit_die): Likewise.
3599 (should_move_die_to_comdat, break_out_comdat_types): Adjust
3600 comments for DWARF5 DW_UT_type units.
3601 (output_compilation_unit_header): Add UT argument, output
3602 start of DWARF5 .debug_info section header.
3603 (output_comp_unit): Add dwo_id argument. Adjust
3604 output_compilation_unit_header caller, for DW_UT_split_compile
3605 emit dwo_id field, otherwise padding1. Emit padding2 field.
3606 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
3607 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
3608 (output_skeleton_debug_sections): Add dwo_id argument, for
3609 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
3610 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
3611 DW_UT_type or DW_UT_split_type units rather than .debug_types.
3612 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
3613 DW_TAG_compile_unit for skeleton unit die. Don't add
3614 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
3615 address to output_comp_unit and output_skeleton_debug_sections.
3616
3617 * dwarf2out.c (debug_line_str_section): New variable.
3618 (debug_line_str_hash): Likewise.
3619 (DEBUG_LINE_STR_SECTION): Define.
3620 (set_indirect_string): Handle DW_FORM_line_strp like
3621 DW_FORM_strp.
3622 (find_string_form): Fix up formatting.
3623 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
3624 Fix up indentation.
3625 (output_die): Handle DW_FORM_line_strp.
3626 (DWARF5_USE_DEBUG_LINE_STR): Define.
3627 (output_line_string): New function.
3628 (output_file_names): Add -gdwarf-5 support.
3629 (output_line_info): Likewise.
3630 (init_sections_and_labels): Initialize debug_line_str_section.
3631 (output_indirect_string): Change 2nd argument from void *
3632 to enum dwarf_form form, compare with form rather than
3633 DW_FORM_strp.
3634 (output_indirect_strings): Pass DW_FORM_strp to
3635 output_indirect_string traversion.
3636 (dwarf2out_finish): Output .debug_line_str strings.
3637 (dwarf2out_c_finalize): Clear debug_line_str_section and
3638 debug_line_str_hash.
3639
3640 2016-10-31 Tom Tromey <tom@tromey.com>
3641
3642 PR debug/77315
3643 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
3644 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
3645 DW_OP_GNU_push_tls_address case.
3646 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
3647
3648 2016-10-31 Jakub Jelinek <jakub@redhat.com>
3649
3650 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
3651 for frame_offset_rel bit.
3652 (struct array_descr_info): Add rank field.
3653 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
3654 and placeholder_seen fields.
3655 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
3656 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
3657 DW_OP_pick 1 into DW_OP_over.
3658 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
3659 gen_variant_part): Clear placeholder_{arg,seen}.
3660 (loc_list_from_tree_1): Drop const from context argument.
3661 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
3662 (loc_list_for_address_of_addr_expr_of_indirect_ref,
3663 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
3664 context argument.
3665 (add_scalar_info): Drop const from context argument. Handle
3666 context->placeholder_arg.
3667 (add_bound_info): Drop const from context argument.
3668 (gen_descr_array_type_die): Drop const from ctx variable.
3669 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
3670 attribute and use a single DW_TAG_generic_subrange instead of
3671 7 DW_TAG_subrange_type for assumed rank arrays.
3672
3673 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
3674 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
3675 from bool to 1-bit uchar bitfield. Add num_assigned and
3676 offset_emitted bitfields.
3677 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
3678 for dw_val_class_lineptr and dw_val_class_macptr. Handle
3679 dw_val_class_loclistsptr.
3680 (new_addr_loc_descr): Fix up formatting.
3681 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
3682 (add_AT_low_high_pc): Fix up formatting.
3683 (add_AT_loclistsptr): New function.
3684 (AT_lbl): Allow dw_val_class_loclistsptr.
3685 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
3686 Handle dw_val_class_loclistsptr.
3687 (loc_list_idx): New variable.
3688 (output_loclists_offsets, assign_location_list_indexes): New
3689 functions.
3690 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
3691 add size_of_uleb128 of the index. Drop never used
3692 dwarf_split_debug_info AT_index handling. Handle
3693 dw_val_class_loclistsptr.
3694 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
3695 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
3696 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
3697 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
3698 DW_FORM_loclistx indexes.
3699 (output_attr_index_or_value): Fix up formatting. Don't handle
3700 dw_val_class_loc_list here.
3701 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
3702 For dw_val_class_loc_list call output_loc_list_offset rather than
3703 output_attr_index_or_value.
3704 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
3705 or .debug_loclists.dwo section name for debug_loc_section.
3706 (resolve_addr_in_expr): Formatting fix.
3707 (index_location_lists): Likewise.
3708 (dwarf2out_finish): If there are any location lists, for
3709 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
3710 index_location_lists only if have_location_lists. Call
3711 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
3712 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
3713 -gsplit-dwarf also emit offset table.
3714
3715 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
3716 (size_of_die, value_format, output_die): Use
3717 DW_FORM_data16 for 128-bit dw_val_class_const_double or
3718 dw_val_class_wide_int.
3719
3720 * dwarf2out.c (dwarf_op): Renamed to ...
3721 (dwarf_OP): ... this.
3722 (convert_descriptor_to_mode, scompare_loc_descriptor,
3723 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3724 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
3725 callers.
3726 (dwarf_AT, dwarf_TAG): New functions.
3727 (check_die): Disallow DW_AT_call_all_calls next to
3728 DW_AT_GNU_all_call_sites.
3729 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
3730 and attributes instead of the corresponding GNU tag and attributes.
3731 (gen_subprogram_die): Likewise. Emit call site information even
3732 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
3733 DW_AT_defaulted in comment.
3734 (resolve_addr): Handle DW_AT_call_origin attribute on
3735 DW_TAG_call_site DIE like DW_AT_abstract_origin on
3736 DW_TAG_GNU_call_site DIE.
3737
3738 * dwarf2out.c (dwarf_op): New function.
3739 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
3740 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
3741 (output_loc_operands, output_loc_operands_raw): Likewise.
3742 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
3743 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
3744 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
3745 if dwarf_version < 5.
3746 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
3747 DW_OP_GNU_xxx.
3748 (scompare_loc_descriptor, ucompare_loc_descriptor,
3749 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
3750 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
3751 optimize_location_into_implicit_ptr): Likewise. Only punt for
3752 !dwarf_strict if dwarf_version < 5.
3753 (string_cst_pool_decl): Adjust comment.
3754 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
3755
3756 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
3757 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3758 (struct dw_val_node): Add val_file_implicit field.
3759 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
3760 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
3761 output_die): Handle dw_val_class_const_implicit,
3762 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
3763 (abbrev_die_table): Change into va_gc vec.
3764 (abbrev_die_table_allocated, abbrev_die_table_in_use,
3765 ABBREV_DIE_TABLE_INCREMENT): Remove.
3766 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
3767 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
3768 variables.
3769 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
3770 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
3771 vectors.
3772 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
3773 functions.
3774 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
3775 the implicit value.
3776 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
3777 vec.
3778 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
3779 unit. Call optimize_abbrev_table.
3780 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
3781 abbrev_die_table being a va_gc vec.
3782
3783 PR tree-optimization/77860
3784 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
3785 also integral complex and vector constants.
3786
3787 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
3788 optimize_macinfo_range, save_macinfo_strings): Replace
3789 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
3790 (output_macinfo): Likewise. Emit .debug_macro* rather than
3791 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
3792 (init_sections_and_labels): Use .debug_macro* labels rather than
3793 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
3794 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
3795 or DW_AT_GNU_macros for -gdwarf-5.
3796
3797 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
3798
3799 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
3800
3801 2016-09-11 Le-Chun Wu <lcwu@google.com>
3802 Mark Wielaard <mjw@redhat.com>
3803
3804 * common.opt (Wshadow=global): New option. Default for -Wshadow.
3805 (Wshadow=local): New option.
3806 (Wshadow-local): Hidden alias for -Wshadow=local.
3807 (Wshadow=compatible-local): New option.
3808 (Wshadow-compatible-local): Hidden alias for
3809 -Wshadow=compatible-local.
3810 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
3811 Wshadow=compatible-local.
3812
3813 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3814
3815 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
3816 Check slp defs for COND_EXPR by swapping/inverting operands if the
3817 new parameter SWAP indicates so.
3818 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
3819 is isomorphic to the first stmt via swapping/inverting. Store swap
3820 information in the new parameter SWAP.
3821 (vect_build_slp_tree): New local array SWAP and pass it to function
3822 vect_build_slp_tree_1. Cleanup result handling code for function
3823 call to vect_get_and_check_slp_defs. Skip operand swapping if the
3824 order of operands has been fixed as indicated by SWAP[i].
3825
3826 2016-10-31 Bin Cheng <bin.cheng@arm.com>
3827
3828 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
3829 unnecessary data dependence check after visited store stmt.
3830
3831 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3832
3833 PR tree-optimization/71915
3834 PR tree-optimization/71490
3835 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
3836 stride_type field.
3837 (find_basis_for_base_expr): Require stride types to match when
3838 seeking a basis.
3839 (alloc_cand_and_find_basis): Record the stride type.
3840 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
3841 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
3842 the expressions having those types.
3843 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
3844 (create_mul_ssa_cand): Likewise.
3845 (create_mul_imm_cand): Likewise.
3846 (create_add_ssa_cand): Likewise.
3847 (create_add_imm_cand): Likewise.
3848 (legal_cast_p_1): Change interface to accept types rather than the
3849 expressions having those types.
3850 (legal_cast_p): Pass types to legal_cast_p_1.
3851 (slsr_process_cast): Pass stride type to
3852 alloc_cand_and_find_basis.
3853 (slsr_process_copy): Likewise.
3854 (dump_candidate): Display stride type when a cast exists.
3855 (create_add_on_incoming_edge): Introduce a cast when necessary for
3856 the stride type.
3857 (analyze_increments): Change the code checking for invalid casts
3858 to rely on the stride type, and update the documentation and
3859 example. Change the code checking for pointer multiplies to rely
3860 on the stride type.
3861 (insert_initializers): Introduce a cast when necessary for the
3862 stride type. Use the stride type for the type of the initializer.
3863
3864 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3865
3866 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
3867
3868 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3869
3870 PR rtl-optimization/77919
3871 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
3872 into memory if both modes are complex and their inner modes have the
3873 same precision. If the two modes are different complex modes, convert
3874 each part separately and generate a new CONCAT.
3875
3876 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3877
3878 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
3879
3880 2016-10-29 Jakub Jelinek <jakub@redhat.com>
3881
3882 PR target/78148
3883 * gimple-ssa-store-merging.c
3884 (imm_store_chain_info::output_merged_store): Use build_aligned_type
3885 instead of SET_TYPE_ALIGN on shared integral type.
3886
3887 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3888
3889 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3890 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
3891 Adjust comment.
3892
3893 2016-10-28 Jeff Law <law@redhat.com>
3894
3895 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
3896 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
3897
3898 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3899
3900 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
3901
3902 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3903
3904 * target.def (min_arithmetic_precision): New hook.
3905 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
3906 * doc/tm.texi: Regenerate.
3907 * internal-fn.c (expand_arith_overflow): Adjust handling of target
3908 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
3909 * targhooks.c (default_min_arithmetic_precision): New function.
3910 * targhooks.h (default_min_arithmetic_precision): Declare.
3911 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
3912 (sparc_min_arithmetic_precision): New function.
3913
3914 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3915
3916 PR target/71847
3917 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
3918 Swap commutative operands in new RTL if needed. Handle zero_ext
3919 in the set_dest.
3920 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
3921 PATTERN (insn).
3922
3923 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3924 Kugan Vivekanandarajah <kuganv@linaro.org>
3925 Jim Wilson <jim.wilson@linaro.org>
3926
3927 PR tree-optimization/43721
3928 * target.def: New hook expand_divmod_libfunc.
3929 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
3930 * doc/tm.texi: Regenerate.
3931 * internal-fn.def: Add new entry for DIVMOD ifn.
3932 * internal-fn.c (expand_DIVMOD): New.
3933 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
3934 targhooks.h.
3935 (widen_mul_stats): Add new field divmod_calls_inserted.
3936 (target_supports_divmod_p): New.
3937 (divmod_candidate_p): Likewise.
3938 (convert_to_divmod): Likewise.
3939 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
3940 renumber_gimple_stmt_uids at beginning of function. Call
3941 convert_to_divmod and record stats for divmod.
3942 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
3943 TARGET_EXPAND_DIVMOD_LIBFUNC.
3944 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
3945 divmod_simode.
3946
3947 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3948 Segher Boessenkool <segher@kernel.crashing.org>
3949
3950 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
3951 swapping the arms of the branch.
3952 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
3953 sequence for the generic signed-signed-signed case.
3954
3955 2016-10-28 Jeff Law <law@redhat.com>
3956
3957 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
3958 fallthru comment.
3959 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3960
3961 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3962
3963 PR rtl-optimization/78029
3964 * function.c (prologue_contains, epilogue_contains): New functions.
3965 (record_prologue_seq, record_epilogue_seq): New functions.
3966 * function.h (prologue_contains, epilogue_contains,
3967 record_prologue_seq, record_epilogue_seq): New declarations.
3968 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
3969 mixing prologue and epilogue insns.
3970 (init_deps): Initialize the new fields in struct deps_desc.
3971 * sched-int.h (struct deps_desc): New fields last_prologue,
3972 last_epilogue, and last_logue_was_epilogue.
3973 * shrink-wrap.c (emit_common_heads_for_components): Record all
3974 emitted prologue and epilogue insns.
3975 (emit_common_tails_for_components): Ditto.
3976 (insert_prologue_epilogue_for_components): Ditto.
3977
3978 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3979
3980 PR middle-end/22141
3981 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
3982 * common.opt (fstore-merging): New Optimization option.
3983 * opts.c (default_options_table): Add entry for
3984 OPT_ftree_store_merging.
3985 * fold-const.h (can_native_encode_type_p): Declare prototype.
3986 * fold-const.c (can_native_encode_type_p): Define.
3987 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
3988 (PARAM_MAX_STORES_TO_MERGE): Likewise.
3989 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
3990 * passes.def: Insert pass_tree_store_merging.
3991 * tree-pass.h (make_pass_store_merging): Declare extern
3992 prototype.
3993 * gimple-ssa-store-merging.c: New file.
3994 * doc/invoke.texi (Optimization Options): Document
3995 -fstore-merging.
3996 (--param documentation): Document store-merging-allow-unaligned
3997 and max-stores-to-merge.
3998
3999 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
4000
4001 PR middle-end/72747
4002 * gimplify.c (gimplify_init_constructor): Move emit of constructor
4003 assignment to earlier in the if/else logic.
4004
4005 2016-10-28 Richard Biener <rguenther@suse.de>
4006
4007 PR middle-end/78128
4008 PR middle-end/71002
4009 * fold-const.c (make_bit_field_ref): Only adjust alias set
4010 when the original alias set was zero.
4011
4012 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4013
4014 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
4015 (s390_adjust_loops): New function.
4016 (s390_reorg): Invoke s390_adjust_loops.
4017 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
4018 ("osc_break"): New insn definition.
4019
4020 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4021
4022 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
4023 * config.gcc: Support alternate archXX cpu levels with
4024 --with-arch= and --with-tune=.
4025 * config/s390/linux.h: Translate new archXX cpu levels to the
4026 original names when calling GAS.
4027 * config/s390/tpf.h: Likewise.
4028 * doc/invoke.texi: Document the alternate cpu level names.
4029
4030 2016-10-28 Jakub Jelinek <jakub@redhat.com>
4031
4032 PR rtl-optimization/77919
4033 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
4034 MEM if mode1 is not a complex mode.
4035
4036 PR rtl-optimization/78132
4037 * ree.c (combine_reaching_defs): Give up if copy_needed and
4038 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
4039
4040 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
4041
4042 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
4043
4044 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4045
4046 * config/rs6000/constraints.md (wH constraint): Add new
4047 constraints for allowing 32-bit integers (and eventually 8/16-bit
4048 integers) into the vector registers.
4049 (wI constraint): Likewise.
4050 (wJ constraint): Likewise.
4051 (wK constraint): Likewise.
4052 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
4053 -mvsx-small-integer as a default option for ISA 2.07
4054 (i.e. power8).
4055 (POWERPC_MASKS): Likewise.
4056 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
4057 switch to turn off small integer support in vector registers.
4058 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
4059 test for -mupper-regs-di, since it is already done with the
4060 reg_add[mode].scalar_in_vsx_p. Add support for the switch
4061 -mvsx-small-integer.
4062 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
4063 constraints.
4064 (rs6000_setup_reg_addr_masks): Likewise.
4065 (rs6000_init_hard_regno_mode_ok): Likewise.
4066 (rs6000_option_override_internal): Add consistency checks for
4067 -mvsx-small-integer.
4068 (rs6000_secondary_reload_simple_move): SImode is a simple move if
4069 -mvsx-small-integer.
4070 (rs6000_secondary_reload): Use std::swap.
4071 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
4072 VSX_REGS for small integers in vector registers, since there is no
4073 D-FORM address mode for such types.
4074 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
4075 (rs6000_opt_masks): Add -mvsx-small-integer.
4076 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
4077 support.
4078 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
4079 extracts can be done on ISA 2.07.
4080 (vsx_extract_<mode>): Add support for small integers in vsx
4081 registers.
4082 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
4083 longer support V4SImode in this pattern.
4084 (vsx_extract_si): New insn to support extraction of SImode in ISA
4085 2.07 using either xxextractuw or vspltw.
4086 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
4087 longer support V4SImode in this pattern.
4088 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
4089 wJ, and wK constraints.
4090 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
4091 storing SDmode with VSX instructions.
4092 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
4093 GPR load and before the FPR and VSX loads. Remove ??, ! from the
4094 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
4095 small integers in vector registers.
4096 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
4097 load and before the FPR and VSX loads. Remove ??, ! from the
4098 constraints. Add VEXTSW2D support for small integers in vector
4099 registers.
4100 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
4101 integers in vector registers.
4102 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
4103 move instead of using an UNSPEC.
4104 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
4105 integers in vector registers.
4106 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
4107 move instead of using an UNSPEC.
4108 (movsi_internal1): Add support for -mvsx-small-integer. Align
4109 columns so that it is more readable.
4110 (SImode splitter for ISA 3.0 constants): Add splitter for
4111 -128..127 constants that can easily be constructed on ISA 3.0.
4112 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
4113 constraints.
4114
4115 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4116
4117 PR middle-end/78025
4118 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
4119 functions.
4120
4121 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4122
4123 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
4124 PIC_OFFSET_TABLE_REGNUM twice.
4125
4126 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4127
4128 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
4129 support for constant operand for OP.
4130
4131 2016-10-27 Jakub Jelinek <jakub@redhat.com>
4132
4133 * dwarf2out.c (gen_member_die): Only reparent_child instead of
4134 splice_child_die if child doesn't have DW_AT_specification attribute.
4135
4136 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4137
4138 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
4139 (TARGET_HAVE_LDREXBH): Likewise.
4140 (TARGET_HAVE_LDACQ): Likewise.
4141
4142 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4143
4144 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
4145 logic to to decide whether to copy over old value to register for new
4146 value.
4147 * config/arm/sync.md: Add comments explaning why mode and code
4148 attribute are not defined in iterators.md
4149 (thumb1_atomic_op_str): New code attribute.
4150 (thumb1_atomic_newop_str): Likewise.
4151 (thumb1_atomic_fetch_op_str): Likewise.
4152 (thumb1_atomic_fetch_newop_str): Likewise.
4153 (thumb1_atomic_fetch_oldop_str): Likewise.
4154 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
4155 mirror the more restrictive constraints of the Thumb-1 insns after
4156 split compared to Thumb-2 counterpart insns.
4157 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
4158 in sync with non atomic version.
4159 (atomic_nand<mode>): Likewise.
4160 (atomic_fetch_<sync_optab><mode>): Likewise.
4161 (atomic_fetch_nand<mode>): Likewise.
4162 (atomic_<sync_optab>_fetch<mode>): Likewise.
4163 (atomic_nand_fetch<mode>): Likewise.
4164 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
4165 in sync with atomic version.
4166 (thumb1_subsi3_insn): Likewise.
4167 (thumb1_andsi3_insn): Likewise.
4168 (thumb1_iorsi3_insn): Likewise.
4169 (thumb1_xorsi3_insn): Likewise.
4170
4171 2016-10-27 Nick Clifton <nickc@redhat.com>
4172
4173 * plugin.c (register_plugin_info): Produce an error message if the
4174 plugin is not found in the hash table.
4175
4176 2016-10-27 Bin Cheng <bin.cheng@arm.com>
4177
4178 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
4179 New pattern.
4180
4181 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
4182
4183 PR target/78056
4184 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
4185 define builtin functions from the bdesc_spe_predicates or
4186 bdesc_spe_evsel arrays if the builtin mask is not compatible with
4187 the current compiler configuration.
4188 (paired_init_builtins): Modify loop to not define define builtin
4189 functions from the bdesc_paried_preds array if the builtin mask is
4190 not compatible with the current compiler configuration.
4191 (altivec_init_builtins): Modify loops to not define the
4192 __builtin_altivec_stxvl function nor the builtin functions from
4193 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
4194 builtin mask is not compatible with the current compiler
4195 configuration.
4196
4197 2016-10-26 Jeff Law <law@redhat.com>
4198
4199 * config/sh/sh.c (output_branch): Add missing fallthru comments.
4200 (gen_shl_and): Likewise.
4201 * config/sh/sh.md (movsicc): Add missing fallthru comments.
4202
4203 * config/mips/mips.c (mips16_constant_cost): Add missing
4204 fallthru comments.
4205 (mips16_build_call_stub): Increase buffer size. Adjust
4206 fallthru comment.
4207
4208 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4209
4210 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
4211 INSN_UIDs for all insns in compact mode.
4212 (rtx_writer::print_rtx): Likewise.
4213 * print-rtl.h (rtx_writer::flag_compact): Update comment.
4214 * rtl-tests.c (selftest::test_dumping_insns): Update expected
4215 output to include INSN_UID.
4216 (selftest::test_uncond_jump): Likewise.
4217
4218 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
4219
4220 * haifa-sched.c (call_used_regs_num): Rename to...
4221 (call_saved_regs_num): ...this.
4222 (fixed_regs_num): New variable.
4223 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
4224 regs not call_used.
4225 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
4226
4227 2016-10-26 David Malcolm <dmalcolm@redhat.com>
4228
4229 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
4230 class rtx_writer.
4231 * print-rtl.c (outfile): Delete global.
4232 (sawclose): Likewise.
4233 (indent): Likewise.
4234 (in_call_function_usage): Likewise.
4235 (flag_compact): Likewise.
4236 (flag_simple): Likewise.
4237 (rtx_writer::rtx_writer): New ctor.
4238 (print_rtx_operand_code_0): Convert to...
4239 (rtx_writer::print_rtx_operand_code_0): ...this.
4240 (print_rtx_operand_code_e): Convert to...
4241 (rtx_writer::print_rtx_operand_code_e): ...this.
4242 (print_rtx_operand_codes_E_and_V): Convert to...
4243 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
4244 (print_rtx_operand_code_i): Convert to...
4245 (rtx_writer::print_rtx_operand_code_i): ...this.
4246 (print_rtx_operand_code_r): Convert to...
4247 (rtx_writer::print_rtx_operand_code_r): ...this.
4248 (print_rtx_operand_code_u): Convert to...
4249 (rtx_writer::print_rtx_operand_code_u): ...this.
4250 (print_rtx_operand): Convert to...
4251 (rtx_writer::print_rtx_operand): ...this.
4252 (print_rtx): Convert to...
4253 (rtx_writer::print_rtx): ...this.
4254 (print_inline_rtx): Rewrite in terms of class rtx_writer.
4255 (debug_rtx): Likewise.
4256 (print_rtl): Convert to...
4257 (rtx_writer::print_rtl): ...this.
4258 (print_rtl): Reimplement in terms of class rtx_writer.
4259 (print_rtl_single): Rewrite in terms of class rtx_writer.
4260 (print_rtl_single_with_indent): Convert to..
4261 (rtx_writer::print_rtl_single_with_indent): ...this.
4262 (print_simple_rtl): Rewrite in terms of class rtx_writer.
4263 * print-rtl.h (flag_compact): Delete decl.
4264 (class rtx_writer): New class.
4265 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
4266 class rtx_writer.
4267
4268 2016-10-26 Jeff Law <law@redhat.com>
4269
4270 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
4271 fallthru.
4272
4273 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
4274 (check_if_valid_sleep_operand): Add missing fallthru comment.
4275 (arc_register_move_cost): Increase buffer size.
4276 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
4277 comment.
4278 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
4279
4280 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
4281 comment. Add gcc_unreachable for path that should never happen.
4282
4283 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
4284 fallthru comment.
4285
4286 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4287 Martin Liska <mliska@suse.cz>
4288
4289 PR fortran/77973
4290 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
4291 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
4292 on outer context if any.
4293
4294 2016-10-26 Jakub Jelinek <jakub@redhat.com>
4295
4296 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
4297 by increment rather than double it.
4298 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
4299 emit a space before args[4].
4300 (END): Don't emit a space before with_arg.
4301
4302 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4303
4304 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
4305 Baseline only alternatives to (i) hold store atomic success value in a
4306 return register rather than a scratch register, (ii) use a low register
4307 for it and to (iii) ensure the cbranchsi insn generated by the split
4308 respect the constraints of Thumb-1 cbranchsi4_insn and
4309 cbranchsi4_scratch.
4310 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
4311 constraints must match those in atomic_compare_and_swap.
4312 (cbranchsi4_scratch): Likewise.
4313
4314 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
4315
4316 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
4317 variable. Add the new parameter to the insn generator. Set that
4318 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
4319 return value from the negation of that parameter for Thumb-1, keeping
4320 the logic unchanged otherwise except for using bdst as the destination
4321 register of the compare_and_swap insn.
4322 (arm_split_compare_and_swap): Add explanation about how is the value
4323 returned to the function comment. Rename scratch variable to
4324 neg_bval. Adapt initialization of variables holding operands to the
4325 new operand numbers. Use return register to hold result of store
4326 exclusive for Thumb-1, scratch register otherwise. Construct the
4327 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
4328 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
4329 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
4330 for strongly ordered compare_and_swap.
4331 * config/arm/predicates.md (cc_register_operand): New predicate.
4332 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
4333 match_operand with the new predicate to accept either the CC flag or a
4334 destination register for the boolean return value, restricting it to
4335 CC flag only via constraint. Adapt operand numbers accordingly.
4336
4337 2016-10-26 Jeff Law <law@redhat.com>
4338
4339 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
4340
4341 * config/frv/frv.c (comparison_string): Do not fall through after
4342 an error.
4343
4344 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
4345 comment.
4346 (expand_one_builtin): Add missing break.
4347
4348 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
4349 (m32c_legitimate_address_p): Likewise.
4350
4351 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
4352
4353 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
4354
4355 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
4356 fallthru comment.
4357
4358 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
4359 fallthru comment.
4360
4361 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
4362
4363 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
4364 comment.
4365 (rl78_asm_ctor_dtor): Increase buffer size.
4366
4367 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
4368 buffer size.
4369 (xstormy16_asm_output_constructor): Likewise.
4370
4371 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
4372 size.
4373
4374 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
4375 comment to silence warning.
4376
4377 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
4378 (spu_legitimate_address_p): Fix logic error and add missing fallthru
4379 comment.
4380
4381 2016-10-26 Michael Matz <matz@suse.de>
4382
4383 PR tree-optimization/78060
4384 PR tree-optimization/78061
4385 PR tree-optimization/78088
4386 * tree-ssa-loop-split.c (easy_exit_values): New function.
4387 (tree_ssa_split_loops): Use it.
4388 (compute_new_first_bound): Change order of operations,
4389 fix invalid use of types.
4390
4391 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
4392
4393 gen-pass-instances.awk is sensitive to the order in which
4394 passes are added; passes that appear later have to be added first.
4395
4396 PR target/71676
4397 PR target/71678
4398 * config/avr/avr-passes.def: Swap order of directives for
4399 gen-pass-instances.awk.
4400
4401 2016-10-25 Jeff Law <law@redhat.com>
4402
4403 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
4404 (vax_notice_update_cc): Likewise.
4405
4406 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4407
4408 * config.gcc (sparc*-*-solaris2*): Adjust.
4409 (sparc64-*-linux*): Likewise.
4410 * config/sparc/default-64.h: Rename to...
4411 * config/sparc/default64.h: ...this.
4412 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
4413 with TARGET_ARCH64.
4414 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
4415 * config/sparc/sparc.h: Minor tweaks.
4416 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
4417 TARGET_ARCH32 throughout. Minor various tweaks throughout.
4418
4419 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4420
4421 * input.c (fcache::file_patch): Add comment about lifetime.
4422 (selftest::cpp_reader_ptr): New class.
4423 (selftest::lexer_test): Convert m_parser from cpp_reader *
4424 to a cpp_reader_ptr, and move m_tempfile to after it.
4425 (selftest::lexer_test::lexer_test): Update for above reordering.
4426 (lexer_test::~lexer_test): Move cleanup of m_parser to
4427 cpp_reader_ptr's dtor.
4428
4429 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4430
4431 * toplev.c (toplev::main): Remove call to
4432 location_adhoc_data_fini.
4433
4434 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
4435
4436 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
4437 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
4438
4439 2016-10-25 David Malcolm <dmalcolm@redhat.com>
4440
4441 * ggc-tests.c (forcibly_ggc_collect): Rename to...
4442 (selftest::forcibly_ggc_collect): ...this, and remove "static".
4443 (test_basic_struct): Update for above renaming.
4444 (test_length): Likewise.
4445 (test_union): Likewise.
4446 (test_finalization): Likewise.
4447 (test_deletable_global): Likewise.
4448 (test_inheritance): Likewise.
4449 (test_chain_next): Likewise.
4450 (test_user_struct): Likewise.
4451 (test_tree_marking): Likewise.
4452 * selftest-run-tests.c (selftest::run_tests): Call
4453 selftest::forcibly_ggc_collect at the end of the selftests.
4454 * selftest.h (selftest::forcibly_ggc_collect): New decl.
4455
4456 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4457
4458 PR target/78102
4459 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
4460 * optabs.c (expand_vec_cond_expr): For comparison codes
4461 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
4462 (expand_vec_cmp_expr): For comparison codes
4463 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
4464 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
4465 Add enum tree_code argument.
4466 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
4467 inline functions.
4468 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
4469 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
4470 fallback.
4471 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
4472 NE_EXPR, attempt to use vcondeq_optab as fallback.
4473 * tree-vect-generic.c (expand_vector_comparison,
4474 expand_vector_divmod, expand_vector_condition): Adjust
4475 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
4476 * tree-vect-stmts.c (vectorizable_condition,
4477 vectorizable_comparison): Likewise.
4478 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
4479 check_bool_pattern, search_type_for_mask_1): Likewise.
4480 * expr.c (do_store_flag): Likewise.
4481 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
4482 @code{vcondeq@var{m}@var{n}}): Document.
4483 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
4484 New expanders.
4485
4486 2016-10-25 Jeff Law <law@redhat.com>
4487
4488 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
4489 comment.
4490 (v850_output_aligned_bss): Add missing break.
4491
4492 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
4493
4494 2016-10-25 Martin Liska <mliska@suse.cz>
4495
4496 PR sanitizer/78106
4497 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
4498 statements as they can also contain possibly a freeing call.
4499
4500 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
4501 Martin Liska <mliska@suse.cz>
4502
4503 PR ipa/78099
4504 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
4505 * ipa-icf.c (sem_function::get_hash): Add target optimization
4506 node to hash.
4507
4508 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
4509
4510 PR target/78041
4511 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
4512 Remove partial overlap check for shift by 1.
4513 (ashldi3_neon): Likewise.
4514
4515 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
4516
4517 * config/arm/constraints.md (Q constraint): Document its use for
4518 Thumb-1.
4519 (Pf constraint): New constraint for relaxed, consume or relaxed memory
4520 models.
4521 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
4522 alternatives to allow any register when memory model matches Pf and
4523 thus lda is used, but only low registers otherwise. Use unpredicated
4524 output template for Thumb-1 targets.
4525 (atomic_store<mode>): Likewise for stl.
4526 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
4527 whose output template does not have predication.
4528 (arm_load_acquire_exclusive<mode>): Likewise.
4529 (arm_load_exclusivesi): Likewise.
4530 (arm_load_acquire_exclusivesi): Likewise.
4531 (arm_store_release_exclusive<mode>): Likewise.
4532 (arm_store_exclusive<mode>): Use unpredicated output template for
4533 Thumb-1 targets.
4534
4535 2016-10-25 Jakub Jelinek <jakub@redhat.com>
4536
4537 * internal-fn.def (LAUNDER): New internal function.
4538 * internal-fn.c (expand_LAUNDER): New function.
4539
4540 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4541 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4542
4543 New avr target pass to work around performance loss by PR fix.
4544
4545 PR target/71676
4546 PR target/71678
4547 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
4548 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
4549 * config/avr/predicates.md (extend_operator): New.
4550 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
4551 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
4552 (make_avr_pass_casesi): New prototypes.
4553 * config/avr/avr.c (print-rtl.h): Include it.
4554 (pass_data avr_pass_data_casesi): Data for new pass.
4555 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
4556 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
4557 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
4558 (avr_optimize_casesi): New functions.
4559
4560 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
4561 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
4562
4563 PR target/71676
4564 PR target/71678
4565 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
4566
4567 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4568
4569 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
4570 DW_AT_rvalue_reference attributes.
4571
4572 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
4573
4574 * doc/invoke.text (Wint-in-bool-context): Update documentation.
4575 * value-prof.c (stringop_block_profile): Fix a warning.
4576
4577 2016-10-24 Martin Sebor <msebor@redhat.com>
4578
4579 PR middle-end/77735
4580 * builtins.c (string_length): New function.
4581 (c_strlen): Use string_length. Correctly handle wide strings.
4582 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
4583 functions.
4584 (target_int_max): Call target_max_value.
4585 (format_result::knownrange): New data member.
4586 (fmtresult::fmtresult): Define default constructor.
4587 (format_integer): Use it and set format_result::knownrange.
4588 Handle global constants.
4589 (format_floating_max): Add third argument.
4590 (format_floating): Recompute maximum value for %a for each argument.
4591 (get_string_length): Use fmtresult default ctor.
4592 (format_string): Set format_result::knownrange.
4593 (format_directive): Check format_result::knownrange.
4594 (add_bytes): Same. Correct caret placement in diagnostics.
4595 (pass_sprintf_length::compute_format_length): Set
4596 format_result::knownrange.
4597 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
4598
4599 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4600
4601 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
4602 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
4603
4604 2016-10-24 Ximin Luo <infinity0@pwned.gg>
4605
4606 PR debug/77985
4607 * dwarf2out.c (file_table_relative_p): Remove.
4608 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
4609 also for absolute paths.
4610 * doc/tm.texi: Update.
4611 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
4612 * target.def (force_at_comp_dir): Remove hook.
4613 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
4614
4615 2016-10-24 Richard Biener <rguenther@suse.de>
4616
4617 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
4618 backedges when identifying the single predecessor to take
4619 conditional info from. Use SCEV to get at ranges for loop IVs.
4620 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
4621 avoid false warning.
4622
4623 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
4624
4625 PR target/78093
4626 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
4627 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
4628 (avr_address_tiny_absdata_p): New static function.
4629 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
4630 it to determine validity of constant addresses.
4631 (avr_attribute_table) [absdata]: New variable attribute...
4632 (avr_handle_absdata_attribute): ...and handler.
4633 (avr_decl_absdata_p): New static function.
4634 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
4635 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
4636 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
4637
4638 2016-10-24 Richard Biener <rguenther@suse.de>
4639
4640 PR tree-optimization/78076
4641 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
4642 also on the loop tree root.
4643
4644 2016-10-24 Jakub Jelinek <jakub@redhat.com>
4645
4646 * config/i386/i386.c (ix86_fold_builtin): Handle
4647 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
4648 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4649 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
4650 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
4651
4652 2016-10-24 Martin Liska <mliska@suse.cz>
4653
4654 PR sanitizer/77966
4655 * opts.c (finish_options): Skip conditionally.
4656
4657 2016-10-23 Martin Sebor <msebor@redhat.com>
4658
4659 PR target/77837
4660 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
4661 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
4662
4663 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4664
4665 * config/sparc/sparc.md (cpu_feature): Minor tweak.
4666 (enabled): Likewise.
4667 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
4668 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
4669 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
4670 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
4671 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
4672 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
4673
4674 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
4675
4676 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
4677 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
4678
4679 2016-10-21 Andrew Pinski <apinski@cavium.com>
4680
4681 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
4682 integer constants.
4683 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
4684 implementer_id to unsigned char.
4685 Change part_no to unsigned int.
4686 (AARCH64_BIG_LITTLE): New define.
4687 (INVALID_IMP): New define.
4688 (INVALID_CORE): New define.
4689 (cpu_data): Change the last element's implementer_id and part_no to
4690 integers.
4691 (valid_bL_string_p): Rewrite to ..
4692 (valid_bL_core_p): this for integers instead of strings.
4693 (parse_field): New function.
4694 (contains_string_p): Rewrite to ...
4695 (contains_core_p): this for integers and only for the part_no.
4696 (host_detect_local_cpu): Rewrite handling of implementation and
4697 par num to be integers; simplifying the code.
4698
4699 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4700
4701 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
4702 value range for pointers in more cases.
4703
4704 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4705
4706 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
4707 Add extra argument to allow emitting the move immediate.
4708 Use add/sub with positive immediate.
4709 (aarch64_add_constant): Add inline function.
4710 (aarch64_add_sp): Likewise.
4711 (aarch64_sub_sp): Likewise.
4712 (aarch64_expand_prologue): Call aarch64_sub_sp.
4713 (aarch64_expand_epilogue): Call aarch64_add_sp.
4714 Decide when to leave out move.
4715 (aarch64_output_mi_thunk): Call aarch64_add_constant.
4716
4717 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
4718
4719 * config/aarch64/aarch64.c (aarch64_layout_frame):
4720 Align FP callee-saves.
4721
4722 2016-10-21 Jakub Jelinek <jakub@redhat.com>
4723
4724 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
4725 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
4726 Formatting fixes.
4727 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4728 _rdseed64_step): Likewise.
4729 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
4730
4731 PR target/78057
4732 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
4733 and tree-ssanames.h.
4734 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
4735 with INTEGER_CST argument.
4736 (ix86_gimple_fold_builtin): New function.
4737 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4738
4739 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
4740 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
4741 (ranges_table_allocated, ranges_table_in_use,
4742 ranges_by_label_allocated, ranges_by_label_in_use,
4743 RANGES_TABLE_INCREMENT): Removed.
4744 (add_ranges_num): Use vec_safe_push into ranges_table.
4745 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
4746 (output_ranges): Adjust for ranges_table and ranges_by_label
4747 conversion from arrays to vec.
4748 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
4749 conversion from arrays to vec.
4750 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
4751 ranges_table_in_use, ranges_by_label_allocated and
4752 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
4753
4754 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
4755 if needed. Re-add origin_die variable and its initialization.
4756
4757 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
4758 even for -fstack-reuse=none, or for volatile vars etc.
4759
4760 2016-10-21 David Malcolm <dmalcolm@redhat.com>
4761
4762 * print-rtl-function.c (flag_compact): Move extern decl to...
4763 * print-rtl.h (flag_compact): ...here.
4764 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
4765 (ASSERT_RTL_DUMP_EQ): New macro.
4766 (selftest::test_dumping_regs): New function.
4767 (selftest::test_dumping_insns): New function.
4768 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
4769 the insns.
4770 (selftest::rtl_tests_c_tests): Call the new test functions.
4771
4772 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4773
4774 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
4775 (outgoing_edges_match): Likewise.
4776 (try_crossjump_to_edge): Likewise.
4777 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4778 (rtl_tidy_fallthru_edge): Likewise.
4779 * rtl.h (tablejump_p): Adjust prototype.
4780 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
4781
4782 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4783
4784 * rtl.h (label_ref_label): New function.
4785 (set_label_ref_label): New function.
4786 (LABEL_REF_LABEL): Delete.
4787 * alias.c (rtx_equal_for_memref_p): Adjust.
4788 * cfgbuild.c (make_edges): Likewise.
4789 (purge_dead_tablejump_edges): Likewise.
4790 * cfgexpand.c (convert_debug_memory_address): Likewise.
4791 * cfgrtl.c (patch_jump_insn): Likewise.
4792 * combine.c (distribute_notes): Likewise.
4793 * cse.c (hash_rtx_cb): Likewise.
4794 (exp_equiv_p): Likewise.
4795 (fold_rtx): Likewise.
4796 (check_for_label_ref): Likewise.
4797 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4798 (cselib_hash_rtx): Likewise.
4799 * emit-rtl.c (mark_label_nuses): Likewise.
4800 * explow.c (convert_memory_address_addr_space_1): Likewise.
4801 * final.c (output_asm_label): Likewise.
4802 (output_addr_const): Likewise.
4803 * gcse.c (add_label_notes): Likewise.
4804 * genconfig.c (walk_insn_part): Likewise.
4805 * genrecog.c (validate_pattern): Likewise.
4806 * ifcvt.c (cond_exec_get_condition): Likewise.
4807 (noce_emit_store_flag): Likewise.
4808 (noce_get_alt_condition): Likewise.
4809 (noce_get_condition): Likewise.
4810 * jump.c (maybe_propagate_label_ref): Likewise.
4811 (mark_jump_label_1): Likewise.
4812 (redirect_exp_1): Likewise.
4813 (rtx_renumbered_equal_p): Likewise.
4814 * lra-constraints.c (operands_match_p): Likewise.
4815 * print-rtl.c (print_value): Likewise.
4816 * reload.c (find_reloads): Likewise.
4817 * reload1.c (set_label_offsets): Likewise.
4818 * reorg.c (get_branch_condition): Likewise.
4819 * rtl-tests.c (test_uncond_jump): Likewise.
4820 * rtl.c (rtx_equal_p_cb): Likewise.
4821 (rtx_equal_p): Likewise.
4822 * rtlanal.c (reg_mentioned_p): Likewise.
4823 (rtx_referenced_p): Likewise.
4824 (get_condition): Likewise.
4825 * varasm.c (const_hash_1): Likewise.
4826 (compare_constant): Likewise.
4827 (const_rtx_hash_1): Likewise.
4828 (output_constant_pool_1): Likewise.
4829
4830 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4831
4832 PR target/71627
4833 * reload.c (find_valid_class_1): Allow regclass if atleast one
4834 regno in regclass is ok. Compute and use rclass size based on
4835 actually available regnos for mode in rclass.
4836
4837 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
4838
4839 * config/sparc/sparc-modes.def (CCV): New.
4840 (CCXV): Likewise.
4841 * config/sparc/predicates.md (v_comparison_operator): New.
4842 (icc_comparison_operator): Add support for CCV/CCXV.
4843 (xcc_comparison_operator): Likewise.
4844 * config/sparc/sparc.c (output_cbranch): Likewise.
4845 (sparc_print_operand): Likewise.
4846 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4847 (uaddvdi4): New expander.
4848 (addvdi4): Likewise.
4849 (uaddvdi4_sp32): New instruction.
4850 (addvdi4_sp32): Likewise.
4851 (uaddvsi4): New expander.
4852 (addvsi4): Likewise.
4853 (cmp_ccc_plus_sltu_set): New instruction.
4854 (cmp_ccv_plus): Likewise.
4855 (cmp_ccxv_plus): Likewise.
4856 (cmp_ccv_plus_set): Likewise.
4857 (cmp_ccxv_plus_set): Likewise.
4858 (cmp_ccv_plus_sltu_set): Likewise.
4859 (uaddvdi4): New expander.
4860 (subvdi4): Likewise.
4861 (usubdi4_sp32): New instruction.
4862 (subvdi4_sp32): Likewise.
4863 (usubvsi4): New expander.
4864 (subvsi4): Likewise.
4865 (cmpsi_minus_sltu_set): New instruction.
4866 (cmp_ccv_minus): Likewise.
4867 (cmp_ccxv_minus): Likewise.
4868 (cmp_ccv_minus_set): Likewise.
4869 (cmp_ccxv_minus_set): Likewise.
4870 (cmp_ccv_minus_sltu_set): Likewise.
4871 (unegvdi3): New expander.
4872 (negvdi3): Likewise.
4873 (unegdi3_sp32): New instruction.
4874 (negvdi3_sp32): Likewise.
4875 (unegvsi3): New expander.
4876 (negvsi3): Likewise.
4877 (cmp_ccc_neg_sltu_set): New instruction.
4878 (cmp_ccv_neg): Likewise.
4879 (cmp_ccxv_neg): Likewise.
4880 (cmp_ccv_neg_set): Likewise.
4881 (cmp_ccxv_neg_set): Likewise.
4882 (cmp_ccv_neg_sltu_set): Likewise.
4883
4884 * tree-ssa-loop-split.c: Remove trailing spaces.
4885 * match.pd: Likewise.
4886
4887 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4888
4889 PR rtl-optimization/78038
4890 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
4891 be deduced to set REG through the RTL structure.
4892 (make_defs_and_copies_lists): Return false on a failing get_defs call.
4893
4894 2016-10-21 Richard Biener <rguenther@suse.de>
4895
4896 PR tree-optimization/78051
4897 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
4898 and mark replaced if folding did something.
4899
4900 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
4901
4902 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
4903 and "protected" in visibility types.
4904 (rs6000_xcoff_declare_function_name): Fix formatting.
4905 (rs6000_xcoff_declare_object_name): Fix formatting.
4906
4907 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
4908
4909 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
4910 and IX86_BUILTIN_HUGE_VALQ here ...
4911 (ix86_expand_builtin): ... not here.
4912
4913 2016-10-20 Jakub Jelinek <jakub@redhat.com>
4914
4915 * doc/gty.texi (for_user): Use @item next to @findex.
4916
4917 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
4918
4919 PR target/78037
4920 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
4921 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
4922 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
4923 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
4924 __builtin_ia32_lzcnt_u16.
4925 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
4926 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
4927 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
4928 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
4929 (bmi_tzcnt_<mode>): New expander.
4930 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4931 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
4932 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
4933 (lzcnt_<mode>): New expander.
4934 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4935 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
4936 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
4937 (UINT64_FTYPE_UINT64): New.
4938 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
4939 (__builtin_ia32_lzcnt_u16): New description.
4940 (__builtin_ia32_lzcnt_u32): Ditto.
4941 (__builtin_ia32_lzcnt_u64): Ditto.
4942 (__builtin_ctzs): Remove description.
4943 (__builtin_ia32_tzcnt_u16): New description.
4944 (__builtin_ia32_tzcnt_u32): Ditto.
4945 (__builtin_ia32_tzcnt_u64): Ditto.
4946 * config/i386/i386.c (ix86_expand_args_builtin): Handle
4947 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
4948
4949 2016-10-20 Martin Liska <mliska@suse.cz>
4950
4951 PR lto/78049
4952 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
4953 comparison with STMT_UID_NOT_IN_RANGE.
4954 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
4955 LTRANS.
4956
4957 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
4958
4959 * compare-elim.c (conforming_compare): Accept UNSPECs.
4960 (find_comparison_dom_walker::before_dom_children): Deal with
4961 instructions both using and killing the flags register.
4962 (equivalent_reg_at_start): New function extracted from...
4963 (try_eliminate_compare): ...here. Use it and add support for
4964 registers and UNSPECs as second operand of the compare.
4965 * config/visium/visium-modes.def (CCV): New.
4966 * config/visium/predicates.md (visium_v_comparison_operator): New.
4967 (visium_branch_operator): Deal with CCV mode.
4968 * config/visium/visium.c (visium_select_cc_mode): Likewise.
4969 (output_cbranch): Likewise.
4970 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4971 (uaddv<mode>4): New expander.
4972 (addv<mode>4): Likewise.
4973 (add<mode>3_insn_set_carry): New instruction.
4974 (add<mode>3_insn_set_overflow): Likewise.
4975 (addsi3_insn_set_overflow): Likewise.
4976 (usubv<mode>4): New expander.
4977 (subv<mode>4): Likewise.
4978 (sub<mode>3_insn_set_carry): New instruction.
4979 (sub<mode>3_insn_set_overflow): Likewise.
4980 (subsi3_insn_set_overflow): Likewise.
4981 (unegv<mode>3): New expander.
4982 (negv<mode>3): Likewise.
4983 (neg<mode>2_insn_set_overflow): New instruction.
4984 (addv_tst<mode>): Likewise.
4985 (subv_tst<mode>): Likewise.
4986 (negv_tst<mode>): Likewise.
4987 (cbranch<mode>4_addv_insn): New splitter and instruction.
4988 (cbranch<mode>4_subv_insn): Likewise.
4989 (cbranch<mode>4_negv_insn): Likewise.
4990
4991 2016-10-20 Richard Biener <rguenther@suse.de>
4992
4993 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
4994 Handle decls possibly not bound.
4995 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
4996 nothing_id for decls that might not be bound if we are interested
4997 for the address.
4998 (get_constraint_for_component_ref): Deal with that.
4999
5000 2016-10-20 Michael Matz <matz@suse.de>
5001
5002 Loop splitting.
5003 * common.opt (-fsplit-loops): New flag.
5004 * passes.def (pass_loop_split): Add.
5005 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
5006 (enable_fdo_optimizations): Add loop splitting.
5007 * timevar.def (TV_LOOP_SPLIT): Add.
5008 * tree-pass.h (make_pass_loop_split): Declare.
5009 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
5010 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
5011 * tree-ssa-loop-split.c: New file.
5012 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
5013 * doc/invoke.texi (fsplit-loops): Document.
5014 * doc/passes.texi (Loop optimization): Add paragraph about loop
5015 splitting.
5016
5017 2016-10-20 Richard Biener <rguenther@suse.de>
5018
5019 * cgraphunit.c (analyze_functions): Set node->definition to
5020 false to signal symbol removal to debug_hooks->late_global_decl.
5021 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
5022 WPA signal symbol removal to the debuginfo machinery.
5023 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
5024 using early_finised to guard the we're called for symbol
5025 removal case look at the symtabs definition flag.
5026 (gen_variable_die): Remove redundant check.
5027
5028 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5029
5030 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
5031
5032 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5033
5034 PR tree-optimization/53979
5035 * match.pd ((a ^ b) | a -> a | b): New pattern.
5036
5037 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
5038
5039 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
5040 config/pa/pa64-hpux-lib.h.
5041 (PA_CRTBEGIN_HACK): Likewise.
5042 (DTOR_LIST_BEGIN): Likewise.
5043
5044 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
5045
5046 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5047 register only if "in" and "out" are different registers.
5048
5049 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
5050
5051 * omp-low.c (pass_oacc_device_lower::gate): New method.
5052 (execute): Always call execute_oacc_device_lower.
5053
5054 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5055
5056 PR tree-optimization/77916
5057 PR tree-optimization/77937
5058 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
5059 stopgap fix.
5060 (insert_initializers): Requirement of initializer for -1 should be
5061 based on pointer-typedness of the candidate basis.
5062
5063 2016-10-19 Bin Cheng <bin.cheng@arm.com>
5064
5065 PR tree-optimization/78005
5066 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5067 upper (included) bound for niters of prolog loop.
5068 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
5069 Compute niters of scalar loop above which vectorized loop is
5070 preferred, as well as the upper (included) bound for the niters.
5071 (vect_do_peeling): Record niter bound for loops accordingly.
5072
5073 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5074
5075 PR lto/77458
5076 * tree-core.h (enum tree_index): Put the complex types after their
5077 component types.
5078 * tree-streamer.c (verify_common_node_recorded): New function.
5079 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
5080
5081 2016-10-19 Martin Liska <mliska@suse.cz>
5082
5083 * cgraph.h (cgraph_edge::binds_to_current_def_p):
5084 Replace NULL with false as a return value.
5085
5086 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
5087
5088 PR tree-optimization/78024
5089 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5090 don't clear BB_VISITED after processing.
5091
5092 2016-10-19 Richard Biener <rguenther@suse.de>
5093
5094 * domwalk.c (dom_walker::walk): Use RPO order.
5095
5096 2016-10-19 Richard Biener <rguenther@suse.de>
5097
5098 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
5099 stmts_to_remove.
5100 (evrp_dom_walker::~evrp_dom_walker): Free it.
5101 (evrp_dom_walker::stmts_to_remove): Add.
5102 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
5103 whose output we fully propagate for removal. Propagate
5104 into BB destination PHI arguments.
5105 (execute_early_vrp): Remove queued stmts. Dump value ranges
5106 before stmt removal.
5107
5108 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
5109
5110 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
5111 * passes.def: Add two instances of pass_walloca.
5112 * tree-pass.h (make_pass_walloca): New.
5113 * gimple-ssa-warn-alloca.c: New file.
5114 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
5115 -Wvla-larger-than= options.
5116
5117 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
5118
5119 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
5120 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
5121
5122 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
5123
5124 * config/rs6000/altivec.h (vec_xl_len): New macro.
5125 (vec_xst_len): New macro.
5126 (vec_cmpnez): New macro.
5127 (vec_cntlz_lsbb): New macro.
5128 (vec_cnttz_lsbb): New macro.
5129 (vec_xlx): New macro.
5130 (vec_xrx): New macro.
5131 (vec_all_nez): New C++ predicate template.
5132 (vec_any_eqz): New C++ predicate template.
5133 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
5134 conditional compilation.
5135 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
5136 conditional compilation.
5137 (vec_all_nez): New macro.
5138 (vec_any_eqz): New macro.
5139 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
5140 compilation.
5141 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
5142 compilation.
5143 * config/rs6000/vector.md (VI): Moved this mode iterator
5144 definition from altivec.md to vector.md.
5145 (UNSPEC_NEZ_P): New value.
5146 (vector_ne_<mode>_p): New expansion for implementation of
5147 vec_all_ne and vec_any_eq built-in functions.
5148 (vector_nez_<mode>_p): New expansion for implementation of
5149 vec_all_nez and vec_any_eqz built-in functions.
5150 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
5151 and vec_any_eq built-in function.
5152 (cr6_test_for_zero): New commentary to explain this expansion.
5153 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
5154 (cr6_test_for_lt): New commentary to explain this expansion.
5155 (cr6_test_for_lt_reverse): New commentary to explain this
5156 expansion.
5157 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5158 overloaded function prototypes for vec_all_ne, vec_all_nez,
5159 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
5160 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
5161 built-in functions.
5162 (altivec_resolve_overloaded_builtin): Modify the handling of
5163 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
5164 the compiler is configured to support TARGET_P9_VECTOR.
5165 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
5166 to explain the special processing that is given to predicate
5167 built-ins introduced using this macro.
5168 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
5169 the special processing given to predicate built-ins introduced
5170 using this macro.
5171 (BU_VSX_P): Likewise.
5172 (BU_P8V_AV_P): Likewise.
5173 (BU_P9V_AV_P): Likewise.
5174 (BU_P9V_AV_X): New macro.
5175 (BU_P9V_64BIT_AV_X): New macro.
5176 (BU_P9V_VSX_3): New macro.
5177 (BU_P9V_OVERLOAD_P): New macro.
5178 (LXVL): New BU_P9V_64BIT_VSX_2.
5179 (VEXTUBLX): New BU_P9V_AV_2.
5180 (VEXTUBRX): Likewise.
5181 (VEXTUHLX): Likewise.
5182 (VEXTUHRX): Likewise.
5183 (VEXTUWLX): Likewise.
5184 (VEXTUWRX): Likewise.
5185 (STXVL): New BU_P9V_64BIT_AV_X.
5186 (VCLZLSBB): New BU_P9V_AV_1.
5187 (VCTZLSBB): Likewise.
5188 (CMPNEB): New BU_P9V_AV_2.
5189 (CMPNEH): Likewise.
5190 (CMPNEW): Likewise.
5191 (CMPNEF): Likewise.
5192 (CMPNED): Likewise.
5193 (VCMPNEB_P): New BU_P9V_AV_P.
5194 (VCMPNEH_P): Likewise.
5195 (VCMPNEW_P): Likewise.
5196 (VCMPNED_P): Likewise.
5197 (VCMPNEFP_P): Likewise.
5198 (VCMPNEDP_P): Likewise.
5199 (CMPNEZB): New BU_P9V_AV_2.
5200 (CMPNEZH): Likewise.
5201 (CMPNEZW): Likewise.
5202 (VCMPNEZB_P): New BU_P9V_AV_P.
5203 (VCMPNEZH_P): Likewise.
5204 (VCMPNEZW_P): Likewise.
5205 (LXVL): New BU_P9V_OVERLOAD_2.
5206 (STXVL): New BU_P9V_OVERLOAD_3.
5207 (VEXTULX): New BU_P9V_OVERLOAD_2.
5208 (VEXTURX): Likewise.
5209 (CMPNEZ): Likewise.
5210 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
5211 (VCMPNE_P): Likewise.
5212 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
5213 (VCTZLSBB): Likewise.
5214 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
5215 comment to explain mode used for scratch register.
5216 (altivec_expand_stxvl_builtin): New function.
5217 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
5218 (altivec_init_builtins): Add initialized variable
5219 void_ftype_v16qi_pvoid_long and use this type to define the
5220 built-in function __builtin_altivec_stxvl.
5221 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
5222 (UNSPEC_STXVL): New value.
5223 (UNSPEC_VCLZLSBB): New value.
5224 (UNSPEC_VCTZLSBB): New value.
5225 (UNSPEC_VEXTUBLX): New value.
5226 (UNSPEC_VEXTUHLX): New value.
5227 (UNSPEC_VEXTUWLX): New value.
5228 (UNSPEC_VEXTUBRX): New value.
5229 (UNSPEC_VEXTUHRX): New value.
5230 (UNSPEC_VEXTUWRX): New value.
5231 (UNSPEC_VCMPNEB): New value.
5232 (UNSPEC_VCMPNEZB): New value.
5233 (UNSPEC_VCMPNEH): New value.
5234 (UNSPEC_VCMPNEZH): New value.
5235 (UNSPEC_VCMPNEW): New value.
5236 (UNSPEC_VCMPNEZW): New value.
5237 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5238 vector of integer modes.
5239 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
5240 vector of float or double modes.
5241 (*vector_nez_<mode>_p): New insn for vector test all not equal or
5242 zero.
5243 (lxvl): New expand for load VSX vector with length.
5244 (*lxvl): New insn for load VSX vector with length.
5245 (stxvl): New expand for store VSX vector with length.
5246 (*stxvl): New insn for store VSX vector with length.
5247 (vcmpneb): New insn for vector of byte compare not equal.
5248 (vcmpnezb): New insn for vector of byte compare not equal or zero.
5249 (vcmpneh): New insn for vector of half word compare not equal.
5250 (vcmpnezh): New insn for vector of half word compare not equal or
5251 zero.
5252 (vcmpnew): New insn for vector of word compare not equal.
5253 (vcmpne<VSs>): New insn for vector of float or double compare not
5254 equal.
5255 (vcmpnezw): New insn for vector of word compare not equal or zero.
5256 (vclzlsbb): New insn for vector count leading zero
5257 least-significant bits byte.
5258 (vctzlsbb): New insn for vector count trailing zero least
5259 signficant bits byte.
5260 (vextublx): New insn for vector extract unsigned byte left
5261 indexed.
5262 (vextubrx): New insn for vector extract unsigned byte right
5263 indexed.
5264 (vextuhlx): New insn for vector extract unsigned half word left
5265 indexed.
5266 (vextuhrx): New insn for vector extract unsigned half word right
5267 indexed.
5268 (vextuwlx): New insn for vector extract unsigned word left
5269 indexed.
5270 (vextuwrx): New insn for vector extract unsigned word right
5271 indexed.
5272 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
5273 clarify intent of this constant.
5274 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
5275 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
5276 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
5277 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
5278 and vec_xrx functions.
5279
5280 2016-10-18 Andrew Pinski <apinski@cavium.com>
5281
5282 PR tree-opt/65950
5283 * predict.c (is_exit_with_zero_arg): New function.
5284 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
5285 as nottaken.
5286
5287 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
5288
5289 PR target/77991
5290 * config/i386/i386.c (legitimize_tls_address)
5291 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
5292 convert dest to Pmode if different than Pmode.
5293
5294 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5295
5296 PR tree-optimization/77916
5297 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
5298 stopgap fix, as pointers with -1 increment are still broken.
5299
5300 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
5301
5302 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
5303 mapping class decoration from here...
5304 (rs6000_xcoff_encode_section): ...to here.
5305
5306 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
5307 if shrink-wrapping and optimizing for speed.
5308
5309 2016-10-18 Richard Biener <rguenther@suse.de>
5310
5311 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5312 not visited but non-executable predecessors. Return taken edge.
5313 Simplify conditions and refactor propagation vs. folding step.
5314
5315 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
5316
5317 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
5318 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
5319 (rs6000_get_separate_components): Assert we do not have those
5320 strategies selected.
5321
5322 2016-10-18 Richard Biener <rguenther@suse.de>
5323
5324 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
5325 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
5326 clearing.
5327 (substitute_and_fold_dom_walker): Adjust constructor.
5328 (substitute_and_fold_dom_walker::before_dom_children): Remove
5329 do_dce flag and handling (always true).
5330 (substitute_and_fold): Likewise.
5331 * tree-vrp.c (vrp_finalize): Adjust.
5332 (execute_early_vrp): Remove final BB_VISITED clearing.
5333 * tree-ssa-ccp.c (ccp_finalize): Adjust.
5334 * tree-ssa-copy.c (fini_copy_prop): Likewise.
5335 * ira.c (ira): Call clear_bb_flags.
5336
5337 2016-10-18 Richard Biener <rguenther@suse.de>
5338
5339 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
5340 get at the operand to look at with TREE_OPERAND for generic
5341 sub-nodes.
5342
5343 2016-10-18 David Malcolm <dmalcolm@redhat.com>
5344
5345 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
5346 copy_md_ptr_loc.
5347 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
5348 (write_test_expr): Use rtx_reader_ptr for calls to
5349 fprint_c_condition.
5350 (write_attr_value): Likewise.
5351 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
5352 call to print_md_ptr_loc.
5353 (write_one_condition): Likewise for calls to print_c_condition.
5354 * genconstants.c: Include "statistics.h" and "vec.h".
5355 (main): Update for conversion to member functions.
5356 * genemit.c (emit_c_code): Use rtx_reader_ptr for
5357 call to print_md_ptr_loc.
5358 * genenums.c: Include "statistics.h" and "vec.h".
5359 (main): Update for conversion of traverse_enum_types to a method.
5360 * genmddeps.c: Include "statistics.h" and "vec.h".
5361 * genoutput.c (process_template): Use rtx_reader_ptr for call to
5362 print_md_ptr_loc.
5363 * genpreds.c (write_predicate_subfunction): Likewise.
5364 (write_predicate_expr): Likewise for calls to print_c_condition.
5365 * genrecog.c (print_test): Likewise.
5366 * gensupport.c (process_rtx): Likewise for calls to
5367 copy_md_ptr_loc and join_c_conditions.
5368 (alter_test_for_insn): Likewise for call to join_c_conditions.
5369 (process_substs_on_one_elem): Likewise.
5370 (gen_mnemonic_setattr): Update for move of string_obstack to a
5371 field of rtx_reader.
5372 (mnemonic_htab_callback): Likewise. Fix formatting.
5373 (gen_mnemonic_attr): Likewise.
5374 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
5375 to print_c_condition.
5376 * read-md.c: Include "statistics.h" and "vec.h".
5377 (string_obstack): Convert this global to field "m_string_obstack"
5378 of class rtx_reader.
5379 (ptr_locs): Likewise, as "m_ptr_locs".
5380 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
5381 (joined_conditions): Likewise, as "m_joined_conditions".
5382 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
5383 (md_constants): Likewise, as "m_md_constants".
5384 (enum_types): Likewise, as "m_enum_types".
5385 (set_md_ptr_loc): Convert to...
5386 (rtx_reader::set_md_ptr_loc): ...member function.
5387 (get_md_ptr_loc): Convert to...
5388 (rtx_reader::get_md_ptr_loc): ...member function.
5389 (copy_md_ptr_loc): Convert to...
5390 (rtx_reader::copy_md_ptr_loc): ...member function.
5391 (fprint_md_ptr_loc): Convert to...
5392 (rtx_reader::fprint_md_ptr_loc): ...member function.
5393 (print_md_ptr_loc): Convert to...
5394 (rtx_reader::print_md_ptr_loc): ...member function.
5395 (join_c_conditions): Convert to...
5396 (rtx_reader::join_c_conditions): ...member function.
5397 (fprint_c_condition): Convert to...
5398 (rtx_reader::fprint_c_condition): ...member function.
5399 (print_c_condition): Convert to...
5400 (rtx_reader::print_c_condition): ...member function.
5401 (read_name): Convert to...
5402 (rtx_reader::read_name): ...member function.
5403 (read_escape): Convert to...
5404 (rtx_reader::read_escape): ...member function.
5405 (read_quoted_string): Convert to...
5406 (rtx_reader::read_quoted_string): ...member function.
5407 (read_braced_string): Convert to...
5408 (rtx_reader::read_braced_string): ...member function.
5409 (read_string): Convert to...
5410 (rtx_reader::read_string): ...member function.
5411 (read_skip_construct): Convert to...
5412 (rtx_reader::read_skip_construct): ...member function.
5413 (handle_constants): Convert to...
5414 (rtx_reader::handle_constants): ...member function.
5415 (traverse_md_constants): Convert to...
5416 (rtx_reader::traverse_md_constants): ...member function.
5417 (handle_enum): Convert to...
5418 (rtx_reader::handle_enum): ...member function.
5419 (lookup_enum_type): Convert to...
5420 (rtx_reader::lookup_enum_type): ...member function.
5421 (traverse_enum_types): Convert to...
5422 (rtx_reader::traverse_enum_types): ...member function.
5423 (rtx_reader::rtx_reader): Move initializations
5424 of various former global data from rtx_reader::read_md_files to
5425 here, as fields, along with the call to unlock_std_streams.
5426 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
5427 the new fields.
5428 (rtx_reader::read_md_files): Move initializations of various
5429 global data from here to the ctor.
5430 * read-md.h (read_name): Convert to...
5431 (rtx_reader::read_name): ...member function.
5432 (rtx_reader::read_escape): New method decl.
5433 (read_quoted_string): Convert to...
5434 (rtx_reader::read_quoted_string): ...member function.
5435 (rtx_reader::read_braced_string): New method decl.
5436 (read_string): Convert to...
5437 (rtx_reader::read_string): ...member function.
5438 (rtx_reader::read_skip_construct): New method decl.
5439 (rtx_reader::set_md_ptr_loc): New method decl.
5440 (rtx_reader::get_md_ptr_loc): New method decl.
5441 (copy_md_ptr_loc): Convert to...
5442 (rtx_reader::copy_md_ptr_loc): ...member function.
5443 (fprint_md_ptr_loc): Convert to...
5444 (rtx_reader::fprint_md_ptr_loc): ...member function.
5445 (print_md_ptr_loc): Convert to...
5446 (rtx_reader::print_md_ptr_loc): ...member function.
5447 (rtx_reader::lookup_enum_type): New method decl.
5448 (rtx_reader::traverse_enum_types): New method decl.
5449 (rtx_reader::handle_constants): New method decl.
5450 (traverse_md_constants): Convert to...
5451 (rtx_reader::traverse_md_constants): ...member function.
5452 (rtx_reader::handle_enum): New method decl.
5453 (rtx_reader::join_c_conditions): New method decl.
5454 (fprint_c_condition): Convert to...
5455 (rtx_reader::fprint_c_condition): ...member function.
5456 (print_c_condition): Convert to...
5457 (rtx_reader::print_c_condition): ...member function.
5458 (rtx_reader::apply_iterator_to_string): New method decl.
5459 (rtx_reader::copy_rtx_for_iterators): New method decl.
5460 (rtx_reader::read_conditions): New method decl.
5461 (rtx_reader::record_potential_iterator_use): New method decl.
5462 (rtx_reader::read_mapping): New method decl.
5463 (rtx_reader::read_rtx): New method decl.
5464 (rtx_reader::read_rtx_code): New method decl.
5465 (rtx_reader::read_rtx_operand): New method decl.
5466 (rtx_reader::read_nested_rtx): New method decl.
5467 (rtx_reader::read_rtx_variadic): New method decl.
5468 (rtx_reader::get_string_obstack): New method.
5469 (rtx_reader::get_md_constants): New method.
5470 (string_obstack): Convert global variable decl to...
5471 (rtx_reader::m_string_obstack): ...this new field.
5472 (rtx_reader::m_ptr_locs): New field.
5473 (rtx_reader::m_ptr_loc_obstack): New field.
5474 (rtx_reader::m_joined_conditions): New field.
5475 (rtx_reader::m_joined_conditions_obstack): New field.
5476 (rtx_reader::m_md_constants): New field.
5477 (rtx_reader::m_enum_types): New field.
5478 * read-rtl.c (apply_iterator_to_string): Convert to...
5479 (rtx_reader::apply_iterator_to_string): ...member function.
5480 (copy_rtx_for_iterators): Convert to...
5481 (rtx_reader::copy_rtx_for_iterators): ...member function.
5482 (add_condition_to_string): Use rtx_reader_ptr for
5483 calls join_c_conditions.
5484 (apply_iterators): Use rtx_reader_ptr for calls to
5485 join_c_conditions and copy_rtx_for_iterators.
5486 (read_conditions): Convert to...
5487 (rtx_reader::read_conditions): ...member function.
5488 (record_potential_iterator_use): Convert to...
5489 (rtx_reader::record_potential_iterator_use): ...member function.
5490 (read_mapping): Convert to...
5491 (rtx_reader::read_mapping): ...member function.
5492 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
5493 (read_rtx): Convert to...
5494 (rtx_reader::read_rtx): ...member function.
5495 (read_rtx_code): Convert to...
5496 (rtx_reader::read_rtx_code): ...member function.
5497 (read_rtx_operand): Convert to...
5498 (rtx_reader::read_rtx_operand): ...member function. Update for move
5499 of string_obstack to a field.
5500 (read_nested_rtx): Convert to..
5501 (rtx_reader::read_nested_rtx): ...member function.
5502 (read_rtx_variadic): Convert to..
5503 (rtx_reader::read_rtx_variadic): ...member function.
5504
5505 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5506
5507 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
5508
5509 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5510
5511 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
5512 for pointer type too.
5513 (ipcp_update_vr): set_ptr_nonnull for pointer.
5514
5515 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
5516
5517 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
5518 pt_solution_singleton_p.
5519 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
5520 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
5521 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
5522 pointer nonnull computed by VRP.
5523 Also Conservatively set pt.null to 1.
5524 (pt_solution_reset): Conservatively set pt.null to 1.
5525 (pt_solution_singleton_or_null_p): Renamed from
5526 pt_solution_singleton_p.
5527 * tree-ssanames.h (set_ptr_nonnull): Declare.
5528 (get_ptr_nonnull): Likewise.
5529 * tree-ssanames.c (set_ptr_nonnull): New.
5530 (get_ptr_nonnull): Likewise.
5531 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
5532 (evrp_dom_walker::before_dom_children): Likewise.
5533
5534 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5535
5536 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5537 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5538 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5539 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5540 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
5541 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
5542 (rs6000_option_override_internal): Clear it if ABI_AIX.
5543 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
5544 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
5545
5546 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5547
5548 * gimple-ssa-strength-reduction.c (record_increment): Remove
5549 garbage comment.
5550
5551 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5552
5553 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
5554 that the result is non-zero if it is true.
5555 (maybe_expand_shift): New wrapper around expand_shift_1.
5556 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
5557
5558 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5559
5560 PR tree-optimization/77916
5561 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
5562 Don't allow a MINUS_EXPR for pointer arithmetic for either known
5563 or unknown strides.
5564 (record_increment): Increments of -1 for unknown strides just use
5565 a multiply initializer like other negative values.
5566 (analyze_increments): Remove stopgap solution for -1 increment
5567 applied to pointer arithmetic.
5568
5569 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
5570
5571 * dominance.c (dom_info::dom_info): Add new constructor for region
5572 which is vector of basic blocks.
5573 (dom_init): New method to initialize members common for both
5574 constructors.
5575 (dom_info::dom_info): Invoke dom_init for partial initialization.
5576 (dom_info::get_idom): Add check to corner cases on basic blocks which
5577 are not in region.
5578 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
5579 to detect unreachable bbs.
5580 (dom_info::calc_idoms): Likewise.
5581 (compute_dom_fast_query_in_region): New function.
5582 (calculate_dominance_info_for_region): Likewise.
5583 (free_dominance_info_for_region): Likewise.
5584 * dominance.h: Add prototypes for introduced region-based functions
5585 * tree-if-conv.c (build_region): New function.
5586 (if_convertible_loop_p_1): Invoke local version of post-dominators
5587 calculation before basic block predication with subsequent freeing
5588 post-dominator info.
5589 (tree_if_conversion): Remove free of post-dominator info
5590 (pass_if_conversion::execute): Delete detection of infinite loops
5591 and fake edges to exit block since post-dominator calculation is
5592 performed per if-converted loop only.
5593
5594 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5595
5596 PR target/77308
5597 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5598 register explicitly.
5599 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
5600 optimizing for size.
5601
5602 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5603
5604 * config/aarch64/aarch64.c: Delete inclusion of
5605 cortex-a57-fma-steering.h.
5606 (aarch64_override_options): Delete call
5607 to aarch64_register_fma_steering.
5608 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
5609 * config/aarch64/cortex-a57-fma-steering.h: Delete.
5610 * config/aarch64/aarch64-passes.def: New file.
5611 * config/aarch64/cortex-a57-fma-steering.c
5612 (aarch64_register_fma_steering): Delete definition.
5613 (make_pass_fma_steering): Remove static qualifier.
5614 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
5615 (cortex-a57-fma-steering.o): Remove dependency on
5616 cortex-a57-fma-steering.h.
5617
5618 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
5619
5620 * explow.c (validize_mem): Do not modify the argument in-place.
5621
5622 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
5623
5624 * tree-streamer.c (record_common_node): Explicitly list expected
5625 tree codes.
5626
5627 2016-10-17 Richard Biener <rguenther@suse.de>
5628
5629 PR tree-optimization/77988
5630 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
5631
5632 2016-10-17 Marek Polacek <polacek@redhat.com>
5633
5634 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
5635
5636 2016-10-17 Richard Biener <rguenther@suse.de>
5637
5638 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
5639 before using it.
5640
5641 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5642
5643 PR tree-optimization/71636
5644 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
5645
5646 2016-10-17 Richard Biener <rguenther@suse.de>
5647
5648 * gimplify.c (gimplify_function_tree): Do not move the outer
5649 binds block.
5650
5651 2016-10-17 Jakub Jelinek <jakub@redhat.com>
5652
5653 * langhooks.h (struct lang_hooks_for_decls): Remove
5654 function_decl_explicit_p, function_decl_deleted_p and
5655 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
5656 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
5657 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5658 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
5659 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
5660 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
5661 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
5662 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
5663 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
5664 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
5665 * langhooks.c (lhd_decl_dwarf_attribute): New function.
5666 * dwarf2out.c (gen_subprogram_die): Use
5667 lang_hooks.decls.decl_dwarf_attribute instead of
5668 lang_hooks.decls.function_decl_*.
5669
5670 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5671
5672 PR ada/37139
5673 PR ada/67205
5674 * common.opt (-ftrampolines): New option.
5675 * doc/invoke.texi (Code Gen Options): Document it.
5676 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
5677 * doc/tm.texi: Regenerate.
5678 * builtins.def: Add init_descriptor and adjust_descriptor.
5679 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
5680 on platforms with descriptors.
5681 (expand_builtin_init_descriptor): New function.
5682 (expand_builtin_adjust_descriptor): Likewise.
5683 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
5684 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
5685 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
5686 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
5687 Set STATIC_CHAIN_REG_P on the static chain register, if any.
5688 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
5689 (expand_call): Likewise. Move around call to prepare_call_address
5690 and pass all flags to it.
5691 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
5692 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
5693 (gimple_call_set_by_descriptor): New setter.
5694 (gimple_call_by_descriptor_p): New getter.
5695 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
5696 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
5697 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
5698 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5699 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
5700 * rtl.h (STATIC_CHAIN_REG_P): New macro.
5701 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
5702 * target.def (custom_function_descriptors): New POD hook.
5703 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
5704 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
5705 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
5706 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
5707 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
5708 (build_common_builtin_nodes): Initialize init_descriptor and
5709 adjust_descriptor.
5710 * tree-nested.c: Include target.h.
5711 (struct nesting_info): Add 'any_descr_created' field.
5712 (get_descriptor_type): New function.
5713 (lookup_element_for_decl): New function extracted from...
5714 (create_field_for_decl): Likewise.
5715 (lookup_tramp_for_decl): ...here. Adjust.
5716 (lookup_descr_for_decl): New function.
5717 (convert_tramp_reference_op): Deal with descriptors.
5718 (build_init_call_stmt): New function extracted from...
5719 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
5720 * defaults.h (FUNCTION_ALIGNMENT): Define.
5721 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
5722 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
5723 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5724 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
5725 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
5726
5727 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
5728
5729 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
5730 constants in CONST_VECTORs.
5731
5732 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5733
5734 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
5735 register as destination of bmask.
5736 (vector_init_bshuffle): Likewise.
5737 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
5738 (bmaskdi_vis): Enable only in 64-bit mode.
5739
5740 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5741
5742 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
5743 make LR a separately shrink-wrapped component unless savres_strategy
5744 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
5745 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
5746 wrapping when not both {SAVE,REST}_INLINE_GPRS.
5747
5748 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
5749
5750 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
5751 and keep looping on failure.
5752
5753 2016-10-14 David Malcolm <dmalcolm@redhat.com>
5754
5755 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
5756 set.
5757 (print_rtx_function): Update example in comment for...
5758 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
5759 non-virtual pseudos with a '%' sigil followed by the regno, offset
5760 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
5761 pseudo is dumped as "%0".
5762
5763 2016-10-14 Jakub Jelinek <jakub@redhat.com>
5764
5765 PR middle-end/77959
5766 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
5767 return a MEM.
5768
5769 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
5770
5771 * config/sparc/sparc-passes.def: New file.
5772 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
5773 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
5774 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
5775
5776 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5777
5778 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
5779 loop peel to loops with exit test at the beginning.
5780
5781 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
5782
5783 PR rtl-optimization/68212
5784 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
5785 frequency when computing scale factor for peeled copies.
5786 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
5787 values for switch/peel blocks/edges.
5788
5789 2016-10-14 Pedro Alves <palves@redhat.com>
5790
5791 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
5792
5793 2016-10-14 Catherine Moore <clm@codesourcery.com>
5794
5795 * config/mips/mips.c (mips_prepare_pch_save): Initialize
5796 micromips_globals to zero.
5797
5798 2016-10-14 Richard Biener <rguenther@suse.de>
5799
5800 PR tree-optimization/77979
5801 * tree-vrp.c (compare_name_with_value): Handle released SSA names
5802 in the equivalency sets.
5803 (compare_names): Likewise.
5804
5805 2016-10-14 Martin Liska <mliska@suse.cz>
5806
5807 * builtins.h(target_char_cst_p): Declare the function.
5808 * builtins.c (fold_builtin_memchr): Remove.
5809 (target_char_cst_p): Move the function from gimple-fold.c.
5810 (fold_builtin_3): Do not call the function.
5811 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
5812 (gimple_fold_builtin): Call the function.
5813 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
5814
5815 2016-10-14 Martin Liska <mliska@suse.cz>
5816
5817 * builtins.c (fold_builtin_strcmp): Remove function.
5818 (fold_builtin_strncmp): Likewise.
5819 (fold_builtin_2): Remove call of the function.
5820 (fold_builtin_3): Likewise.
5821 * fold-const-call.c (fold_const_call): Add constant folding
5822 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
5823 * fold-const-call.h (build_cmp_result): Declare the function.
5824 * gimple-fold.c (gimple_load_first_char): New function.
5825 (gimple_fold_builtin_string_compare): Likewise.
5826 (gimple_fold_builtin): Call the function.
5827
5828 2016-10-14 Nathan Sidwell <nathan@acm.org>
5829
5830 * gcov-io.c (gcov_open): Deconstify 'mode'.
5831
5832 2016-10-14 Martin Liska <mliska@suse.cz>
5833
5834 * fold-const.c (c_getstr): Support of properly \0-terminated
5835 string constants. New argument is added.
5836 * fold-const.h: New argument is added.
5837
5838 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5839
5840 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
5841 New function.
5842 (aarch64_print_hint_for_core): Likewise.
5843 (aarch64_print_hint_for_arch): Likewise.
5844 (aarch64_validate_march): Use it. Fix indentation in type signature.
5845 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
5846 (aarch64_validate_mtune): Likewise.
5847 (aarch64_handle_attr_arch): Likewise.
5848 (aarch64_handle_attr_cpu): Likewise.
5849 (aarch64_handle_attr_tune): Likewise.
5850
5851 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5852
5853 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
5854 and udivmod_optab.
5855
5856 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
5857
5858 * config/m68k/m68k.c (m68k_option_override): Check
5859 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
5860 instead of stack_limit_rtx.
5861
5862 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5863
5864 * dwarf2out.c (gen_member_die): Handle inline static data member
5865 definitions.
5866
5867 2016-10-13 Nathan Sidwell <nathan@acm.org>
5868
5869 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
5870 gcov_var.mode. Remove unnecessary fstat.
5871
5872 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
5873
5874 PR bootstrap/77962
5875 * function.c (thread_prologue_and_epilogue_insns): Call all
5876 make_*logue_seq in the same order as traditional. Call them
5877 all a second time if shrink_wrapped_separate.
5878
5879 2016-10-13 Marek Polacek <polacek@redhat.com>
5880
5881 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
5882 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
5883 use -Wno-error.
5884
5885 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5886
5887 PR tree-optimization/77937
5888 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
5889 to infinite when we have a pointer with an increment of -1.
5890
5891 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
5892
5893 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
5894 into ...
5895 * memmodel.h: This file.
5896 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
5897 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
5898 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
5899 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
5900 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
5901 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
5902 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
5903 compare-elim.c, config/aarch64/aarch64-builtins.c,
5904 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
5905 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
5906 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
5907 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
5908 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
5909 config/darwin.c, config/epiphany/epiphany.c,
5910 config/epiphany/mode-switch-use.c,
5911 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
5912 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5913 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
5914 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5915 config/m68k/m68k.c, config/mcore/mcore.c,
5916 config/microblaze/microblaze.c, config/mmix/mmix.c,
5917 config/mn10300/mn10300.c, config/moxie/moxie.c,
5918 config/msp430/msp430.c, config/nds32/nds32-cost.c,
5919 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5920 config/nds32/nds32-memory-manipulation.c,
5921 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
5922 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
5923 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
5924 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
5925 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
5926 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
5927 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5928 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5929 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
5930 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
5931 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
5932 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
5933 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
5934 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
5935 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
5936 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
5937 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
5938 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
5939 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
5940 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5941 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
5942 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
5943 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
5944 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
5945 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
5946 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
5947 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
5948 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
5949 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
5950 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
5951 var-tracking.c, varasm.c: Include memmodel.h.
5952 * genattrtab.c (write_header): Include memmodel.h in generated file.
5953 * genautomata.c (main): Likewise.
5954 * gengtype.c (open_base_files): Likewise.
5955 * genopinit.c (main): Likewise.
5956 * genconditions.c (write_header): Include memmodel.h earlier in
5957 generated file.
5958 * genemit.c (main): Likewise.
5959 * genoutput.c (output_prologue): Likewise.
5960 * genpeep.c (main): Likewise.
5961 * genpreds.c (write_insn_preds_c): Likewise.
5962 * genrecog.c (write_header): Likewise.
5963 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
5964
5965 2016-10-13 David Malcolm <dmalcolm@redhat.com>
5966
5967 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
5968 for new "compact" param of print_rtx_function. Check for "cinsn"
5969 rather than "insn".
5970 * print-rtl-function.c (flag_compact): New decl.
5971 (print_rtx_function): Add param "compact" and use it to set
5972 flag_compact, adding a description of the effect to the leading
5973 comment, and updating the example output.
5974 * print-rtl.c (flag_compact): New variable.
5975 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
5976 mode.
5977 (print_rtx_operand_code_i): When printing source locations, wrap
5978 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
5979 (print_rtx_operand_code_r): Don't print regnos for hard regs and
5980 virtuals in compact mode.
5981 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
5982 apart from in LABEL_REFs.
5983 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
5984 Don't print basic block ids in compact mode.
5985 (print_rtx): In compact mode, prefix the code of insns with "c",
5986 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
5987 * print-rtl.h (print_rtx_function): Add "compact" param.
5988
5989 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5990
5991 * arm.h (TARGET_VFP): Delete.
5992 (TARGET_VFPD32): Remove references to TARGET_VFP.
5993 (TARGET_VFP3, TARGET_VFP5): Likewise.
5994 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
5995 (TARGET_NEON_FP16): Likewise.
5996 (TARGET_FMA): Likewise.
5997 (TARGET_CRYPTO): Likewise.
5998 (TARGET_NEON): Likewise.
5999 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6000 (FUNCTION_ARG_REGNO_P): Likewise.
6001 * arm.c (arm_option_check_internal): Likewise.
6002 (arm_option_override): Likewise.
6003 (use_return_insn): Likewise.
6004 (arm_function_value_regno_p): Likewise.
6005 (arm_apply_result_size): Likewise.
6006 (use_vfp_abi): Likewise.
6007 (arm_legitimate_address_outer_p): Likewise.
6008 (thumb2_legitimate_address_p): Likewise.
6009 (arm_legitimate_index_p): Likewise.
6010 (thumb2_legitimate_index_p): Likewise.
6011 (arm_legitimate_address): Likewise.
6012 (arm_get_vfp_saved_size): Likewise.
6013 (arm_emit_vfp_multi_reg_pop): Likewise.
6014 (arm_get_frame_offsets): Likewise.
6015 (arm_save_coproc_regs): Likewise.
6016 (arm_hard_regno_mode_ok): Likewise.
6017 (arm_expand_epilogue_apcs_frame): Likewise.
6018 (arm_expand_epilogue): Likewise.
6019 (arm_file_start): Likewise.
6020 (arm_conditional_register_usage): Likewise.
6021 (arm_validize_comparison): Use vfp_compare_operand directly.
6022 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
6023 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
6024 unsupported usage.
6025 (arm_atomic_assign_expand_fenv): Likewise.
6026 * arm.md (divsf3): Likewise.
6027 (arm_negsi2): Likewise.
6028 (absdf2): Likewise.
6029 (arm_movdi): Likewise.
6030 (arm_movt): Likewise.
6031 (cbranchsf4): Change predicate to vfp_compare_operand.
6032 (cbranchdf4): Change predicate to vfp_compare_operand.
6033 (cstorehf4): Change predicate to vfp_compare_operand.
6034 (cstoresf4): Change predicate to vfp_compare_operand.
6035 (cstoredf4): Change predicate to vfp_compare_operand.
6036 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
6037 (movhi_insn_arch4, movhi_bytes): Likewise.
6038 * constraints.md (Dt): Likewise.
6039 (Dp): Likewise.
6040 * iterators.md (SDF): Likewise.
6041 * predicates.md (arm_float_compare_operand): Delete.
6042 (const_double_vcvt_power_of_two_reciprocal): Remove references to
6043 TARGET_VFP.
6044 (const_double_vcvt_power_of_two): Likewise.
6045 * thumb2.md thumb2_movsi_insn): Likewise.
6046 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
6047 (movhf_vfp): Likewise.
6048 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
6049 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6050 (movsf_vfp, thumb2_movsf_vfp): Likewise.
6051 (movdf_vfp, thumb2_movdf_vfp): Likewise.
6052 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
6053 (subsf3_vfp, divsf3_vfp): Likewise.
6054 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
6055 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
6056 (mulsf3negsfsubsf_vfp): Likewise.
6057 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
6058 (floatunssisf2, sqrtsf2_vfp): Likewise.
6059 (movcc_vfp): Likewise.
6060 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
6061 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
6062 (push_multi_vfp): Likewise.
6063 (set_fpscr, get_fpscr): Likewise.
6064 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
6065
6066 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
6067
6068 * arm.h (TARGET_VFP): Unconditionally define to 1.
6069 (arm_fpu_desc): Remove 'model' field.
6070 (TARGET_FPU_MODEL): Delete.
6071 * arm.c (all_fpus): Don't initialize the model field.
6072 (arm_can_inline_p): Don't check the FPU model.
6073 * arm-fpus.def: Remove redundant model field from all FPU
6074 descriptions.
6075
6076 2016-10-13 Richard Biener <rguenther@suse.de>
6077
6078 PR middle-end/77826
6079 * genmatch.c (struct capture): Add value_match member.
6080 (commutate): Preserve value_match.
6081 (lower_opt_convert): Likewise.
6082 (lower_cond): Likewise.
6083 (replace_id): Likewise.
6084 (struct dt_operand): Add value_match member.
6085 (decision_tree::cmp_node): Compare it.
6086 (decision_tree::insert_operand): Honor it when finding and
6087 when appending a DT_MATCH.
6088 (dt_operand::gen_match_op): Generate a type check after
6089 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
6090 (parser::get_internal_capture_id): New helper.
6091 (parser::finish_match_operand): New function lowering @@<id>.
6092 (parser::parse_capture): Parse @@<id> as value-match.
6093 (parser::parse_expr): Use get_internal_capture_id.
6094 (parser::parse_simplify): Call finish_match_operand.
6095 (walk_captures): New helper.
6096 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
6097 of operand_equal_p.
6098 ((X /[ex] A) * A -> X): Likewise.
6099 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
6100 convert[12] and value-matching.
6101 ((A | B) & (A | C) -> A | (B & C)): Likewise.
6102 ((X | Y) | Y -> X | Y): Likewise.
6103 ((X ^ Y) ^ Y -> X): Likewise.
6104 (A - (A & B) -> ~B & A): Likewise.
6105 ((T)(P + A) - (T)P -> (T) A): Likewise.
6106 ((T)P - (T)(P + A) -> -(T) A): Likewise.
6107 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
6108 * doc/match-and-simplify.texi: Amend capture section.
6109
6110 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6111
6112 * config/arc/arc.md (umul_600): Remove predicated variant.
6113 (umul64_600): Likewise.
6114
6115 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
6116
6117 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
6118
6119 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6120
6121 * tree-vect-loop.c (loop_niters_no_overflow): New func.
6122 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
6123 no-overflow information to vect_do_peeling_for_loop_bound and
6124 vect_gen_vector_loop_niters.
6125
6126 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6127
6128 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
6129 iterates 1 time.
6130
6131 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6132
6133 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
6134 adjust_vec automatically.
6135 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
6136 param exit_bb to guard_to.
6137 (slpeel_checking_verify_cfg_after_peeling):
6138 (set_prologue_iterations):
6139 (create_lcssa_for_virtual_phi): New func which is factored out from
6140 slpeel_tree_peel_loop_to_edge.
6141 (slpeel_tree_peel_loop_to_edge):
6142 (iv_phi_p): New func.
6143 (vect_can_advance_ivs_p): Call iv_phi_p.
6144 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
6145 new gimple stmts in basic block.
6146 (vect_gen_niters_for_prolog_loop): Rename to...
6147 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
6148 adjust implementation.
6149 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
6150 sizetype if necessary.
6151 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
6152 it to external function.
6153 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
6154 (vect_gen_vector_loop_niters_mult_vf): New.
6155 (slpeel_update_phi_nodes_for_loops): New.
6156 (slpeel_update_phi_nodes_for_guard1): Reimplement.
6157 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
6158 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
6159 * tree-vect-loop.c (vect_build_loop_niters): Move to file
6160 tree-vect-loop-manip.c
6161 (vect_generate_tmps_on_preheader): Delete.
6162 (vect_transform_loop): Rename vectorization_factor to vf. Call
6163 vect_do_peeling instead of vect_do_peeling-* functions.
6164 * tree-vectorizer.h (vect_do_peeling): New decl.
6165 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
6166 (vect_do_peeling_for_loop_bound): Delete.
6167 (vect_do_peeling_for_alignment): Delete.
6168
6169 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6170
6171 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
6172 duplicated loop after its preheader and after the original loop.
6173
6174 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6175
6176 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
6177 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
6178
6179 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6180
6181 * tree-vect-loop.c (vectorizable_live_operation): Support handling
6182 for live variable outside loop but not in lcssa form.
6183
6184 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6185
6186 * cfg.c (reset_original_copy_tables): New func.
6187 * cfg.h (reset_original_copy_tables): New decl.
6188
6189 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6190
6191 PR c/77946
6192 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
6193 public_flag.
6194 * varasm.c (default_binds_local_p_3): Formatting fix.
6195
6196 2016-10-13 Bin Cheng <bin.cheng@arm.com>
6197
6198 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
6199 style issue.
6200 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
6201 Remove useless code.
6202
6203 2016-10-13 Martin Liska <mliska@suse.cz>
6204
6205 PR tree-optimization/77943
6206 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
6207 a different EH landing pads.
6208
6209 2016-10-13 Jakub Jelinek <jakub@redhat.com>
6210
6211 PR target/77957
6212 * hooks.h (hook_tree_void_null): Declare.
6213 * hooks.c (hook_tree_void_null): New function.
6214 * langhooks.c (lhd_return_null_tree_v): Remove.
6215 * langhooks-def.h (lhd_return_null_tree_v): Remove.
6216 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
6217 set y to const0_rtx.
6218 * function.c (stack_protect_epilogue): Likewise.
6219 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
6220 if TARGET_THREAD_SSP_OFFSET is defined.
6221 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6222 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6223 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6224 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6225 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
6226 (ix86_stack_protect_guard): New function.
6227
6228 2016-10-13 Richard Biener <rguenther@suse.de>
6229
6230 * dwarf2out.c (tree_add_const_value_attribute): Do not try
6231 rtl_for_decl_init during early phase.
6232 (gen_variable_die): Do not create locations during early phase.
6233 (gen_label_die): Likewise.
6234 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
6235 twice.
6236
6237 2016-10-12 Richard Biener <rguenther@suse.de>
6238
6239 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
6240 try_add_new_range and made to eturn new range.
6241 (evrp_dom_walker::before_dom_children): Push op1 value range before
6242 pushing op0 value range.
6243
6244 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6245
6246 PR tree-optimization/77937
6247 * gimple-ssa-strength-reduction.c (analyze_increments): Use
6248 POINTER_TYPE_P on the candidate type to determine whether
6249 candidates in this chain require pointer arithmetic.
6250
6251 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
6252
6253 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
6254 correction if the type is smaller than a word.
6255 (visium_select_cc_mode): Add ... fall through ... comment.
6256
6257 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6258
6259 * config/rs6000/rs6000.c (machine_function): Add new fields
6260 gpr_is_wrapped_separately and lr_is_wrapped_separately.
6261 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
6262 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
6263 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
6264 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
6265 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
6266 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
6267 (rs6000_get_separate_components): New function.
6268 (rs6000_components_for_bb): New function.
6269 (rs6000_disqualify_components): New function.
6270 (rs6000_emit_prologue_components): New function.
6271 (rs6000_emit_epilogue_components): New function.
6272 (rs6000_set_handled_components): New function.
6273 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
6274 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
6275 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
6276 (rs6000_emit_epilogue): Don't emit GPR restores if
6277 gpr_is_wrapped_separately for that register. Don't make a
6278 REG_CFA_RESTORE note for registers we did not restore, either.
6279
6280 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6281
6282 * function.c (thread_prologue_and_epilogue_insns): Call
6283 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
6284 if it has possibly changed. Compute the split_prologue_seq and
6285 epilogue_seq later, too.
6286 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
6287 (dump_components): New function.
6288 (struct sw): New struct.
6289 (SW): New function.
6290 (init_separate_shrink_wrap): New function.
6291 (fini_separate_shrink_wrap): New function.
6292 (place_prologue_for_one_component): New function.
6293 (spread_components): New function.
6294 (disqualify_problematic_components): New function.
6295 (emit_common_heads_for_components): New function.
6296 (emit_common_tails_for_components): New function.
6297 (insert_prologue_epilogue_for_components): New function.
6298 (try_shrink_wrapping_separate): New function.
6299 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
6300
6301 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6302
6303 * regrename.c (build_def_use): Invalidate chains that have a
6304 REG_CFA_RESTORE on some instruction.
6305
6306 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6307
6308 * dce.c (delete_unmarked_insns): Don't delete instructions with
6309 a REG_CFA_RESTORE note.
6310
6311 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6312
6313 * common.opt (-fshrink-wrap-separate): New flag.
6314 * doc/invoke.texi: Document it.
6315 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
6316 * doc/tm.texi: Regenerate.
6317 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
6318 * target.def (shrink_wrap): New hook vector.
6319 (get_separate_components, components_for_bb, disqualify_components,
6320 emit_prologue_components, emit_epilogue_components,
6321 set_handled_components): New hooks.
6322
6323 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
6324
6325 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
6326 vector return by reference only if -Wpsabi.
6327 (rs6000_pass_by_reference): Similarly, for argument passing.
6328
6329 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6330
6331 * function-tests.c: Include "print-rtl.h".
6332 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
6333 function, and verify what is dumped.
6334 * print-rtl-function.c (print_edge): New function.
6335 (begin_any_block): New function.
6336 (end_any_block): New function.
6337 (can_have_basic_block_p): New function.
6338 (print_rtx_function): Track the basic blocks of insns in the
6339 chain, wrapping those that are within blocks within "(block)"
6340 directives. Remove the "(cfg)" directive.
6341
6342 2016-10-12 David Malcolm <dmalcolm@redhat.com>
6343
6344 * selftest.c (selftest::read_file): New function.
6345 (selftest::test_read_file): New function.
6346 (selftest::selftest_c_tests): Call test_read_file.
6347 * selftest.h (selftest::read_file): New decl.
6348
6349 2016-10-12 Richard Biener <rguenther@suse.de>
6350
6351 PR debug/77947
6352 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
6353 function context.
6354
6355 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
6356
6357 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
6358
6359 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
6360 dwarf2out_assembly_start.
6361
6362 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
6363
6364 * Makefile.in (SELFTEST_FLAGS): New variable.
6365 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
6366
6367 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
6368 early_finish hook.
6369
6370 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
6371
6372 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
6373 dumped in RTL dumps.
6374
6375 2016-10-12 Martin Liska <mliska@suse.cz>
6376
6377 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
6378 (gimple_fold_builtin_memory_op): Use the function.
6379 (gimple_fold_builtin_strchr): Likewise.
6380 (gimple_fold_builtin_strcat): Likewise.
6381 (gimple_build): Likewise.
6382
6383 2016-10-12 Nathan Sidwell <nathan@acm.org>
6384
6385 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
6386
6387 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6388
6389 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
6390 equivalent 32-bit constant (modulo 2**32) when that yields
6391 smaller instructions.
6392 (size_of_int_loc_descriptor): Update accordingly.
6393
6394 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
6395
6396 * dwarf2out.c (dwarf2out_early_global_decl): For nested
6397 functions, call dwarf2out_decl on the parent function first.
6398
6399 2016-10-12 Richard Biener <rguenther@suse.de>
6400
6401 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
6402 on the conversion.
6403
6404 2016-10-12 Richard Biener <rguenther@suse.de>
6405
6406 * tree-ssa-propagate.c
6407 (substitute_and_fold_dom_walker::before_dom_children): Do not
6408 ignore ASSERT_EXPRs but only preserve them.
6409 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
6410 that have been propagated into.
6411 (vrp_finalize): Enable DCE for substitute_and_fold.
6412
6413 2016-10-12 Richard Biener <rguenther@suse.de>
6414
6415 PR tree-optimization/77920
6416 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
6417 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
6418 (simplify_abs_using_ranges): Likewise.
6419 (simplify_conversion_using_ranges): Likewise.
6420 (simplify_stmt_using_ranges): Adjust.
6421
6422 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6423
6424 PR tree-optimization/77929
6425 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
6426 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
6427
6428 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6429
6430 PR target/77934
6431 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
6432 needs a base register for arg 1.
6433
6434 2016-10-12 Jakub Jelinek <jakub@redhat.com>
6435
6436 * common.opt (Wimplicit-fallthrough) Turn into alias to
6437 -Wimplicit-fallthrough=3. Remove EnabledBy.
6438 (Wimplicit-fallthrough=): New option.
6439 * gimplify.c (warn_implicit_fallthrough_r): Use
6440 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
6441 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
6442 to -Wimplicit-fallthrough=3.
6443 (-Wimplicit-fallthrough=): Document.
6444
6445 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6446
6447 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
6448 and GEU in DImode if TARGET_SUBXC.
6449 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
6450 (seqdi<W:mode>_zero_subxc): Delete.
6451 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
6452 (neg_seqdi<W:mode>_zero_vis3): Delete.
6453 (plus_seqdi<W:mode>_zero): Likewise.
6454 (minus_seqdi<W:mode>_zero): Likewise.
6455 (plus_plus_sltu<W:mode>): Accept only register.
6456 (addx<W:mode>): Likewise.
6457 (plus_sltu<W:mode>_vis3): Likewise.
6458 (plus_plus_sltu<W:mode>_vis3): Likewise.
6459 (neg_sgeu<W:mode>_vis3): Delete.
6460 (minus_sgeu<W:mode>_vis3): Likewise.
6461 (addxc<W:mode>): Accept only registers.
6462 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6463 (minus_neg_sltu<W:mode>_subxc): Accept only register.
6464 (neg_plus_sltu<W:mode>_subxc): Likewise.
6465 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
6466 (minus_minus_sltu<W:mode>_subxc): Accept only register.
6467 (sgeu<W:mode>_insn_subxc): Delete.
6468 (plus_sgeu<W:mode>_subxc): Likewise.
6469 (subxc<W:mode>): Accept only register.
6470 (scc splitter): Split always GEU again.
6471
6472 2016-10-11 Jeff Law <law@redhat.com>
6473
6474 PR tree-optimization/77424
6475 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
6476 dead conditionals. Assert that all e->aux fields are NULL.
6477
6478 2016-10-11 David Malcolm <dmalcolm@redhat.com>
6479
6480 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
6481 operand-printing "switch" statement into...
6482 (print_rtx_operand_code_0): ...this new function, ...
6483 (print_rtx_operand_code_e): ...this new function, ...
6484 (print_rtx_operand_codes_E_and_V): ...this new function, ...
6485 (print_rtx_operand_code_i): ...this new function, ...
6486 (print_rtx_operand_code_r): ...this new function, ...
6487 (print_rtx_operand_code_u): ...this new function, ...
6488 (print_rtx_operand): ...and this new function.
6489
6490 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
6491
6492 * config/alpha/alpha-passes.def: New file.
6493 * config/alpha/t-alpha: New file.
6494 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
6495 (make_pass_handle_trap_shadows): New prototype.
6496 (make_pass_align_insns): Ditto.
6497 * config/alpha/alpha.c (alpha_option_override): Don't register
6498 passes here.
6499 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
6500
6501 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6502
6503 PR target/77924
6504 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
6505 distinct __ibm128 IBM extended double type if long doubles are
6506 128-bits and the default format for long double is IEEE 128-bit.
6507
6508 2016-10-11 Richard Biener <rguenther@suse.de>
6509
6510 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
6511 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
6512 (verify_die): New function.
6513 (dwarf2out_finish): Call it.
6514 (output_line_info): Handle case of -gsplit-dwarf without
6515 DWARF2_ASM_LINE_DEBUG_INFO.
6516
6517 2016-10-11 Richard Biener <rguenther@suse.de>
6518
6519 PR debug/77931
6520 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
6521 sub-chains of BLOCK_VARS and gimple_bind_vars.
6522
6523 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6524
6525 * config/i386/znver1.md : Fix imov/imovx load type reservations.
6526
6527 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6528
6529 * config/sparc/sparc.opt (msubxc): New option.
6530 * doc/invoke.texi (SPARC options): Document it and tidy up.
6531 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
6532 * doc/tm.texi: Regenerate.
6533 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
6534 (CCNZ): ...this.
6535 (CCX_NOOV): Rename into...
6536 (CCXNZ): ...this.
6537 (CCC): New.
6538 (CCXC): Likewise.
6539 * config/sparc/predicates.m (fcc_register_operand): Simplify.
6540 (fcc0_register_operand): Likewise.
6541 (icc_register_operand): New.
6542 (icc_or_fcc_register_operand): Simplify.
6543 (nz_comparison_operator): New.
6544 (c_comparison_operator): Likewise.
6545 (noov_compare_operator): Rename into...
6546 (icc_comparison_operator): ...this. Use above predicates.
6547 (noov_compare64_operator): Rename into...
6548 (v9_comparison_operator): ...this and tidy up.
6549 (fcc_comparison_operator): New.
6550 (icc_or_fcc_comparison_operator): Likewise.
6551 (v9_register_compare_operator): Rename info...
6552 (v9_register_comparison_operator): ...this.
6553 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6554 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
6555 for Niagara-7.
6556 (sparc_fixed_condition_code_regs): New function.
6557 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
6558 renaming and add support for CCC/CCXC.
6559 (output_cbranch): Likewise.
6560 (sparc_print_operand): Likewise.
6561 (gen_v9_scc): Remove obsolete assertion.
6562 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
6563 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
6564 (output_cbcond): Remove bogus handling of CC modes.
6565 (sparc_register_move_cost): Return 100 for NO_REGS.
6566 * config/sparc/sparc.md (W): New mode iterator.
6567 (length): Adjust for noov_compare64_operator renaming.
6568 (cmpsi_sne): New instruction.
6569 (cmpdi_sne): Likewise.
6570 (seqdi_special): Delete.
6571 (seqdi_special): Likewise.
6572 (snesi<P:mode>_special): Likewise.
6573 (snedi_special): Likewise.
6574 (snedi_special_vis3): Likewise.
6575 (snesi patterns): Use W iterator.
6576 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
6577 (sltu patterns): Likewise.
6578 (sgeu patterns): Likewise.
6579 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
6580 (normal_branch): Use icc_comparison_operator predicate.
6581 (inverted_branch): Likewise.
6582 (cbcond_sp32): Use comparison_operator predicate.
6583 (cbcond_sp64): Likewise.
6584 (normal_int_branch_sp64): Adjust for renaming
6585 (inverted_int_branch_sp64): Likewise.
6586 (mov<I:mode>_cc_reg_sp64): Likewise.
6587 (movsf_cc_reg_sp6): Likewise.
6588 (movdf_cc_reg_sp64): Likewise.
6589 (movtf_cc_reg_hq_sp64): Likewise.
6590 (movtf_cc_reg_sp64): Likewise.
6591 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
6592 (movsf_cc_v9): Likewise.
6593 (movdf_cc_v9): Likewise.
6594 (movtf_cc_hq_v9): Likewise.
6595 (movtf_cc_v9): Likewise.
6596 (adddi3): Call gen_adddi3_sp32.
6597 (adddi3_insn_sp32): Rename to...
6598 (adddi3_sp32): ...this. Accept only register_operand as operand #1
6599 and use CCCmode for the carry.
6600 (addx_extend_sp32): Use CCCmode for the carry.
6601 (addx_extend_sp64): Delete.
6602 (adddi3_extend_sp32): Use CCCmode for the carry.
6603 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
6604 (subdi3): Call gen_subdi3_sp32.
6605 (subdi3_insn_sp32): Rename to...
6606 (subdi3_sp32): ...this and use CCmode for the carry.
6607 (subx_extend_sp32): Use CCCmode for the carry.
6608 (subx_extend_sp64): Delete.
6609 (subdi3_extend_sp32): Use CCmode for the carry.
6610 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
6611 (negdi3): Call gen_negdi3_sp32.
6612 (negdi3_sp32): Use CCCmode for the carry.
6613 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
6614 (cmp_nz_ashift_1): Use CCNZ mode.
6615 (cmp_nz_set_ashift_1): Likewise.
6616 (ctrapsi4): Use comparison_operator predicate.
6617 (ctrapdi4): Likewise.
6618 (trapsi_insn): Use icc_comparison_operator predicate.
6619 (trapdi_insn): Likewise.
6620 (edge8 patterns): Use CCNZmode.
6621 (edge16 patterns): Likewise.
6622 (edge32 patterns): Likewise.
6623
6624 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6625
6626 * config/visium/visium-modes.def (CC_NOOV): Rename into...
6627 (CCNZ): ...this.
6628 (CC_BTST): Rename into...
6629 (CCC): ...this.
6630 * config/visium/predicates.md (real_add_operand): New.
6631 (visium_btst_operator): Rename into...
6632 (visium_equality_comparison_operator): ...this.
6633 (visium_noov_operator): Rename into...
6634 (visium_nz_comparison_operator): ...this.
6635 (visium_c_comparison_operator): New.
6636 (visium_branch_operator): Adjust and deal with all CC modes.
6637 * config/visium/visium.c (visium_adjust_cost): Adjust.
6638 (visium_split_double_add): Use the *_set_carry patterns.
6639 (visium_select_cc_mode): Add support for CCC mode and adjust.
6640 (output_cbranch): Adjust and use the carry-based operators for
6641 floating-point comparisons.
6642 * config/visium/visium.md (flags_subst_arith): Adjust.
6643 (addsi3_insn_set_carry): New instruction.
6644 (subsi3_insn_set_carry): Likewise.
6645 (negsi2_insn_set_carry): Likewise.
6646 (btst): Adjust.
6647 (cmp<mode>_sne): Likewise.
6648 (cbranch<mode>4): Use ordered_comparison_operator.
6649 (cbranch<mode>4_insn): Likewise.
6650 (cbranchsi4_btst_insn): Adjust.
6651
6652 2016-10-11 Tom de Vries <tom@codesourcery.com>
6653
6654 PR middle-end/77558
6655 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
6656 special-casing.
6657
6658 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
6659
6660 * tree.h (build_complex_type): Add second parameter with default.
6661 * tree.c (build_complex_type): Add NAMED second parameter and adjust
6662 recursive call. Create a TYPE_DECL only if NAMED is true.
6663 (build_common_tree_nodes): Pass true in calls to build_complex_type.
6664
6665 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
6666
6667 New avr-passes.def to register AVR specific passes.
6668
6669 * config/avr/avr-passes.def: New file.
6670 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
6671 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
6672 (make_avr_pass_recompute_note): New proto.
6673 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
6674 (avr_pass_recompute_notes): Use anonymous namespace.
6675 (avr_register_passes): Remove function...
6676 (avr_option_override): ...and its call.
6677
6678 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
6679
6680 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
6681 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
6682 PTF_AVOID_BRANCHLIKELY_SPEED for others.
6683 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
6684 flags.
6685 * config/mips/mips.c (mips_option_override): Enable the branch
6686 likely depending on the tune flags and optimization level.
6687 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
6688 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
6689 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
6690 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
6691
6692 2016-10-11 Richard Biener <rguenther@suse.de>
6693
6694 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
6695 (output_function): Properly stream the whole block tree.
6696 * lto-streamer-in.c (input_function): Likewise.
6697
6698 2016-10-11 Marek Polacek <polacek@redhat.com>
6699
6700 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
6701
6702 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6703
6704 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
6705 (evrp_dom_walker::before_dom_children): Infer and push new value
6706 ranges for x in y < x.
6707
6708 2016-10-10 Joseph Myers <joseph@codesourcery.com>
6709
6710 PR target/77586
6711 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
6712 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6713 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6714 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
6715 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
6716 (IA64_NO_LIBGCC_TFMODE): Likewise.
6717
6718 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
6719
6720 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
6721 copying.
6722
6723 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
6724
6725 * config.gcc: Add aarch64-*-freebsd* support.
6726 * config.host: Likewise.
6727 * config/aarch64/aarch64-freebsd.h: New file.
6728 * config/aarch64/t-aarch64-freebsd: Ditto.
6729
6730 2016-10-10 Jeff Law <law@redhat.com>
6731
6732 PR tree-optimization/71947
6733 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
6734 B with A within a single statement.
6735
6736 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6737
6738 PR tree-optimization/77824
6739 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
6740 zero cost for copies.
6741 (find_candidates_dom_walker::before_dom_children): Replace
6742 MODIFY_EXPR with SSA_NAME.
6743 (replace_mult_candidate): Likewise.
6744 (replace_profitable_candidates): Likewise.
6745
6746 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6747
6748 * config/s390/s390.h: Wrap more macros args in brackets and fix
6749
6750 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
6751
6752 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
6753
6754 2016-10-10 Andreas Schwab <schwab@suse.de>
6755
6756 PR target/77738
6757 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
6758 pseudo is not DImode.
6759
6760 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
6761
6762 * common/config/arc/arc-common.c (arc_option_optimization_table):
6763 Remove compact casesi option.
6764 * config/arc/arc.c (arc_override_options): Use compact casesi
6765 option only for pre-ARCv2 cores.
6766 * doc/invoke.texi (mcompact-casesi): Update text.
6767
6768 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6769
6770 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
6771 Add macro to say we can efficiently handle overlapping unaligned
6772 loads.
6773 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
6774 poor code for processors older than p8.
6775
6776 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
6777
6778 * gen-pass-instances.awk: Remove GNUism.
6779
6780 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6781
6782 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
6783 NULL of (*ipcp_transformations)][node->uid].
6784
6785 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
6786
6787 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6788 (MALLOC_ABI_ALIGNMENT): Define.
6789
6790 2016-10-09 Jakub Jelinek <jakub@redhat.com>
6791
6792 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
6793 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
6794 VAR_OR_FUNCTION_DECL_P macros.
6795 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
6796 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
6797 chkp_find_bounds_1): Likewise.
6798 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
6799 * hsa-gen.c (get_symbol_for_decl): Likewise.
6800 * cgraphunit.c (check_global_declaration, analyze_functions,
6801 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
6802 Likewise.
6803 * gimple-fold.c (can_refer_decl_in_current_unit_p,
6804 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
6805 Likewise.
6806 * tree.c (set_decl_section_name, copy_node_stat,
6807 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
6808 merge_dllimport_decl_attributes, handle_dll_attribute,
6809 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
6810 verify_type): Likewise.
6811 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
6812 find_explicit_erroneous_behavior): Likewise.
6813 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
6814 * ipa.c (process_references): Likewise.
6815 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
6816 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
6817 notice_global_symbol, assemble_variable, mark_decl_referenced,
6818 build_constant_desc, output_constant_def_contents, do_assemble_alias,
6819 make_decl_one_only, default_section_type_flags,
6820 categorize_decl_for_section, default_encode_section_info): Likewise.
6821 * trans-mem.c (requires_barrier): Likewise.
6822 * gimple-expr.c (mark_addressable): Likewise.
6823 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
6824 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
6825 expand_debug_expr): Likewise.
6826 * tree-dump.c (dequeue_and_dump): Likewise.
6827 * ubsan.c (instrument_bool_enum_load): Likewise.
6828 * tree-pretty-print.c (print_declaration): Likewise.
6829 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6830 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
6831 * asan.c (asan_protect_global, instrument_derefs): Likewise.
6832 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
6833 pass_build_ssa::execute): Likewise.
6834 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
6835 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
6836 Likewise.
6837 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
6838 Likewise.
6839 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
6840 can_be_nonlocal, remap_decls, copy_debug_stmt,
6841 initialize_inlined_parameters, add_local_variables,
6842 reset_debug_binding, replace_locals_op): Likewise.
6843 * dse.c (can_escape): Likewise.
6844 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
6845 Likewise.
6846 * tree-diagnostic.c (default_tree_printer): Likewise.
6847 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
6848 unpack_ts_decl_with_vis_value_fields,
6849 lto_input_ts_decl_common_tree_pointers): Likewise.
6850 * builtins.c (builtin_save_expr, fold_builtin_expect,
6851 readonly_data_expr): Likewise.
6852 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
6853 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
6854 Likewise.
6855 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
6856 * gimplify.c (force_constant_size, gimplify_bind_expr,
6857 gimplify_decl_expr, gimplify_var_or_parm_decl,
6858 gimplify_compound_lval, gimplify_init_constructor,
6859 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
6860 gimplify_type_sizes): Likewise.
6861 * cgraphbuild.c (record_reference, record_type_list, mark_address,
6862 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
6863 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
6864 remove_unused_locals): Likewise.
6865 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
6866 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
6867 * function.c (instantiate_expr, instantiate_decls_1,
6868 setjmp_vars_warning, add_local_decl): Likewise.
6869 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
6870 Likewise.
6871 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
6872 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
6873 optimize_va_list_gpr_fpr_size): Likewise.
6874 * tree-nrv.c (pass_nrv::execute): Likewise.
6875 * tsan.c (instrument_expr): Likewise.
6876 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
6877 * vtable-verify.c (verify_bb_vtables): Likewise.
6878 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
6879 get_ref_base_and_extent): Likewise.
6880 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
6881 Likewise.
6882 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
6883 analyze_all_variable_accesses): Likewise.
6884 * tree-nested.c (get_nonlocal_debug_decl,
6885 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
6886 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
6887 get_local_debug_decl, convert_local_omp_clauses,
6888 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
6889 Likewise.
6890 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
6891 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
6892 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
6893 dbxout_symbol, dbxout_common_check): Likewise.
6894 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
6895 string_constant): Likewise.
6896 * hsa.c (hsa_get_declaration_name): Likewise.
6897 * passes.c (rest_of_decl_compilation): Likewise.
6898 * tree-ssanames.c (make_ssa_name_fn): Likewise.
6899 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
6900 pack_ts_decl_with_vis_value_fields,
6901 write_ts_decl_common_tree_pointers): Likewise.
6902 * stor-layout.c (place_field): Likewise.
6903 * symtab.c (symtab_node::maybe_create_reference,
6904 symtab_node::verify_base, symtab_node::make_decl_local,
6905 symtab_node::copy_visibility_from,
6906 symtab_node::can_increase_alignment_p): Likewise.
6907 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
6908 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
6909 fortran_common, add_location_or_const_value_attribute,
6910 add_scalar_info, add_linkage_name, set_block_abstract_flags,
6911 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
6912 optimize_one_addr_into_implicit_ptr,
6913 optimize_location_into_implicit_ptr): Likewise.
6914 * gimple-low.c (record_vars_into): Likewise.
6915 * ipa-visibility.c (update_vtable_references): Likewise.
6916 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
6917 Likewise.
6918 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
6919 DFS::DFS_write_tree_body, write_symbol): Likewise.
6920 * langhooks.c (lhd_warn_unused_global_decl,
6921 lhd_set_decl_assembler_name): Likewise.
6922 * attribs.c (decl_attributes): Likewise.
6923 * except.c (output_ttype): Likewise.
6924 * varpool.c (varpool_node::get_create, ctor_for_folding,
6925 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
6926 * fold-const.c (fold_unary_loc): Likewise.
6927 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6928 ipa_find_agg_cst_from_init): Likewise.
6929 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
6930 expand_omp_target, lower_omp_regimplify_p,
6931 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
6932 find_link_var_op): Likewise.
6933 * tree-chrec.c (chrec_contains_symbols): Likewise.
6934 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
6935 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
6936 execute_fixup_cfg): Likewise.
6937
6938 PR tree-optimization/77901
6939 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
6940 if ranges[i].exp is SSA_NAME when looking for >= and only when
6941 ranges[i].exp is NULL or SSA_NAME when looking for the other
6942 comparison.
6943
6944 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6945
6946 * ipa-cp.c (ipcp_alignment_lattice): Remove.
6947 (ipcp_param_lattices): Remove field alignment.
6948 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
6949 (set_all_contains_variable): Remove call to
6950 ipcp_alignment_lattice::set_to_bottom.
6951 (initialize_node_lattices): Likewise.
6952 (propagate_alignment_accross_jump_function): Remove.
6953 (propagate_constants_accross_call): Remove call to
6954 propagate_alignment_accross_jump_function.
6955 (ipcp_store_alignment_results): Remove.
6956 (ipcp_driver): Remove call to ipcp_store_alignment_results.
6957 (propagate_bits_accross_jump_function): Handle ancestor jump function.
6958 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
6959 pretty-printing of alignment jump function.
6960 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
6961 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
6962 alignments and remove computing ipa_alignment jump function.
6963 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
6964 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
6965 (ipa_read_jump_function): Remove reading of ipa_alignment.
6966 (write_ipcp_transformation_info): Remove streaming for alignment
6967 propagation summary.
6968 (read_ipcp_transformation_info): Remove reading of alignment
6969 propagation summary.
6970 (ipcp_update_alignments): Remove.
6971 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
6972 type.
6973 (ipcp_transform_function): Remove call to ipcp_update_alignments()
6974 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
6975 * ipa-prop.h (ipa_alignment): Remove.
6976 (ipa_jump_func): Remove field alignment.
6977 (ipcp_transformation_summary): Remove field alignments.
6978 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
6979 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
6980 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
6981
6982 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
6983
6984 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
6985
6986 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
6987 change.
6988 (visium_expand_fp_cstore): Likewise.
6989
6990 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6991
6992 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
6993 * diagnostic.c (warning_at_rich_loc_n): New function.
6994 (diagnostic_n_impl_richloc): Likewise.
6995 (diagnostic_n_impl): Move most of the function to
6996 diagnostic_n_impl_richloc and call it.
6997
6998 2016-10-08 Jakub Jelinek <jakub@redhat.com>
6999
7000 * gen-pass-instances.awk: Rewritten.
7001 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
7002 $(PASSES_EXTRA) after passes.def to the script.
7003 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
7004 * config/i386/i386-passes.def: New file.
7005 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
7006 make_pass_stv): Declare.
7007 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
7008 false.
7009 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
7010 or !TARGET_64BIT.
7011 (pass_stv::clone, pass_stv::set_pass_param): New methods.
7012 (pass_stv::timode_p): New non-static data member.
7013 (ix86_option_override): Don't register passes here.
7014
7015 * doc/invoke.texi: Document accepting Else, fallthrough.
7016
7017 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
7018 style changes.
7019
7020 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
7021 FALLTHRU comment styles.
7022
7023 2016-10-07 Andrew Pinski <apinski@cavium.com>
7024
7025 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
7026 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
7027 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
7028 Likewise.
7029 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
7030 Likewise.
7031 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
7032 Likewise.
7033 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
7034 (AARCH64_ARCH): Likewise.
7035 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
7036 Likewise.
7037 (AARCH64_CORE): Likewise.
7038 (AARCH64_ARCH): Likewise.
7039 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
7040 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7041 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
7042 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
7043 (AARCH64_ARCH): Likewise.
7044 (AARCH64_CORE): Likewise.
7045 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
7046 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
7047 (AARCH64_CORE): Likewise.
7048 (AARCH64_ARCH): Likewise.
7049
7050 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
7051
7052 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
7053 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
7054 floating point type infrastructre, and -mfloat128 that enables the
7055 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
7056 if -mfloat128-type. Define __ibm128 to be long double by default.
7057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
7058 the IEEE 128-bit floating point type infrastructure should
7059 automatically be enabled.
7060 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
7061 instead of -mfloat128 to enable KFmode.
7062 (rs6000_option_override_internal): Split the option -mfloat128
7063 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
7064 systems, automatically set -mfloat128-type, but don't enable it on
7065 other operating systems. Move setting the long double size and
7066 IEEE quad support before the IEEE 128-bit floating point changes.
7067 (rs6000_init_builtins): Do not create a unique type for __ibm128
7068 if long double is IBM extended double, instead rely on __ibm128
7069 being defined as 'long double'. If -mfloat128-type and not
7070 -mfloat128, create the KFmode type with an undocumented __ieee128
7071 keyword.
7072 (rs6000_init_libfuncs): Use -mfloat128-type instead of
7073 -mfloat128 for tests about the types, but keep tests for
7074 -mfloat128 to enable the keyword support.
7075 (rs6000_complex_function_value): Likewise.
7076 (rs6000_scalar_mode_supported_p): Likewise.
7077 (rs6000_floatn_mode): Likewise.
7078 (rs6000_c_mode_for_suffix): Likewise.
7079 (rs6000_opt_masks): Add -mfloat128-type.
7080 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
7081 -mfloat128-type being split from -mfloat128. Add
7082 -mfloat128-hardware, which was missing.
7083 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
7084 -mfloat128 and -mfloat128-type:
7085 (-mfloat128-type): Likewise.
7086 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
7087 that 64-bit Linux systems with enable -mfloat128-type by default
7088 on VSX systems.
7089 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
7090 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
7091 -mfloat128-type instead of -mfloat128.
7092 (FLOAT128_2REG_P): Likewise.
7093 (MASK_FLOAT128_TYPE): Likewise.
7094 (ALTIVEC_ARG_MAX_RETURN): Likewise.
7095 (RS6000_BTM_FLOAT128): Likewise.
7096 (TARGET_FLOAT128): Poison old identifiers.
7097 (OPTION_MASK_FLOAT128): Likewise.
7098 (MASK_FLOAT128): Likewise.
7099 * config/rs6000/rs6000.md (FP): Likewise.
7100 (FLOAT128): Likewise.
7101 (fix_trunc<mode>di2): Likewise.
7102 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7103 (floatdi<mode>2): Likewise.
7104 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
7105 (neg<mode>2, FLOAT128 iterator): Likewise.
7106 (abs<mode>2, FLOAT128 iterator): Likewise.
7107 (ieee_128bit_negative_zero): Likewise.
7108 (ieee_128bit_vsx_neg<mode>2): Likewise.
7109 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7110 (ieee_128bit_vsx_abs<mode>2): Likewise.
7111 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7112 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7113 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7114 (extendiftf2): Likewise.
7115 (extendifkf2): Likewise.
7116 (extendtfkf2): Likewise.
7117 (trunciftf2): Likewise.
7118 (truncifkf2): Likewise.
7119 (trunckftf2): Likewise.
7120 (trunctfif2): Likewise.
7121 (extendkftf2): Likewise.
7122 (trunctfkf2): Likewise.
7123
7124 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7125
7126 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
7127 before merging in bytes to pass down to real_from_target.
7128
7129 2016-10-07 Richard Biener <rguenther@suse.de>
7130
7131 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
7132 required hack.
7133 (substitute_and_fold_dom_walker::before_dom_children):
7134 Substitute and fold before pass specific folding to avoid
7135 feeding that with SSA names that will be later released.
7136 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
7137 introduced by folding and visited by evaluate_stmt called during
7138 ccp_fold_stmt.
7139 (likely_value): Likewise.
7140 (evaluate_stmt): Likewise.
7141 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
7142 (simplify_div_or_mod_using_ranges): Likewise.
7143 (simplify_min_or_max_using_ranges): Likewise.
7144 (simplify_abs_using_ranges): Likewise.
7145 (simplify_conversion_using_ranges): Likewise.
7146 (simplify_float_conversion_using_ranges): Likewise.
7147 (simplify_stmt_using_ranges): Likewise.
7148
7149 2016-10-07 Marek Polacek <polacek@redhat.com>
7150
7151 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
7152 FALLTHROUGH_LABEL_P here...
7153 (warn_implicit_fallthrough_r): ...not here.
7154
7155 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
7156
7157 PR tree-optimization/77880
7158 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
7159 necessary.
7160
7161 2016-10-07 Marek Polacek <polacek@redhat.com>
7162
7163 PR c++/77803
7164 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
7165
7166 2016-10-07 Richard Biener <rguenther@suse.de>
7167
7168 * bitmap.h: Document constraints on bitmap modification while
7169 iterating over it.
7170
7171 2016-10-07 Richard Biener <rguenther@suse.de>
7172
7173 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
7174 * bitmap.h (bmp_iter_set): When advancing to the next element
7175 check that we didn't remove the current one.
7176 (bmp_iter_and): Likewise.
7177 (bmp_iter_and_compl): Likewise.
7178 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
7179 we currently iterate on but keep a one-level queue.
7180 * sched-deps.c (remove_from_deps): Do not clear current bit
7181 but keep a one-level queue.
7182
7183 2016-10-07 Jakub Jelinek <jakub@redhat.com>
7184
7185 PR tree-optimization/77664
7186 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
7187 for the other ranges.
7188 (optimize_range_tests_diff): Fix up formatting.
7189 (optimize_range_tests_var_bound): New function.
7190 (optimize_range_tests): Use it.
7191
7192 2016-10-07 Martin Liska <mliska@suse.cz>
7193
7194 * coverage.c (build_gcov_exit_decl): Fix priority what
7195 should be really 99.
7196
7197 2016-10-07 Richard Biener <rguenther@suse.de>
7198
7199 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
7200 vars in gimple_bind_vars but not in BLOCK_VARS.
7201
7202 2016-10-07 Richard Biener <rguenther@suse.de>
7203
7204 PR tree-optimization/77879
7205 * tree-ssa-structalias.c (handle_const_call): Properly handle
7206 NRV return slots.
7207 (handle_pure_call): Likewise.
7208
7209 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7210
7211 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
7212 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
7213 possible overflow.
7214
7215 2016-10-06 Andrew Pinski <apinski@cavium.com>
7216
7217 * config/aarch64/aarch64-cores.def: Add a comment before each
7218 set of cores.
7219
7220 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7221
7222 PR tree-optimization/77862
7223 * tree-vrp.c (add_equivalence): Use get_value_range so that
7224 num_vr_values is checked before accessing vr_values.
7225
7226 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
7227
7228 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7229 POINTER_TYPE_P.
7230
7231 2016-10-05 Jeff Law <law@redhat.com>
7232
7233 PR tree-optimization/71661
7234 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
7235 removal of a forwarder exposes a new natural loop.
7236
7237 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
7238
7239 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
7240 Introduce ssesuffix variable.
7241 (<mask_codefor><code><mode>3<mask_name>): Ditto.
7242 (*<code><mode>3): Ditto.
7243
7244 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
7245
7246 * postreload.c (reload_cse_simplify): Skip also USE when detecting
7247 noop move.
7248
7249 2016-10-06 Richard Biener <rguenther@suse.de>
7250
7251 PR tree-optimization/77855
7252 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
7253 instead of removing the current item while iterating over the set
7254 which is not safe.
7255
7256 2016-10-06 James Clarke <jrtc27@jrtc27.com>
7257 Eric Botcazou <ebotcazou@adacore.com>
7258
7259 PR target/77759
7260 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
7261 (classify_registers): Don't set it
7262 (function_arg_slotno): Don't initialize and test it. Tidy up.
7263
7264 2016-10-06 Richard Biener <rguenther@suse.de>
7265
7266 PR tree-optimization/77839
7267 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
7268 lattice transition.
7269
7270 2016-10-06 Martin Liska <mliska@suse.cz>
7271
7272 * gcc.c: Set -fprofile-update=atomic when profiling is
7273 enabled and -pthread is set. Warn when one combines
7274 -pthread and -fprofile-update=single for an app using
7275 profiling code.
7276
7277 2016-10-06 Martin Liska <mliska@suse.cz>
7278
7279 PR bootstrap/77788
7280 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
7281 * gimple-ssa-strength-reduction.c (slsr_process_cast):
7282 Initialize a pointer to NULL.
7283 (slsr_process_copy): Likewise.
7284 * input.c (location_get_source_line): Likewise.
7285 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7286
7287 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
7288
7289 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
7290 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
7291 (ix86_handle_option): Deleted handle of OPT_mpcommit.
7292 * config.gcc: Deleted pcommitintrin.h
7293 * config/i386/pcommitintrin.h: Deleted file.
7294 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
7295 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
7296 detection.
7297 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
7298 __PCOMMIT__.
7299 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
7300 (PTA_PCOMMIT): Deleted define.
7301 (ix86_option_override_internal): Deleted handle of option.
7302 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
7303 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
7304 __builtin_ia32_pcommit): Deleted.
7305 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
7306 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
7307 (pcommit): Deleted instruction.
7308 * config/i386/i386.opt: Mention -mpcommit deprecation.
7309 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
7310
7311 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
7312
7313 PR target/77874
7314 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
7315 Remove wrong assert.
7316 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
7317 Use <round_constraint> as operand 1 constraint.
7318
7319 2016-10-05 Jakub Jelinek <jakub@redhat.com>
7320
7321 PR sanitizer/66343
7322 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
7323 (ubsan_instrument_float_cast): And not here.
7324
7325 PR sanitizer/66343
7326 * ubsan.c (ubsan_ids): New GTY(()) array.
7327 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
7328 instead of static local counters.
7329
7330 2016-10-05 Martin Sebor <msebor@redhat.com>
7331
7332 PR bootstrap/77819
7333 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
7334 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
7335 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
7336 (default_printf_pointer_format): Define function.
7337 * targhooks.c (linux_printf_pointer_format): Define new function.
7338 * targhooks.h (linux_printf_pointer_format): Declare.
7339 (gnu_libc_printf_pointer_format): Remove declaration.
7340
7341 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342
7343 * fold-const.c (native_encode_real): Fix logic for selecting offset
7344 to write to when BYTES_BIG_ENDIAN.
7345
7346 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
7347
7348 * builtins.c (fold_builtin_strchr): Remove function.
7349 (fold_builtin_strrchr): Likewise.
7350 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
7351 * gimple-fold.c (target_char_cst_p): New function.
7352 (gimple_fold_builtin_strchr) Add more foldings.
7353 (gimple_fold_builtin): Add index, strrchr, rindex cases.
7354
7355 2016-10-05 Richard Biener <rguenther@suse.de>
7356
7357 PR middle-end/77863
7358 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
7359 capture ids in c-exprs.
7360
7361 2016-10-05 Richard Biener <rguenther@suse.de>
7362
7363 PR middle-end/77826
7364 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
7365 with types_match for GIMPLE code gen to handle type mismatched
7366 constants properly.
7367 (dt_operand::gen): Adjust.
7368 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
7369 and constant A.
7370
7371 2016-10-05 Richard Biener <rguenther@suse.de>
7372
7373 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
7374
7375 2016-10-05 Richard Biener <rguenther@suse.de>
7376
7377 PR middle-end/77842
7378 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
7379
7380 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
7381
7382 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
7383 version check to protect only DW_TAG_imported_module generation.
7384
7385 2016-10-05 Richard Biener <rguenther@suse.de>
7386
7387 PR middle-end/55152
7388 * match.pd (min(a,-a) -> -abs(a)): New pattern.
7389
7390 2016-10-04 Ian Lance Taylor <iant@golang.org>
7391
7392 * explow.c (allocate_dynamic_stack_space): Call
7393 do_pending_stack_adjust before handling flag_split_stack.
7394
7395 2016-10-04 David Malcolm <dmalcolm@redhat.com>
7396
7397 * genattrtab.c (make_internal_attr): Supply dummy column number to
7398 file_location ctor.
7399 (main): Likewise.
7400 * genoutput.c (init_insn_for_nothing): Likewise.
7401 * gensupport.c (add_define_attr): Likewise.
7402 * read-md.c (message_at_1): Print column number.
7403 (fatal_with_file_and_line): Likewise.
7404 (rtx_reader::read_char): Track column numbers.
7405 (rtx_reader::unread_char): Likewise.
7406 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
7407 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
7408 (rtx_reader::handle_file): Initialize m_read_md_colno.
7409 (rtx_reader::get_current_location): Supply column number to
7410 file_location ctor.
7411 * read-md.h (struct file_location): Add field "colno".
7412 (file_location::file_location): Likewise.
7413 (rtx_reader::get_colno): New accessor.
7414 (rtx_reader::m_read_md_colno): New field.
7415 (rtx_reader::m_last_line_colno): New field.
7416
7417 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7418
7419 * doc/extend.texi (Java Exceptions): Remove.
7420 (java_interface): Remove.
7421
7422 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
7423
7424 PR tree-optimization/77808
7425 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
7426 and addr are different before copying points-to information.
7427
7428 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
7429
7430 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
7431 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
7432 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
7433 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
7434
7435 2016-10-04 Richard Biener <rguenther@suse.de>
7436
7437 PR tree-optimization/77399
7438 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
7439 verify the target can convert.
7440
7441 2016-10-04 Richard Biener <rguenther@suse.de>
7442
7443 PR middle-end/77833
7444 * explow.c (plus_constant): Verify the mode of the constant
7445 pool offset before calling plus_constant.
7446
7447 2016-10-04 Richard Biener <rguenther@suse.de>
7448
7449 PR middle-end/77407
7450 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
7451 type support, mark with :C.
7452 (X / -X -> -1): Mark with :C.
7453
7454 2016-10-04 Jakub Jelinek <jakub@redhat.com>
7455
7456 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
7457 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
7458 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
7459 * doc/tm.texi: Regenerated.
7460 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
7461 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
7462 * config/darwin.h (JCR_SECTION_NAME): Remove.
7463 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
7464 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
7465 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
7466 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
7467 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
7468 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
7469
7470 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7471
7472 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
7473 between "because" and "param" in dump message in call to fprintf.
7474
7475 2016-10-03 Jeff Law <law@redhat.com>
7476
7477 PR tree-optimization/71550
7478 PR tree-optimization/71403
7479 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
7480 (profitable_jump_thread_path): Also return boolean indicating if
7481 the realized path will create an irreducible loop.
7482 Remove loop depth tests from 71403.
7483 (fsm_find_control_statement_thread_paths): Remove loop depth tests
7484 from 71403. If threading will create an irreducible loop, then
7485 throw away loop iteration and related information.
7486
7487 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
7488
7489 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
7490 -Woverloaded-virtual checks for warning options.
7491 * configure: Regenerate.
7492
7493 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7494
7495 PR preprocessor/77699
7496 * input.c (maybe_grow): Don't allocate one byte extra headroom.
7497 (get_next_line): Return false on error.
7498 (read_next_line): Removed, use get_next_line instead.
7499 (read_line_num): Don't copy the line.
7500 (location_get_source_line): Don't use static data.
7501 (selftest::test_reading_source_line): Add more test cases.
7502
7503 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7504
7505 Revert
7506 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7507
7508 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7509 (noce_process_if_block): Use it.
7510
7511 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7512
7513 * doc/invoke.texi: Update -Wint-in-bool-context.
7514
7515 2016-10-02 Jakub Jelinek <jakub@redhat.com>
7516
7517 * dwarf2out.c (output_fde, output_call_frame_info,
7518 dwarf2out_do_cfi_startproc, set_indirect_string,
7519 gen_internal_sym, output_die, output_line_info): Use
7520 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
7521 ASM_GENERATE_INTERNAL_LABEL output.
7522
7523 2016-10-01 Richard Biener <rguenther@suse.de>
7524
7525 PR middle-end/77798
7526 * genmatch.c (get_operand_type): Add operand position arg
7527 and handle COND_EXPR comparison operand with fixed boolean_type_node.
7528 (expr::gen_transform): Adjust.
7529 (dt_simplify::gen_1): Likewise.
7530
7531 2016-10-01 Jakub Jelinek <jakub@redhat.com>
7532
7533 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
7534 comments. Simplify asserts, remove unnecessary conditions.
7535 Formatting fixes.
7536 (*<code><mode>3): Likewise.
7537
7538 2016-09-30 Jakub Jelinek <jakub@redhat.com>
7539
7540 * doc/invoke.texi (-Wregister): Document.
7541
7542 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7543
7544 * configure.ac: Split CHECKING_P into CHECKING_P and
7545 ENABLE_EXTRA_CHECKING.
7546 * configure: Regenerated.
7547 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
7548 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
7549
7550 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
7551
7552 PR other/31566
7553 * gcc.c (process_command): For @filename handling, output
7554 the correct name if the file does not exist.
7555
7556 2016-09-30 Marek Polacek <polacek@redhat.com>
7557
7558 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
7559 * config/alpha/predicates.md: Likewise.
7560
7561 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7562
7563 * ifcvt.c (noce_try_avoid_const_materialization): New function.
7564 (noce_process_if_block): Use it.
7565
7566 2016-09-30 Martin Liska <mliska@suse.cz>
7567
7568 * doc/invoke.texi: Document asan-use-after-return that
7569 it's disabled by default in runtime.
7570
7571 2016-09-30 Richard Biener <rguenther@suse.de>
7572
7573 * tree-vrp.c (intersect_ranges): If we failed to handle
7574 the intersection choose a constant singleton range if available.
7575
7576 2016-09-30 Richard Biener <rguenther@suse.de>
7577
7578 PR tree-optimization/77399
7579 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
7580 float <-> int conversions.
7581
7582 2016-09-30 Alan Modra <amodra@gmail.com>
7583
7584 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
7585
7586 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7587
7588 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
7589 ext_level before calling CPUID with 0x80000008.
7590 Simplify xgetbv checks.
7591
7592 2016-09-29 David Malcolm <dmalcolm@redhat.com>
7593
7594 * Makefile.in (OBJS): Add print-rtl-function.o.
7595 * print-rtl-function.c: New file.
7596 * print-rtl.h (print_rtx_function): New decl.
7597
7598 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
7599
7600 PR target/77756
7601 * config/i386/cpuid.h (__get_cpuid_count): New.
7602 (__get_cpuid): Rename __level to __leaf.
7603
7604 2016-09-29 Marek Polacek <polacek@redhat.com>
7605
7606 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
7607
7608 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
7609
7610 PR target/77718
7611 * builtins.c (expand_builtin_memcmp): Don't swap args unless
7612 result is only being compared with zero.
7613
7614 2016-09-29 Marek Polacek <polacek@redhat.com>
7615
7616 * dwarf2out.c (loc_descriptor): Add fall through comment.
7617 (add_const_value_attribute): Likewise.
7618
7619 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
7620
7621 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
7622 with "v6t2". Move "arch" attribute above "pool_range".
7623 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
7624 with "v6t2".
7625 (*thumb2_movhi_vfp): Likewise.
7626 (*arm_movhi_fp16): Likewise.
7627 (*thumb2_movhi_fp16): Likewise.
7628 (*arm_movsi_vfp): Remove "arch" attribute.
7629 (*thumb2_movsi_vfp): Likewise.
7630
7631 2016-09-29 Martin Liska <mliska@suse.cz>
7632
7633 * doc/extend.texi: Remove limitation of Objective C for
7634 __attribute__((constructor)) and __attribute__((destructor)).
7635
7636 2016-09-29 Richard Biener <rguenther@suse.de>
7637
7638 PR tree-optimization/77768
7639 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7640 Handle stores to readonly memory when removing redundant stores.
7641
7642 2016-09-29 Richard Biener <rguenther@suse.de>
7643
7644 PR middle-end/77407
7645 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
7646 X / -X -> -1 simplifications.
7647
7648 2016-09-29 Richard Biener <rguenther@suse.de>
7649
7650 PR middle-end/55152
7651 * match.pd: Add max(a,-a) -> abs(a) pattern.
7652 * tree-ssa-phiopt.c (minmax_replacement): Disable for
7653 HONOR_SIGNED_ZEROS types.
7654
7655 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
7656
7657 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
7658 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
7659
7660 2016-09-29 Richard Biener <rguenther@suse.de>
7661
7662 * tree-vrp.c (set_defs_to_varying): New helper avoiding
7663 writing to vr_const_varying.
7664 (vrp_initialize): Call it.
7665 (vrp_visit_stmt): Likewise.
7666 (evrp_dom_walker::before_dom_children): Likewise.
7667
7668 2016-09-29 Richard Biener <rguenther@suse.de>
7669
7670 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
7671 constructors with vector elements.
7672
7673 2016-09-29 Richard Biener <rguenther@suse.de>
7674
7675 PR tree-optimization/77768
7676 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
7677 with stores to a place we know has a constant value.
7678
7679 2016-09-29 Alan Modra <amodra@gmail.com>
7680
7681 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
7682 * doc/invoke.texi: Document it.
7683 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
7684 (rs6000_passes_float): Comment.
7685 (rs6000_passes_long_double): New static var.
7686 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
7687 (init_cumulative_args): Set up to emit fp .gnu_attribute for
7688 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
7689 to include fp values returned in vectors.
7690 Set rs6000_passes_long_double.
7691 (rs6000_function_arg_advance_1): Likewise for function args.
7692 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
7693 and SPE. Emit long double tag value too.
7694 (rs6000_opt_vars): Add gnu-attr.
7695 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
7696 * configure: Regenerate.
7697 * config.in: Regenerate.
7698
7699 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7700
7701 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
7702 of 0 < x.
7703 (format_floating, format_string, format_directive,
7704 get_destination_size, pass_sprintf_length::handle_gimple_call):
7705 Likewise.
7706
7707 2016-09-28 Jakub Jelinek <jakub@redhat.com>
7708
7709 * gimple-ssa-sprintf.c: Fix comment formatting.
7710 (format_integer): Use is_gimple_assign.
7711 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
7712 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
7713 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
7714 (pass_sprintf_length::execute): Use is_gimple_call.
7715
7716 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7717
7718 * gimple-fold.c (gimple_fold_builtin): After failing to fold
7719 strchr, also try the generic folding.
7720
7721 2016-09-28 Martin Sebor <msebor@redhat.com>
7722
7723 PR c/77762
7724 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
7725 Fix typos.
7726
7727 2016-09-28 Martin Sebor <msebor@redhat.com>
7728
7729 PR middle-end/77683
7730 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
7731 length modifier is not expected.
7732 (format_floating): Ignore l length modifier and fail gracefuly
7733 when it isn't one of the other expected ones.
7734
7735 2016-09-28 Martin Sebor <msebor@redhat.com>
7736
7737 PR bootstrap/77753
7738 * varasm.c (assemble_addr_to_section): Increase local buffer size.
7739
7740 2016-09-27 Richard Biener <rguenther@suse.de>
7741
7742 * dwarf2out.c (cu_die_list): New global.
7743 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
7744 main_comp_unit_die to cu_die_list if we created it.
7745 Move break_out_includes ...
7746 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
7747 the cu_die_list.
7748
7749 2016-09-28 Richard Biener <rguenther@suse.de>
7750
7751 * dwarf2out.c (struct die_struct): Add removed flag.
7752 (lookup_type_die): If the DIE is marked as removed, clear
7753 TYPE_SYMTAB_DIE and return NULL.
7754 (lookup_decl_die): If the DIE is marked as removed, remove it
7755 from the hash and return NULL.
7756 (mark_removed): New helper.
7757 (prune_unused_types_prune): Call it for removed DIEs.
7758 (gen_subprogram_die): Move the premark_used_types call to after
7759 DIEs for the functions scopes are generated.
7760 (process_scope_var): Do not re-create pruned types or type decls.
7761 Make sure to also re-parent type decls.
7762 (dwarf2out_finish): Move unused type pruning and debug_types
7763 handling ...
7764 (dwarf2out_early_finish): ... here.
7765
7766 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7767
7768 * config/arc/arc-c.c: New file.
7769 * config/arc/arc-c.def: Likewise.
7770 * config/arc/t-arc: Likewise.
7771 * config.gcc: Include arc-c.o as c and cpp object.
7772 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
7773 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
7774 arc_cpu_cpp_builtins.
7775
7776 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
7777
7778 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
7779 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
7780
7781 2016-09-28 Nathan Sidwell <nathan@acm.org>
7782
7783 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
7784 printing.
7785
7786 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
7787
7788 PR tree-optimization/61056
7789 * gimple-fold.c (gimple_fold_builtin_strchr):
7790 New function to optimize strchr (s, 0) to strlen.
7791 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
7792
7793 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
7794
7795 PR tree-optimization/77724
7796 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
7797 Add tree_fits_shwi_p check.
7798
7799 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7800
7801 * auto-inc-dec.c (try_merge): Remove break after return.
7802 * cselib.c (autoinc_split): Likewise.
7803 * explow.c (promote_mode): Likewise.
7804 * fixed-value.c (fixed_arithmetic): Likewise.
7805 * hsa.c (hsa_internal_fn::get_arity): Likewise.
7806 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
7807 * trans-mem.c (get_attrs_for): Likewise.
7808 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
7809 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
7810 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
7811 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
7812 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
7813 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
7814 * config/cris/cris.c (cris_op_str): Likewise.
7815 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
7816 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
7817
7818 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
7819
7820 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
7821 IFN_GOACC_REDUCTION_CODES): New.
7822 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
7823 ifn_goacc_reduction_kind): Use them.
7824 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
7825 of internal functions, when applicable.
7826
7827 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
7828
7829 * config/mips/constraints.md (d): Fix documentation.
7830 * doc/md.texi (Machine Constraints): Update accordingly.
7831
7832 2016-09-27 Richard Biener <rguenther@suse.de>
7833
7834 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
7835 cur_line_info_table initialization ...
7836 (dwarf2out_assembly_start): ... here.
7837
7838 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
7839
7840 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
7841 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
7842 (*thumb2_movhi_vfp): Likewise.
7843 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
7844 template. Expand predicable attribute to mark VMOV.F16 as not
7845 predicable. Add "arch" attribute.
7846 (*thumb2_movhi_fp16): Likewise.
7847 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
7848 (*thumb2_movsi_vfp): Add "arch" attribute.
7849
7850 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
7851
7852 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
7853 VAR_DECL string.
7854
7855 2016-09-27 Marek Polacek <polacek@redhat.com>
7856
7857 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
7858 comment.
7859
7860 * config/c6x/c6x.h: Adjust fall through comment.
7861 * config/sh/sh.c (final_prescan_insn): Likewise.
7862 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
7863 (visium_expand_fp_cstore): Likewise.
7864
7865 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7866
7867 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
7868 expected by -Wimplicit-fallthrough.
7869 (thumb1_size_rtx_costs): Likewise.
7870 (thumb2_reorg): Likewise.
7871 (tls_mentioned_p): Add "Fall through" comment.
7872 (thumb2_reorg): Likewise.
7873 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
7874 comment form expected by -Wimplicit-fallthrough.
7875
7876 2016-09-27 Martin Liska <mliska@suse.cz>
7877
7878 PR gcov-profile/46266
7879 * input.h (RESERVED_LOCATION_P): New macro.
7880 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
7881 instread of comparison with UNKNOWN_LOCATION.
7882
7883 2016-09-27 Richard Biener <rguenther@suse.de>
7884
7885 PR tree-optimization/77745
7886 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7887 When removing redundant stores make sure to check compatibility
7888 of the TBAA state for downstream accesses.
7889 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
7890 value-numbering virtual operands for store matches.
7891
7892 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7893
7894 PR target/51244
7895 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
7896 movrt patterns. Match them before anything else in the SET case.
7897
7898 2016-09-27 Martin Liska <mliska@suse.cz>
7899
7900 PR gcov-profile/7970
7901 PR gcov-profile/16855
7902 PR gcov-profile/44779
7903 * coverage.c (build_gcov_exit_decl): New function.
7904 (coverage_obj_init): Call the function and generate __gcov_exit
7905 destructor.
7906 * doc/gcov.texi: Document when __gcov_exit function is called.
7907
7908 2016-09-27 Marek Polacek <polacek@redhat.com>
7909
7910 PR bootstrap/77751
7911 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7912 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
7913 -Wno-error instead of -Wno-implicit-fallthrough.
7914
7915 2016-09-27 Martin Liska <mliska@suse.cz>
7916
7917 PR bootstrap/77749
7918 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
7919
7920 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7921
7922 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
7923 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
7924 comments. Remove break after return.
7925 (ix86_fp_compare_code_to_integer, has_dispatch,
7926 ix86_simd_clone_usable): Remove break after return.
7927
7928 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7929
7930 PR rlt-optimization/77714
7931 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
7932 REG_EQUAL note.
7933
7934 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
7935
7936 PR ipa/77677
7937 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
7938 extract_range_from_unary_expr to convert value_range.
7939 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
7940 (extract_range_from_unary_expr): This.
7941 * tree-vrp.h (extract_range_from_unary_expr): Declare.
7942
7943 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
7944
7945 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
7946
7947 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7948
7949 * config/i386/i386.c (ix86_print_operand)
7950 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
7951 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
7952 (epilogue_renumber): Likewise.
7953
7954 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
7955
7956 PR middle-end/77719
7957 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
7958 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
7959
7960 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7961
7962 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7963 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
7964 is_mm_seq_cst, is_mm_sync): Move to ...
7965 * memmodel.h: This. New file.
7966 * builtins.c: Include memmodel.h.
7967 * optabs.c: Likewise.
7968 * tsan.c: Likewise.
7969 * config/aarch64/aarch64.c: Likewise.
7970 * config/alpha/alpha.c: Likewise.
7971 * config/arm/arm.c: Likewise.
7972 * config/i386/i386.c: Likewise.
7973 * config/ia64/ia64.c: Likewise.
7974 * config/mips/mips.c: Likewise.
7975 * config/rs6000/rs6000.c: Likewise.
7976 * config/sparc/sparc.c: Likewise.
7977 * genconditions.c: Include memmodel.h in generated file.
7978 * genemit.c: Likewise.
7979 * genoutput.c: Likewise.
7980 * genpeep.c: Likewise.
7981 * genpreds.c: Likewise.
7982 * genrecog.c: Likewise.
7983
7984 2016-09-26 David Malcolm <dmalcolm@redhat.com>
7985
7986 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
7987 "c" instead when parsing characters. Move operand parsing into...
7988 (read_rtx_operand): ...this new function, renaming "i" to "idx",
7989 and tightening the scope of various locals.
7990
7991 2016-09-26 Liu Hao <lh_mouse@126.com>
7992
7993 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
7994
7995 2016-09-26 Marek Polacek <polacek@redhat.com>
7996
7997 * system.h: Use __has_attribute to check whether the fallthrough
7998 attribute is supported.
7999
8000 2016-09-26 Marek Polacek <polacek@redhat.com>
8001
8002 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
8003 gimple_call_internal_p.
8004 * ipa-split.c (find_return_bb): Likewise.
8005 (execute_split_functions): Likewise.
8006 * omp-low.c (dump_oacc_loop_part): Likewise.
8007 (oacc_loop_xform_head_tail): Likewise.
8008 * predict.c (predict_loops): Likewise.
8009 * sanopt.c (pass_sanopt::execute): Likewise.
8010 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
8011 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
8012 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
8013 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
8014 (expand_ifn_va_arg): Likewise.
8015 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8016 (optimize_mask_stores): Likewise.
8017 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
8018 (vect_transform_stmt): Likewise.
8019 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
8020 * tsan.c (instrument_memory_accesses): Likewise.
8021
8022 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8023 Alexander Monakov <amonakov@ispras.ru>
8024
8025 * regrename.c (rename_chains): Check
8026 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
8027 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
8028 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8029
8030 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8031
8032 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
8033 (s390_sched_score): Likewise.
8034
8035 2016-09-26 Martin Liska <mliska@suse.cz>
8036
8037 * doc/gcov.texi: Update program output of gcov tool.
8038
8039 2016-09-26 Martin Liska <mliska@suse.cz>
8040
8041 PR gcov-profile/23332
8042 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
8043 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
8044 * value-prof.c (dump_histogram_value): Do not handle
8045 HIST_TYPE_CONST_DELTA.
8046 (stream_in_histogram_value): Likewise.
8047 (gimple_find_values_to_profile): Likewise.
8048 * value-prof.h (enum hist_type): Likewise.
8049
8050 2016-09-26 Martin Liska <mliska@suse.cz>
8051
8052 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
8053 from default sanitize recover values.
8054 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
8055 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
8056 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
8057 consistent.
8058 * opts.c (finish_options): Do a generic loop over options
8059 that can be recovered.
8060 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
8061 SANITIZE_RETURN.
8062 (common_handle_option): Likewise.
8063 * opts.h: Declare can_recover to sanitizer_opts_s.
8064
8065 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
8066
8067 * target.def(elf_flags_numeric): Change documentation to present tense.
8068 * doc/tm.texi: Regenerate.
8069
8070 2016-09-26 Marek Polacek <polacek@redhat.com>
8071
8072 PR c/7652
8073 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8074 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
8075 -Wno-switch-fallthrough.
8076 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
8077 (expand_builtin): Likewise.
8078 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
8079 * convert.c (convert_to_real_1): Likewise.
8080 (convert_to_integer_1): Likewise.
8081 * final.c (output_alternate_entry_point): Likewise.
8082 * genattrtab.c (make_canonical): Likewise.
8083 (write_test_expr): Likewise.
8084 * genpreds.c (validate_exp): Likewise.
8085 * gimple-ssa-strength-reduction.c
8086 (find_candidates_dom_walker::before_dom_children): Likewise.
8087 * godump.c (go_format_type): Likewise.
8088 * reload1.c (elimination_effects): Likewise.
8089 * resource.c (mark_referenced_resources): Likewise.
8090 (mark_set_resources): Likewise.
8091 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
8092 * varasm.c (output_addressed_constants): Likewise.
8093
8094 2016-09-26 Marek Polacek <polacek@redhat.com>
8095
8096 PR c/7652
8097 * common.opt (Wimplicit-fallthrough): New option.
8098 * doc/extend.texi: Document statement attributes and the fallthrough
8099 attribute.
8100 * doc/invoke.texi: Document -Wimplicit-fallthrough.
8101 * gimple.h (gimple_call_internal_p): New function.
8102 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
8103 (struct label_entry): New struct.
8104 (find_label_entry): New function.
8105 (case_label_p): New function.
8106 (collect_fallthrough_labels): New function.
8107 (last_stmt_in_scope): New function.
8108 (should_warn_for_implicit_fallthrough): New function.
8109 (warn_implicit_fallthrough_r): New function.
8110 (maybe_warn_implicit_fallthrough): New function.
8111 (expand_FALLTHROUGH_r): New function.
8112 (expand_FALLTHROUGH): New function.
8113 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
8114 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
8115 (gimplify_label_expr): New function.
8116 (gimplify_case_label_expr): Set location.
8117 (gimplify_expr): Call gimplify_label_expr.
8118 * internal-fn.c (expand_FALLTHROUGH): New function.
8119 * internal-fn.def (FALLTHROUGH): New internal function.
8120 * langhooks.c (lang_GNU_OBJC): New function.
8121 * langhooks.h (lang_GNU_OBJC): Declare.
8122 * system.h (gcc_fallthrough): Define.
8123 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
8124 * tree.h (FALLTHROUGH_LABEL_P): Define.
8125
8126 2016-09-26 Richard Biener <rguenther@suse.de>
8127
8128 * dwarf2out.c (stripattributes): Remove unused function.
8129 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
8130 Push dwarf_split_debug_info handling into init_sections_and_labels.
8131 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
8132 (DEBUG_MACRO_SECTION_FLAGS): Remove.
8133 (debug_macinfo_section_name): New global.
8134 (output_macinfo): Use debug_macinfo_section_name.
8135 (init_sections_and_labels): Split out section and label generation
8136 from dwarf2out_init. Set debug_macinfo_section_name.
8137 (dwarf2out_init): Move text section label generation and emission
8138 to ...
8139 (dwarf2out_assembly_start): ... here.
8140 (dwarf2out_finish): Call init_sections_and_labels before DWARF
8141 output starts.
8142
8143 2016-09-26 Richard Biener <rguenther@suse.de>
8144
8145 PR debug/77692
8146 * cgraphunit.c (analyze_functions): Before early removing
8147 global vars calls the late_global_decl debug handler mark
8148 the variable as readonly.
8149
8150 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8151
8152 PR target/51244
8153 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
8154 (sh_rtx_costs): Handle SET of movt and movrt patterns.
8155 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
8156 declare new overloads.
8157 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
8158 operand.
8159
8160 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8161
8162 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
8163 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
8164
8165 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
8166
8167 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
8168 * configure: Regenerate.
8169
8170 2016-09-24 Marek Polacek <polacek@redhat.com>
8171
8172 PR c/77490
8173 * doc/invoke.texi: Document -Wbool-operation.
8174
8175 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8176
8177 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
8178 * config/rs6000/rs6000.c (expand_block_compare): New function used by
8179 cmpmemsi pattern to do builtin expansion of memcmp ().
8180 (compute_current_alignment): Add helper function for
8181 expand_block_compare used to compute alignment as the compare proceeds.
8182 (select_block_compare_mode): Used by expand_block_compare to select
8183 the mode used for reading the next chunk of bytes in the compare.
8184 (do_load_for_compare): Used by expand_block_compare to emit the load
8185 insns for the compare.
8186 (rs6000_emit_dot_insn): Moved this function to avoid a forward
8187 reference from expand_block_compare ().
8188 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
8189 prototype for this function.
8190 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
8191 target option for controlling how much code inline expansion of
8192 memcmp() will be allowed to generate.
8193
8194 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8195
8196 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
8197 hook_bool_mode_false, hook_bool_mode_true,
8198 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
8199 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
8200 hook_bool_const_rtx_insn_const_rtx_insn_true,
8201 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
8202 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
8203 hook_bool_const_tree_hwi_hwi_const_tree_false,
8204 hook_bool_const_tree_hwi_hwi_const_tree_true,
8205 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
8206 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
8207 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
8208 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
8209 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
8210 hook_bool_const_tree_true, hook_bool_tree_tree_false,
8211 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
8212 hook_bool_rtx_insn_true, hook_bool_rtx_false,
8213 hook_bool_uintp_uintp_false,
8214 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
8215 hook_rtx_tree_int_null, hook_uint_mode_0,
8216 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
8217 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
8218 hook_constcharptr_const_rtx_insn_null,
8219 hook_constcharptr_const_tree_const_tree_null,
8220 hook_constcharptr_int_const_tree_null,
8221 hook_constcharptr_int_const_tree_const_tree_null,
8222 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
8223 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
8224 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
8225
8226 * vec.h (vNULL): Extend comment to say = vNULL initialization
8227 isn't needed for static vars.
8228
8229 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
8230 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
8231 = vNULL initialization of file scope vec.
8232 * passes.c (pass_tab, enabled_pass_uid_range_tab,
8233 disabled_pass_uid_range_tab): Likewise.
8234 * haifa-sched.c (sched_luids, h_i_d): Likewise.
8235 * tree-chkp-opt.c (check_infos): Likewise.
8236 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
8237
8238 * vec.h (vnull::operator vec): Add constexpr keyword for
8239 C++11 and later.
8240
8241 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
8242
8243 PR tree-optimization/77654
8244 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
8245 to duplicate_ssa_name_ptr_info.
8246
8247 2016-09-23 David Malcolm <dmalcolm@redhat.com>
8248
8249 PR preprocessor/77672
8250 * input.c (selftest::test_lexer_string_locations_simple): Update
8251 test to expect location information of the terminator character
8252 at the location of the final closing quote.
8253 (selftest::test_lexer_string_locations_hex): Likewise.
8254 (selftest::test_lexer_string_locations_oct): Likewise.
8255 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
8256 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
8257 (selftest::test_lexer_string_locations_ucn4): Likewise.
8258 (selftest::test_lexer_string_locations_ucn8): Likewise.
8259 (selftest::test_lexer_string_locations_u8): Likewise.
8260 (selftest::test_lexer_string_locations_utf8_source): Likewise.
8261 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
8262 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
8263 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
8264 (selftest::test_lexer_string_locations_macro): Likewise.
8265 (selftest::test_lexer_string_locations_long_line): Likewise.
8266
8267 2016-09-23 Richard Biener <rguenther@suse.de>
8268
8269 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
8270 virtual definition to virtual use if the call devirtualizes
8271 to a const or pure function.
8272 (visit_use): Also visit calls we can devirtualize to a
8273 const or pure function.
8274
8275 2016-09-23 Richard Biener <rguenther@suse.de>
8276
8277 PR tree-optimization/77697
8278 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
8279 signal error if we have sth ternary or unhandled.
8280
8281 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8282
8283 * config/arm/arm_neon.h (vabd_f16): New.
8284 (vabdq_f16): New.
8285 (vabs_f16): New.
8286 (vabsq_f16): New.
8287 (vadd_f16): New.
8288 (vaddq_f16): New.
8289 (vcage_f16): New.
8290 (vcageq_f16): New.
8291 (vcagt_f16): New.
8292 (vcagtq_f16): New.
8293 (vcale_f16): New.
8294 (vcaleq_f16): New.
8295 (vcalt_f16): New.
8296 (vcaltq_f16): New.
8297 (vceq_f16): New.
8298 (vceqq_f16): New.
8299 (vceqz_f16): New.
8300 (vceqzq_f16): New.
8301 (vcge_f16): New.
8302 (vcgeq_f16): New.
8303 (vcgez_f16): New.
8304 (vcgezq_f16): New.
8305 (vcgt_f16): New.
8306 (vcgtq_f16): New.
8307 (vcgtz_f16): New.
8308 (vcgtzq_f16): New.
8309 (vcle_f16): New.
8310 (vcleq_f16): New.
8311 (vclez_f16): New.
8312 (vclezq_f16): New.
8313 (vclt_f16): New.
8314 (vcltq_f16): New.
8315 (vcltz_f16): New.
8316 (vcltzq_f16): New.
8317 (vcvt_f16_s16): New.
8318 (vcvt_f16_u16): New.
8319 (vcvt_s16_f16): New.
8320 (vcvt_u16_f16): New.
8321 (vcvtq_f16_s16): New.
8322 (vcvtq_f16_u16): New.
8323 (vcvtq_s16_f16): New.
8324 (vcvtq_u16_f16): New.
8325 (vcvta_s16_f16): New.
8326 (vcvta_u16_f16): New.
8327 (vcvtaq_s16_f16): New.
8328 (vcvtaq_u16_f16): New.
8329 (vcvtm_s16_f16): New.
8330 (vcvtm_u16_f16): New.
8331 (vcvtmq_s16_f16): New.
8332 (vcvtmq_u16_f16): New.
8333 (vcvtn_s16_f16): New.
8334 (vcvtn_u16_f16): New.
8335 (vcvtnq_s16_f16): New.
8336 (vcvtnq_u16_f16): New.
8337 (vcvtp_s16_f16): New.
8338 (vcvtp_u16_f16): New.
8339 (vcvtpq_s16_f16): New.
8340 (vcvtpq_u16_f16): New.
8341 (vcvt_n_f16_s16): New.
8342 (vcvt_n_f16_u16): New.
8343 (vcvtq_n_f16_s16): New.
8344 (vcvtq_n_f16_u16): New.
8345 (vcvt_n_s16_f16): New.
8346 (vcvt_n_u16_f16): New.
8347 (vcvtq_n_s16_f16): New.
8348 (vcvtq_n_u16_f16): New.
8349 (vfma_f16): New.
8350 (vfmaq_f16): New.
8351 (vfms_f16): New.
8352 (vfmsq_f16): New.
8353 (vmax_f16): New.
8354 (vmaxq_f16): New.
8355 (vmaxnm_f16): New.
8356 (vmaxnmq_f16): New.
8357 (vmin_f16): New.
8358 (vminq_f16): New.
8359 (vminnm_f16): New.
8360 (vminnmq_f16): New.
8361 (vmul_f16): New.
8362 (vmul_lane_f16): New.
8363 (vmul_n_f16): New.
8364 (vmulq_f16): New.
8365 (vmulq_lane_f16): New.
8366 (vmulq_n_f16): New.
8367 (vneg_f16): New.
8368 (vnegq_f16): New.
8369 (vpadd_f16): New.
8370 (vpmax_f16): New.
8371 (vpmin_f16): New.
8372 (vrecpe_f16): New.
8373 (vrecpeq_f16): New.
8374 (vrnd_f16): New.
8375 (vrndq_f16): New.
8376 (vrnda_f16): New.
8377 (vrndaq_f16): New.
8378 (vrndm_f16): New.
8379 (vrndmq_f16): New.
8380 (vrndn_f16): New.
8381 (vrndnq_f16): New.
8382 (vrndp_f16): New.
8383 (vrndpq_f16): New.
8384 (vrndx_f16): New.
8385 (vrndxq_f16): New.
8386 (vrsqrte_f16): New.
8387 (vrsqrteq_f16): New.
8388 (vrecps_f16): New.
8389 (vrecpsq_f16): New.
8390 (vrsqrts_f16): New.
8391 (vrsqrtsq_f16): New.
8392 (vsub_f16): New.
8393 (vsubq_f16): New.
8394
8395 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8396
8397 * config.gcc (extra_headers): Add arm_fp16.h
8398 * config/arm/arm_fp16.h: New.
8399 * config/arm/arm_neon.h: Include "arm_fp16.h".
8400
8401 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8402
8403 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
8404 variants).
8405 (vmulf): New (v8hf, v4hf variants).
8406 (vfma): New (v8hf, v4hf variants).
8407 (vfms): New (v8hf, v4hf variants).
8408 (vsub): New (v8hf, v4hf variants).
8409 (vcage): New (v8hf, v4hf variants).
8410 (vcagt): New (v8hf, v4hf variants).
8411 (vcale): New (v8hf, v4hf variants).
8412 (vcalt): New (v8hf, v4hf variants).
8413 (vceq): New (v8hf, v4hf variants).
8414 (vcgt): New (v8hf, v4hf variants).
8415 (vcge): New (v8hf, v4hf variants).
8416 (vcle): New (v8hf, v4hf variants).
8417 (vclt): New (v8hf, v4hf variants).
8418 (vceqz): New (v8hf, v4hf variants).
8419 (vcgez): New (v8hf, v4hf variants).
8420 (vcgtz): New (v8hf, v4hf variants).
8421 (vcltz): New (v8hf, v4hf variants).
8422 (vclez): New (v8hf, v4hf variants).
8423 (vabd): New (v8hf, v4hf variants).
8424 (vmaxf): New (v8hf, v4hf variants).
8425 (vmaxnm): New (v8hf, v4hf variants).
8426 (vminf): New (v8hf, v4hf variants).
8427 (vminnm): New (v8hf, v4hf variants).
8428 (vpmaxf): New (v4hf variant).
8429 (vpminf): New (v4hf variant).
8430 (vpadd): New (v4hf variant).
8431 (vrecps): New (v8hf, v4hf variants).
8432 (vrsqrts): New (v8hf, v4hf variants).
8433 (vabs): New (v8hf, v4hf variants).
8434 (vneg): New (v8hf, v4hf variants).
8435 (vrecpe): New (v8hf, v4hf variants).
8436 (vrnd): New (v8hf, v4hf variants).
8437 (vrnda): New (v8hf, v4hf variants).
8438 (vrndm): New (v8hf, v4hf variants).
8439 (vrndn): New (v8hf, v4hf variants).
8440 (vrndp): New (v8hf, v4hf variants).
8441 (vrndx): New (v8hf, v4hf variants).
8442 (vrsqrte): New (v8hf, v4hf variants).
8443 (vmul_lane): Add v4hf and v8hf variants.
8444 (vmul_n): Add v4hf and v8hf variants.
8445 (vext): New (v8hf, v4hf variants).
8446 (vcvts): New (v8hi, v4hi variants).
8447 (vcvts): New (v8hf, v4hf variants).
8448 (vcvtu): New (v8hi, v4hi variants).
8449 (vcvtu): New (v8hf, v4hf variants).
8450 (vcvts_n): New (v8hf, v4hf variants).
8451 (vcvtu_n): New (v8hi, v4hi variants).
8452 (vcvts_n): New (v8hi, v4hi variants).
8453 (vcvtu_n): New (v8hf, v4hf variants).
8454 (vbsl): New (v8hf, v4hf variants).
8455 (vcvtas): New (v8hf, v4hf variants).
8456 (vcvtau): New (v8hf, v4hf variants).
8457 (vcvtms): New (v8hf, v4hf variants).
8458 (vcvtmu): New (v8hf, v4hf variants).
8459 (vcvtns): New (v8hf, v4hf variants).
8460 (vcvtnu): New (v8hf, v4hf variants).
8461 (vcvtps): New (v8hf, v4hf variants).
8462 (vcvtpu): New (v8hf, v4hf variants).
8463
8464 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8465
8466 * config/arm/arm-builtins.c (hf_UP): New.
8467 (si_UP): New.
8468 (vfp_builtin_data): New. Update comment.
8469 (enum arm_builtins): Include "arm_vfp_builtins.def".
8470 (ARM_BUILTIN_VFP_PATTERN_START): New.
8471 (arm_init_vfp_builtins): New.
8472 (arm_init_builtins): Add arm_init_vfp_builtins.
8473 (arm_expand_vfp_builtin): New.
8474 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
8475 long line.
8476 * config/arm/arm_vfp_builtins.def: New file.
8477 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
8478 (arm-builtins.o): Likewise.
8479
8480 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
8481
8482 PR ipa/77677
8483 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
8484 from constant while creating value range.
8485
8486 2016-09-23 Renlin Li <renlin.li@arm.com>
8487
8488 * ira.c (ira): Move ira_use_lra_p initialization code to ...
8489 (ira_init_once): Here.
8490
8491 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
8492 Jakub Jelinek <jakub@redhat.com>
8493
8494 * hooks.h (hook_uint_uintp_false): Rename to...
8495 (hook_bool_uint_uintp_false): ... this.
8496 * hooks.c (hook_uint_uintp_false): Rename to...
8497 (hook_bool_uint_uintp_false): ... this.
8498 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
8499 instead of hook_uint_uintp_false.
8500
8501 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8502
8503 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
8504 (arm_init_builtins): Move body of a loop to the standalone
8505 function arm_init_neon_builtin.
8506 (arm_expand_neon_builtin_1): New. Update comment. Function body
8507 moved from arm_neon_builtin with some white-space fixes.
8508 (arm_expand_neon_builtin): Move code into the standalone function
8509 arm_expand_neon_builtin_1.
8510
8511 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8512
8513 * config/arm/iterators.md (VCVTHI): New.
8514 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
8515 (NEON_VAGLTE): New.
8516 (VFM_LANE_AS): New.
8517 (VH_CVTTO): New.
8518 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
8519 (V_HALF): Add V4HF. Fix white-space.
8520 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
8521 (V_s_elem): Likewise.
8522 (V_sz_elem): Fix white-space.
8523 (V_elem_ch): Likewise.
8524 (VH_elem_ch): New.
8525 (scalar_mul_constraint): Add V8HF and V4HF.
8526 (Is_float_mode): Fix white-space.
8527 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
8528 (q): Add HF. Fix white-space.
8529 (float_sup): New.
8530 (float_SUP): New.
8531 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
8532 (neon_vfm_lane_as): New.
8533 * config/arm/neon.md (add<mode>3_fp16): New.
8534 (sub<mode>3_fp16): New.
8535 (mul<mode>3add<mode>_neon): New.
8536 (fma<VH:mode>4_intrinsic): New.
8537 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
8538 (fmsub<VH:mode>4_intrinsic): New.
8539 (<absneg_str><mode>2): New.
8540 (neon_v<absneg_str><mode>): New.
8541 (neon_v<fp16_rnd_str><mode>): New.
8542 (neon_vrsqrte<mode>): New.
8543 (neon_vpaddv4hf): New.
8544 (neon_vadd<mode>): New.
8545 (neon_vsub<mode>): New.
8546 (neon_vmulf<mode>): New.
8547 (neon_vfma<VH:mode>): New.
8548 (neon_vfms<VH:mode>): New.
8549 (neon_vc<cmp_op><mode>): New.
8550 (neon_vc<cmp_op><mode>_fp16insn): New
8551 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
8552 (neon_vca<cmp_op><mode>): New.
8553 (neon_vca<cmp_op><mode>_fp16insn): New.
8554 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
8555 (neon_vc<cmp_op>z<mode>): New.
8556 (neon_vabd<mode>): New.
8557 (neon_v<maxmin>f<mode>): New.
8558 (neon_vp<maxmin>fv4hf: New.
8559 (neon_<fmaxmin_op><mode>): New.
8560 (neon_vrecps<mode>): New.
8561 (neon_vrsqrts<mode>): New.
8562 (neon_vrecpe<mode>): New (VH variant).
8563 (neon_vdup_lane<mode>_internal): New.
8564 (neon_vdup_lane<mode>): New.
8565 (neon_vcvt<sup><mode>): New (VCVTHI variant).
8566 (neon_vcvt<sup><mode>): New (VH variant).
8567 (neon_vcvt<sup>_n<mode>): New (VH variant).
8568 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
8569 (neon_vcvt<vcvth_op><sup><mode>): New.
8570 (neon_vmul_lane<mode>): New.
8571 (neon_vmul_n<mode>): New.
8572 * config/arm/unspecs.md (UNSPEC_VCALE): New
8573 (UNSPEC_VCALT): New.
8574 (UNSPEC_VFMA_LANE): New.
8575 (UNSPECS_VFMS_LANE): New.
8576
8577 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8578
8579 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
8580 ("*extzv<mode><clobbercc_or_nocc>"):
8581 Correct a typo in a comment.
8582 Merged patterns.
8583 ("*insv<mode>_zEC12", "*insv<mode>_z10")
8584 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
8585 ("*insv<mode>_zEC12_appendbitsleft")
8586 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
8587 ("*insv<mode>_z10_appendbitsleft"): Ditto.
8588 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
8589 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
8590 Provide pattern with operands switched.
8591 ("*pre_z10_extv<mode>"):
8592 Use new subst patterns.
8593 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
8594 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
8595 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
8596 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
8597 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
8598 ("*<risbg_n>_sidi_ior_and_lshiftrt")
8599 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
8600 New patterns.
8601 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
8602 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
8603 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
8604 on zEC12.
8605 ("SINT"): New mode_iterator with SI, HI, QI.
8606 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
8607 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
8608 duplication.
8609
8610 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8611
8612 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
8613 new interface of s390_contiguous_bitmask_p.
8614 ("contiguous_bitmask_nowrap_operand"): New predicate.
8615 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
8616 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
8617 of s390_contiguous_bitmask_p.
8618 ("NxxDw"): Rename NxxDq constraint to NxxDw.
8619 ("NxxSw"): New constraint.
8620 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
8621 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
8622 interface.
8623 (s390_contiguous_bitmask_nowrap_p): Export.
8624 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
8625 former s390_contiguous_bitmask_p.
8626 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
8627 detect contiguous bit ranges with wraparound. Change signature to
8628 return START and END position instead of POS and LENGTH.
8629 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
8630 ranges with wraparound.
8631 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
8632 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
8633 Adapt to new signature of s390_contiguous_bitmask_p.
8634
8635 2016-09-23 Bin Cheng <bin.cheng@arm.com>
8636
8637 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
8638 (create_intersect_range_checks): New.
8639 (vect_create_cond_for_alias_checks): Call above function.
8640
8641 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8642
8643 * config/arm/iterators.md (Code iterators): Fix some white-space
8644 in the comments.
8645 (GLTE): New.
8646 (ABSNEG): New
8647 (FCVT): Moved from vfp.md.
8648 (VCVT_HF_US_N): New.
8649 (VCVT_SI_US_N): New.
8650 (VCVT_HF_US): New.
8651 (VCVTH_US): New.
8652 (FP16_RND): New.
8653 (absneg_str): New.
8654 (FCVTI32typename): Moved from vfp.md.
8655 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
8656 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
8657 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
8658 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
8659 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
8660 (vcvth_op): New.
8661 (fp16_rnd_str): New.
8662 (fp16_rnd_insn): New.
8663 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
8664 (UNSPEC_VCVT_HF_U_N): New.
8665 (UNSPEC_VCVT_SI_S_N): New.
8666 (UNSPEC_VCVT_SI_U_N): New.
8667 (UNSPEC_VCVTH_S): New.
8668 (UNSPEC_VCVTH_U): New.
8669 (UNSPEC_VCVTA_S): New.
8670 (UNSPEC_VCVTA_U): New.
8671 (UNSPEC_VCVTM_S): New.
8672 (UNSPEC_VCVTM_U): New.
8673 (UNSPEC_VCVTN_S): New.
8674 (UNSPEC_VCVTN_U): New.
8675 (UNSPEC_VCVTP_S): New.
8676 (UNSPEC_VCVTP_U): New.
8677 (UNSPEC_VCVTP_S): New.
8678 (UNSPEC_VCVTP_U): New.
8679 (UNSPEC_VRND): New.
8680 (UNSPEC_VRNDA): New.
8681 (UNSPEC_VRNDI): New.
8682 (UNSPEC_VRNDM): New.
8683 (UNSPEC_VRNDN): New.
8684 (UNSPEC_VRNDP): New.
8685 (UNSPEC_VRNDX): New.
8686 * config/arm/vfp.md (<absneg_str>hf2): New.
8687 (neon_vabshf): New.
8688 (neon_v<fp16_rnd_str>hf): New.
8689 (neon_vrndihf): New.
8690 (addhf3): New.
8691 (subhf3): New.
8692 (divhf3): New.
8693 (mulhf3): New.
8694 (*mulsf3neghf_vfp): New.
8695 (*negmulhf3_vfp): New.
8696 (*mulsf3addhf_vfp): New.
8697 (*mulhf3subhf_vfp): New.
8698 (*mulhf3neghfaddhf_vfp): New.
8699 (*mulhf3neghfsubhf_vfp): New.
8700 (fmahf4): New.
8701 (neon_vfmahf): New.
8702 (fmsubhf4_fp16): New.
8703 (neon_vfmshf): New.
8704 (*fnmsubhf4): New.
8705 (*fnmaddhf4): New.
8706 (neon_vsqrthf): New.
8707 (neon_vrsqrtshf): New.
8708 (FCVT): Move to iterators.md.
8709 (FCVTI32typename): Likewise.
8710 (neon_vcvth<sup>hf): New.
8711 (neon_vcvth<sup>si): New.
8712 (neon_vcvth<sup>_nhf_unspec): New.
8713 (neon_vcvth<sup>_nhf): New.
8714 (neon_vcvth<sup>_nsi_unspec): New.
8715 (neon_vcvth<sup>_nsi): New.
8716 (neon_vcvt<vcvth_op>h<sup>si): New.
8717 (neon_<fmaxmin_op>hf): New.
8718
8719 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8720
8721 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
8722 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
8723 ("*insv<mode>_zEC12_appendbitsleft")
8724 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
8725 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
8726
8727 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8728
8729 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
8730 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
8731 construct values without normalization.
8732 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
8733 static local lhs_ops to vNULL.
8734
8735 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8736 Jiong Wang <jiong.wang@arm.com>
8737
8738 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
8739 available when FP16 instructions are available.
8740 (output_move_vfp): Add support for 16-bit data moves.
8741 (arm_validize_comparison): Fix some white-space. Support HFmode
8742 by conversion to SFmode.
8743 * config/arm/arm.md (truncdfhf2): Fix a comment.
8744 (extendhfdf2): Likewise.
8745 (cstorehf4): New.
8746 (movsicc): Fix some white-space.
8747 (movhfcc): New.
8748 (movsfcc): Fix some white-space.
8749 (*cmovhf): New.
8750 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
8751 instructions are available.
8752 (*thumb2_movhi_vfp): Likewise.
8753 (*arm_movhi_fp16): New.
8754 (*thumb2_movhi_fp16): New.
8755 (*movhf_vfp_fp16): New.
8756 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
8757 (*movhf_vfp): Likewise.
8758 (extendhfsf2): Enable when VFP FP16 instructions are available.
8759 (truncsfhf2): Enable when VFP FP16 instructions are available.
8760
8761 2016-09-23 Martin Liska <mliska@suse.cz>
8762
8763 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
8764
8765 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8766
8767 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
8768 V4HF modes.
8769 (arm_evpc_neon_vtrn): Likewise.
8770 (arm_evpc_neon_vrev): Likewise.
8771 (arm_evpc_neon_vext): Likewise.
8772 * config/arm/arm_neon.h (vbsl_f16): New.
8773 (vbslq_f16): New.
8774 (vdup_n_f16): New.
8775 (vdupq_n_f16): New.
8776 (vdup_lane_f16): New.
8777 (vdupq_lane_f16): New.
8778 (vext_f16): New.
8779 (vextq_f16): New.
8780 (vmov_n_f16): New.
8781 (vmovq_n_f16): New.
8782 (vrev64_f16): New.
8783 (vrev64q_f16): New.
8784 (vtrn_f16): New.
8785 (vtrnq_f16): New.
8786 (vuzp_f16): New.
8787 (vuzpq_f16): New.
8788 (vzip_f16): New.
8789 (vzipq_f16): New.
8790 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
8791 (vdup_lane): New (v8hf, v4hf variants).
8792 (vext): New (v8hf, v4hf variants).
8793 (vbsl): New (v8hf, v4hf variants).
8794 * config/arm/iterators.md (VDQWH): New.
8795 (VH): New.
8796 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
8797 (Scalar_mul_8_16): Fix white-space.
8798 (Is_d_reg): Add V4HF and V8HF.
8799 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
8800 (neon_vdup_lane<mode>): New.
8801 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
8802 (*neon_vtrn<mode>_insn): Likewise.
8803 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
8804 (*neon_vzip<mode>_insn): Likewise
8805 (neon_vuzp<mode>_internal): Likewise.
8806 (*neon_vuzp<mode>_insn): Likewise
8807 * config/arm/vec-common.md (vec_perm_const<mode>): New.
8808
8809 2016-09-23 Jiong Wang <jiong.wang@arm.com>
8810 Matthew Wahab <matthew.wahab@arm.com>
8811
8812 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
8813 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
8814 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
8815 available. Also fix some white-space.
8816 * config/arm/vfp.md (*arm_movhi_vfp): New.
8817 (*thumb2_movhi_vfp): New.
8818
8819 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8820
8821 * config/arm/arm-c.c (arm_cpu_builtins): Define
8822 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
8823 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
8824
8825 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8826
8827 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
8828 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
8829 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
8830 arm_v8_2a_fp16_neon_hw.
8831 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
8832 arm_v8_2a_neon.
8833
8834 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8835
8836 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
8837 arm_fp16_alternative_ok and arm_fp16_none_ok.
8838
8839 2016-09-23 Martin Liska <mliska@suse.cz>
8840
8841 * ipa-icf.c (sem_variable::merge): Replace adress with address.
8842
8843 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
8844
8845 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
8846 ("armv8.2-a"): New.
8847 ("armv8.2-a+fp16"): New.
8848 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
8849 (FL2_FP16INST): New.
8850 (FL2_FOR_ARCH8_2A): New.
8851 * config/arm/arm-tables.opt: Regenerate.
8852 * config/arm/arm.c (arm_arch8_2): New.
8853 (arm_fp16_inst): New.
8854 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
8855 for incompatible fp16-format settings.
8856 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
8857 (TARGET_NEON_FP16INST): New.
8858 (arm_arch8_2): Declare.
8859 (arm_fp16_inst): Declare.
8860 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
8861 march=armv8.2-a and march=armv8.2-a+fp16.
8862 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
8863 and armv8.2-a+fp16.
8864 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
8865 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
8866
8867 2016-09-23 Martin Liska <mliska@suse.cz>
8868
8869 * doc/extend.texi: Remove fused-madd from i386 target options.
8870
8871 2016-09-23 Martin Liska <mliska@suse.cz>
8872
8873 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8874 Handle movbe.
8875
8876 2016-09-23 Martin Liska <mliska@suse.cz>
8877
8878 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
8879 Handle crc32.
8880
8881 2016-09-23 Martin Liska <mliska@suse.cz>
8882
8883 PR target/71652
8884 * config/i386/i386.c (ix86_option_override_internal): Change
8885 signature and return false when there's an error related to
8886 arch string.
8887 (release_options_strings): New function.
8888 (ix86_valid_target_attribute_tree): Call the function.
8889
8890 2016-09-23 Jakub Jelinek <jakub@redhat.com>
8891
8892 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
8893 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
8894 (gen_hsa_ctor_assignment): Likewise.
8895 * print-tree.c (print_node): Likewise.
8896 * tree-dump.c (dequeue_and_dump): Likewise.
8897 * tree-sra.c (sra_modify_constructor_assign): Likewise.
8898 * expr.c (store_constructor): Likewise.
8899 * fold-const.c (operand_equal_p): Likewise.
8900 * tree-pretty-print.c (dump_generic_node): Likewise.
8901 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
8902 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
8903
8904 2016-09-23 Richard Biener <rguenther@suse.de>
8905
8906 * hooks.h (hook_uint_uintp_false): Declare.
8907
8908 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8909
8910 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
8911 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
8912
8913 2016-09-22 Martin Sebor <msebor@redhat.com>
8914
8915 PR target/77676
8916 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
8917 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
8918 (target_int_min): Correct computation.
8919 (format_integer): Use long long as the argument for the ll length
8920 modifier.
8921 (format_floating): Use target_int_max().
8922 (get_string_length): Same.
8923 (format_string): Avoid setting the bounded flag for strings
8924 of unknown length.
8925 (try_substitute_return_value): Avoid setting range info when
8926 the result isn't bounded.
8927 * varasm.c (assemble_name): Increase buffer size.
8928
8929 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
8930 Terry Guo <terry.guo@arm.com>
8931
8932 * target.def (elf_flags_numeric): New target hook.
8933 * targhooks.h (default_asm_elf_flags_numeric): New.
8934 * varasm.c (default_asm_elf_flags_numeric): New.
8935 (default_elf_asm_named_section): Use new target hook.
8936 * config/arm/arm.opt (mpure-code): New.
8937 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
8938 * config/arm/arm.c (arm_asm_init_sections): Add section
8939 attribute to default text section if -mpure-code.
8940 (arm_option_check_internal): Diagnose use of option with
8941 non supported targets and/or options.
8942 (arm_asm_elf_flags_numeric): New.
8943 (arm_function_section): New.
8944 (arm_elf_section_type_flags): New.
8945 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
8946 for -mpure-code.
8947 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
8948 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
8949
8950 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
8951
8952 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
8953
8954 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8955
8956 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
8957 * rtl.h: Adjust prototype.
8958
8959 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8960
8961 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
8962 (prev_active_insn): Likewise.
8963 (active_insn_p): Likewise.
8964 * rtl.h: Adjust prototypes.
8965 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8966 * config/arc/arc.md: Likewise.
8967 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
8968 (branch_needs_nop_p): Likewise.
8969 (use_skip_p): Likewise.
8970 * config/sh/sh.c (gen_block_redirect): Likewise.
8971 (split_branches): Likewise.
8972 * reorg.c (optimize_skip): Likewise.
8973 (fill_simple_delay_slots): Likewise.
8974 (fill_slots_from_thread): Likewise.
8975 (relax_delay_slots): Likewise.
8976 * resource.c (mark_target_live_regs): Likewise.
8977
8978 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8979
8980 * config/cris/cris.c (cris_asm_output_case_end): Change argument
8981 type to rtx_insn *.
8982 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
8983 (prev_nonnote_nondebug_insn): Likewise.
8984 * config/cris/cris-protos.h: Adjust prototype.
8985 * rtl.h: Likewise.
8986 * jump.c (rtx_renumbered_equal_p): Adjust.
8987
8988 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8989
8990 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
8991 * rtl.h: Adjust prototype.
8992 * config/sh/sh.md: Adjust.
8993 * dwarf2out.c (add_var_loc_to_decl): Likewise.
8994
8995 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8996
8997 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
8998 (prev_nondebug_insn): Likewise.
8999 * loop-doloop.c (doloop_condition_get): Likewise.
9000 * rtl.h: Adjust prototype.
9001 * cfgloop.h: Likewise.
9002
9003 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9004
9005 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
9006 (prev_nonnote_insn): Likewise.
9007 * jump.c (reversed_comparison_code_parts): Likewise.
9008 (reversed_comparison): Likewise.
9009 * rtl.h: Adjust prototypes.
9010 * config/arc/arc.md: Adjust.
9011 * cse.c (find_comparison_args): Likewise.
9012 * reorg.c (redundant_insn): Change return type to rtx_insn *.
9013 (fix_reg_dead_note): Change argument type to rtx_insn *.
9014 (delete_prior_computation): Likewise.
9015 (delete_computation): Likewise.
9016 (fill_slots_from_thread): Adjust.
9017 (relax_delay_slots): Likewise.
9018 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9019 (simplify_relational_operation_1): Likewise.
9020 (simplify_ternary_operation): Likewise.
9021
9022 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9023
9024 * config/arc/arc-protos.h (arc_label_align): Change type of
9025 variables from rtx to rtx_insn *.
9026 * config/arc/arc.c (arc_label_align): Likewise.
9027 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
9028 * config/bfin/bfin.c (workaround_speculation): Likewise.
9029 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
9030 (find_last_same_clock): Likewise.
9031 (reorg_split_calls): Likewise.
9032 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
9033 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
9034 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
9035 (same_cmp_following_p): Likewise.
9036 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
9037 (same_cmp_following_p): Likwise.
9038 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
9039 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
9040 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
9041 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
9042 (rl78_alloc_physical_registers_cmp): Likewise.
9043 (rl78_alloc_physical_registers_umul): Likewise.
9044 (rl78_calculate_death_notes): Likewise.
9045 * config/s390/s390-protos.h (s390_label_align): Likewise.
9046 * config/s390/s390.c (s390_label_align): Likewise.
9047 * config/sh/sh.c (barrier_align): Likewise.
9048 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
9049 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
9050 (emit_cbcond_nop): Likewise.
9051
9052 2016-09-22 Martin Liska <mliska@suse.cz>
9053
9054 PR ipa/77653
9055 * ipa-icf.c (sem_variable::merge): Yield merge operation if
9056 alias address matters, not necessarily address of original.
9057
9058 2016-09-22 Richard Biener <rguenther@suse.de>
9059
9060 PR middle-end/77697
9061 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
9062 fold fails.
9063
9064 2016-09-22 Richard Biener <rguenther@suse.de>
9065
9066 PR middle-end/77677
9067 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
9068 from constant folding results.
9069 (gimple_resimplify2): Likewise.
9070 (gimple_resimplify3): Likewise.
9071
9072 2016-09-22 Richard Biener <rguenther@suse.de>
9073
9074 PR middle-end/77678
9075 * expr.c (expand_expr_real_1): Guard array access against negative
9076 offset.
9077
9078 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079
9080 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
9081 of MPFR_RNDN.
9082 (format_floating): Likewise.
9083
9084 2016-09-22 Jakub Jelinek <jakub@redhat.com>
9085
9086 PR fortran/77665
9087 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
9088 for all IFN_GOMP_SIMD_* internal fns, not just for
9089 IFN_GOMP_SIMD_ORDERED_*.
9090
9091 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9092
9093 PR target/77670
9094 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
9095 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
9096 instructions when you want to invert the test.
9097 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
9098 correct order for XXSEL.
9099 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
9100 for using XSCMP{EQ,GT,GE}DP.
9101
9102 2016-09-21 David Malcolm <dmalcolm@redhat.com>
9103
9104 * genconstants.c (main): Introduce noop_reader and convert call
9105 to read_md_files to a method call.
9106 * genenums.c (main): Likewise.
9107 * genmddeps.c (main): Likewise.
9108 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
9109 rtx_reader_ptr->get_top_level_filename ().
9110 (write_tm_preds_h): Likewise.
9111 (write_insn_preds_c): Likewise.
9112 * gensupport.c (class gen_reader): New subclass of rtx_reader.
9113 (rtx_handle_directive): Convert to...
9114 (gen_reader::handle_unknown_directive): ...this.
9115 (init_rtx_reader_args_cb): Convert return type from bool to
9116 rtx_reader *. Create a gen_reader instance, using it for the
9117 call to read_md_files. Return it if no errors occur.
9118 (init_rtx_reader_args): Convert return type from bool to
9119 rtx_reader *.
9120 * gensupport.h (init_rtx_reader_args_cb): Likewise.
9121 (init_rtx_reader_args_cb): Likewise.
9122 * read-md.c (struct file_name_list): Move to class rtx_reader.
9123 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
9124 (read_md_filename): Delete in favor of
9125 rtx_reader::m_read_md_filename.
9126 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
9127 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
9128 (base_dir): Delete in favor of rtx_reader::m_base_dir.
9129 (first_dir_md_include): Delete in favor of
9130 rtx_reader::m_first_dir_md_include.
9131 (last_dir_md_include_ptr): Delete in favor of
9132 rtx_reader::m_last_dir_md_include_ptr.
9133 (max_include_len): Delete.
9134 (rtx_reader_ptr): New.
9135 (fatal_with_file_and_line): Use get_filename and get_lineno
9136 accessors of rtx_reader_ptr.
9137 (require_char_ws): Likewise.
9138 (rtx_reader::read_char): New method, based on ::read_char.
9139 (rtx_reader::unread_char): New method, based on ::unread_char.
9140 (read_escape): Use get_filename and get_lineno accessors of
9141 rtx_reader_ptr.
9142 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
9143 (read_string): Use get_filename and get_lineno accessors of
9144 rtx_reader_ptr.
9145 (rtx_reader::rtx_reader): New ctor.
9146 (rtx_reader::~rtx_reader): New dtor.
9147 (handle_include): Convert from a function to...
9148 (rtx_reader::handle_include): ...this method, converting
9149 handle_directive from a callback to a virtual function.
9150 (handle_file): Likewise, converting to...
9151 (rtx_reader::handle_file): ...this method.
9152 (handle_toplevel_file): Likewise, converting to...
9153 (rtx_reader::handle_toplevel_file): ...this method.
9154 (rtx_reader::get_current_location): New method.
9155 (parse_include): Convert from a function to...
9156 (rtx_reader::add_include_path): ...this method, dropping redundant
9157 update to unused max_include_len.
9158 (read_md_files): Convert from a function to...
9159 (rtx_reader::read_md_files): ...this method, converting
9160 handle_directive from a callback to a virtual function.
9161 (noop_reader::handle_unknown_directive): New method.
9162 * read-md.h (directive_handler_t): Delete this typedef.
9163 (in_fname): Delete.
9164 (read_md_file): Delete.
9165 (read_md_lineno): Delete.
9166 (read_md_filename): Delete.
9167 (class rtx_reader): New class.
9168 (rtx_reader_ptr): New decl.
9169 (class noop_reader): New subclass of rtx_reader.
9170 (read_char): Reimplement in terms of rtx_reader::read_char.
9171 (unread_char): Reimplement in terms of rtx_reader::unread_char.
9172 (read_md_files): Delete.
9173 * read-rtl.c (read_rtx_code): Update for deletion of globals
9174 read_md_filename and read_md_lineno.
9175
9176 2016-09-21 Jason Merrill <jason@redhat.com>
9177
9178 * input.h (from_macro_definition_at): New.
9179
9180 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9181
9182 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
9183
9184 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9185
9186 PR tree-optimization/77550
9187 * tree-vect-stmts.c (create_array_ref): Change parameters.
9188 (get_group_alias_ptr_type): New function.
9189 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
9190
9191 2016-09-21 Marek Polacek <polacek@redhat.com>
9192
9193 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
9194 Add falls through comment.
9195
9196 2016-09-21 Richard Biener <rguenther@suse.de>
9197
9198 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
9199 (replace_child): Likewise.
9200 (remove_child_TAG): Adjust.
9201 (move_marked_base_types): Likewise.
9202 (prune_unused_types_prune): Clear die_sib of removed children.
9203
9204 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
9205
9206 PR target/77326
9207 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
9208 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
9209
9210 2016-09-21 Richard Biener <rguenther@suse.de>
9211
9212 PR tree-optimization/77648
9213 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
9214 with complex RHS.
9215 (make_transitive_closure_constraints): Adjust comment.
9216 (make_any_offset_constraints): New function.
9217 (handle_rhs_call): Make sure to first expand a pointer to all
9218 subfields before transitively closing it.
9219 (handle_const_call): Likewise. Properly expand returned
9220 pointers as well.
9221 (handle_pure_call): Likewise.
9222
9223 2016-09-21 Richard Biener <rguenther@suse.de>
9224 Jakub Jelinek <jakub@redhat.com>
9225
9226 PR tree-optimization/77621
9227 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
9228 group at non-vectorizable stmts.
9229
9230 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9231
9232 PR tree-optimization/72835
9233 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
9234 (make_new_ssa_for_all_defs): Likewise.
9235 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
9236
9237 2016-09-20 Martin Sebor <msebor@redhat.com>
9238
9239 PR middle-end/49905
9240 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
9241 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
9242 * config/linux.c (gnu_libc_printf_pointer_format): New function.
9243 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
9244 * config/sol2.c (solaris_printf_pointer_format): New function.
9245 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
9246 options.
9247 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
9248 * doc/tm.texi: Regenerate.
9249 * gimple-fold.h (get_range_strlen): New function.
9250 (get_maxval_strlen): Declare existing function.
9251 * gimple-fold.c (get_range_strlen): Add arguments and compute both
9252 maximum and minimum.
9253 (get_range_strlen): Define overload.
9254 (get_maxval_strlen): Adjust.
9255 * gimple-ssa-sprintf.c: New file and pass.
9256 * passes.def (pass_sprintf_length): Add new pass.
9257 * targhooks.h (default_printf_pointer_format): Declare new function.
9258 (gnu_libc_printf_pointer_format): Same.
9259 (solaris_libc_printf_pointer_format): Same.
9260 * targhooks.c (default_printf_pointer_format): Define new function.
9261 * tree-pass.h (make_pass_sprintf_length): Declare new function.
9262 * print-tree.c: Increase buffer size.
9263
9264 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9265
9266 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
9267
9268 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9269
9270 * common.opt: New option -fipa-vrp.
9271 * ipa-cp.c (ipa_get_vr_lat): New.
9272 (ipcp_vr_lattice::print): Likewise.
9273 (print_all_lattices): Call ipcp_vr_lattice::print.
9274 (ipcp_vr_lattice::meet_with): New.
9275 (ipcp_vr_lattice::meet_with_1): Likewise.
9276 (ipcp_vr_lattice::top_p): Likewise.
9277 (ipcp_vr_lattice::bottom_p): Likewsie.
9278 (ipcp_vr_lattice::set_to_bottom): Likewise.
9279 (set_all_contains_variable): Call VR set_to_bottom.
9280 (initialize_node_lattices): Init VR lattices.
9281 (propagate_vr_accross_jump_function): New.
9282 (propagate_constants_accross_call): Call
9283 propagate_vr_accross_jump_function.
9284 (ipcp_store_vr_results): New.
9285 (ipcp_driver): Handle VR.
9286 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
9287 (ipa_set_jf_unknown): Likewise.
9288 (ipa_compute_jump_functions_for_edge): Likewise.
9289 (ipa_node_params_t::duplicate): Likewise.
9290 (ipa_write_jump_function): Likewise.
9291 (ipa_read_jump_function): Likewise.
9292 (write_ipcp_transformation_info): Likewise.
9293 (read_ipcp_transformation_info): Likewise.
9294 (ipcp_update_vr): New.
9295 (ipcp_transform_function): Handle VR.
9296 * ipa-prop.h (struct ipa_vr): New.
9297 * cgraph.c: Include tree-vrp.h.
9298 * cgraphunit.c: Likewise.
9299 * ipa-utils.c: Likewise.
9300 * ipa.c: Likewise.
9301 * opts.c: Likewise.
9302 * toplev.c: Likewise.
9303 * ipa-devirt.c: Likewise.
9304 * ipa-inline-transform.c: Likewise.
9305 * ipa-inline.c: Likewise.
9306 * ipa-profile.c: Likewise.
9307
9308 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
9309
9310 * doc/invoke.texi: Document -fdump-tree-evrp.
9311 * passes.def: Define new pass_early_vrp.
9312 * timevar.def: Define new TV_TREE_EARLY_VRP.
9313 * tree-pass.h (make_pass_early_vrp): New.
9314 * tree-ssa-propagate.c: Make replace_uses_in non static.
9315 * tree-ssa-propagate.h: Export replace_uses_in.
9316 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
9317 (extract_range_from_assert): Factor out
9318 extract_range_for_var_from_comparison_expr.
9319 (vrp_initialize_lattice): New.
9320 (vrp_initialize): Factor out vrp_initialize_lattice.
9321 (vrp_valueize): Fix it to reject complex value ranges.
9322 (vrp_free_lattice): New.
9323 (evrp_dom_walker::before_dom_children): Likewise.
9324 (evrp_dom_walker::after_dom_children): Likewise.
9325 (evrp_dom_walker::push_value_range): Likewise.
9326 (evrp_dom_walker::pop_value_range): Likewise.
9327 (execute_early_vrp): Likewise.
9328 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
9329 (make_pass_early_vrp): New.
9330
9331 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9332
9333 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
9334 instead of exact_log2.
9335
9336 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
9337
9338 PR target/77621
9339 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
9340 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
9341 (ix86_add_stmt_cost): Penalize DFmode vector operations
9342 for !TARGET_VECTORIZE_DOUBLE.
9343
9344 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
9345
9346 * doc/invoke.texi (Warning Options): Simplify language.
9347 (Optimize Options): Complete sentence.
9348
9349 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
9350
9351 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
9352 early_finish hook.
9353
9354 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9355
9356 PR target/71395
9357 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
9358 inits on power8 and above, use the VMRGEW instruction instead of a
9359 permute.
9360
9361 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
9362 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
9363 initialization.
9364
9365 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9366
9367 * config/aarch64/arm_neon.h
9368 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
9369 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
9370 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
9371
9372 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
9373
9374 * config/var/vax.h (ELIMINABLE_REGS): Define.
9375 (INITIAL_ELIMINATION_OFFSET): Define.
9376
9377 2016-09-20 Jakub Jelinek <jakub@redhat.com>
9378
9379 PR middle-end/77624
9380 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
9381 cast to void * if the cast is from some other pointer type.
9382
9383 2016-09-20 Richard Biener <rguenther@suse.de>
9384
9385 PR tree-optimization/77646
9386 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
9387 a VDEF.
9388
9389 2016-09-20 Tamar Christina <tamar.christina@arm.com>
9390
9391 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
9392 attributes to all inlined functions and make them extern.
9393
9394 2016-09-20 Richard Biener <rguenther@suse.de>
9395
9396 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
9397 hook.
9398 * debug.c (do_nothing_debug_hooks): Adjust.
9399 * dbxout.c (dbx_debug_hooks): Likewise.
9400 * sdbout.c (sdb_debug_hooks): Likewise.
9401 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
9402 (dwarf2out_finish): Move producer, filename and
9403 path annotation ...
9404 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
9405 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
9406
9407 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
9408
9409 PR c++/77434
9410 * doc/invoke.texi: Document -Wint-in-bool-context.
9411
9412 PR middle-end/77421
9413 * dwarf2out.c (output_loc_operands): Fix an assertion.
9414
9415 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9416
9417 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
9418 (CR_DECIMAL_DIG): New macro.
9419
9420 2016-09-19 Joseph Myers <joseph@codesourcery.com>
9421
9422 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
9423 element.
9424
9425 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
9426
9427 PR rtl-optimization/77416
9428 * lra-remat.c (operand_to_remat): Process hard coded insn
9429 registers.
9430
9431 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9432
9433 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
9434 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
9435
9436 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9437
9438 * target.def (lra_p): Wordsmithing.
9439 * doc/tm.texi: Regenerate.
9440
9441 2016-09-19 Jakub Jelinek <jakub@redhat.com>
9442 Jan Hubicka <jh@suse.cz>
9443
9444 PR target/77587
9445 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
9446 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
9447 Call ultimate_alias_target just once, not up to 4 times.
9448
9449 2016-09-19 Richard Biener <rguenther@suse.de>
9450
9451 * dwarf2out.c (early_dwarf_finished): New global.
9452 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
9453 is false.
9454 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
9455 if called from LTO exit early.
9456 (dwarf2out_late_global_decl): When being during the early
9457 debug phase do not add locations but only const value attributes.
9458 Adjust the way we generate early DIEs for LTO.
9459
9460 2016-09-19 Richard Biener <rguenther@suse.de>
9461
9462 PR middle-end/77605
9463 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
9464 proper niter to bound the loops.
9465
9466 2016-09-19 Richard Biener <rguenther@suse.de>
9467
9468 PR tree-optimization/77514
9469 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
9470 search for folded stmt.
9471
9472 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
9473
9474 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
9475 * tree-pass.h (make_pass_early_thread_jumps): Declare.
9476 * tree-ssa-threadbackward.c (fsm_find_thread_path,
9477 fsm_find_thread_path, profitable_jump_thread_path,
9478 fsm_find_control_statement_thread_paths,
9479 find_jump_threads_backwards): Add speed_p parameter.
9480 (pass_data_early_thread_jumps): New pass.
9481 (make_pass_early_thread_jumps): New function.
9482
9483 2016-09-17 Andreas Schwab <schwab@suse.de>
9484
9485 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
9486 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9487
9488 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
9489
9490 * recog.c (rest_of_handle_split_after_reload): Delete.
9491 (pass_split_after_reload::gate): New method.
9492 (pass_split_after_reload::execute): Call split_all_insns directly.
9493
9494 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
9495
9496 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
9497 parameters for functions taking long long arguments.
9498
9499 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9500
9501 PR target/77613
9502 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
9503 splat with truncate.
9504
9505 2016-09-16 Jason Merrill <jason@redhat.com>
9506
9507 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
9508 New.
9509 * hwint.c (exact_log2): Use pow2p_hwi.
9510 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
9511 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
9512 * builtins.c (get_object_alignment_2, get_object_alignment)
9513 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
9514 least_bit_hwi.
9515 * calls.c (compute_argument_addresses, store_one_arg): Use
9516 least_bit_hwi.
9517 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
9518 * combine.c (force_to_mode): Use least_bit_hwi.
9519 (contains_muldiv, find_split_point, combine_simplify_rtx)
9520 (simplify_if_then_else, simplify_set, force_to_mode)
9521 (if_then_else_cond, simplify_and_const_int_1)
9522 (simplify_compare_const): Use pow2p_hwi.
9523 * cse.c (fold_rtx): Use pow2p_hwi.
9524 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
9525 Use least_bit_hwi.
9526 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
9527 (init_expmed_one_conv): Use pow2p_hwi.
9528 * expr.c (is_aligning_offset): Use pow2p_hwi.
9529 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
9530 (fold_binary_loc): Use pow2p_hwi.
9531 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
9532 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
9533 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
9534 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
9535 Use least_bit_hwi.
9536 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
9537 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
9538 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
9539 * omp-low.c (oacc_loop_fixed_partitions)
9540 (oacc_loop_auto_partitions): Use least_bit_hwi.
9541 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
9542 * stor-layout.c (place_field): Use least_bit_hwi.
9543 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
9544 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
9545 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
9546 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
9547 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
9548 * tree-vect-data-refs.c (vect_analyze_group_access_1)
9549 (vect_grouped_store_supported, vect_grouped_load_supported)
9550 (vect_permute_load_chain, vect_shift_permute_load_chain)
9551 (vect_transform_grouped_load): Use pow2p_hwi.
9552 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
9553 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
9554 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
9555 least_bit_hwi.
9556 * tsan.c (instrument_expr): Use least_bit_hwi.
9557 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
9558
9559 2016-09-16 Andreas Schwab <schwab@suse.de>
9560
9561 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
9562 OFFSET, not offset.
9563 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9564
9565 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9566
9567 PR target/77526
9568 * combine.c (rest_of_handle_combine): If any edges have been purged,
9569 free dominators if available.
9570
9571 2016-09-16 Jakub Jelinek <jakub@redhat.com>
9572 Eric Botcazou <ebotcazou@adacore.com>
9573
9574 PR middle-end/77594
9575 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
9576 through into expand_addsub_overflow after expand_neg_overflow.
9577
9578 2016-09-15 David Malcolm <dmalcolm@redhat.com>
9579
9580 * diagnostic-show-locus.c
9581 (selftest::test_fixit_insert_containing_newline): New function.
9582 (selftest::test_fixit_replace_containing_newline): New function.
9583 (selftest::diagnostic_show_locus_c_tests): Call the above.
9584
9585 2016-09-15 Bin Cheng <bin.cheng@arm.com>
9586
9587 PR tree-optimization/77503
9588 * tree-vect-loop.c (vectorizable_reduction): Record reduction
9589 code for CONST_COND_REDUCTION at analysis stage and use it at
9590 transform stage.
9591 * tree-vectorizer.h (struct _stmt_vec_info): New field.
9592 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
9593 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
9594 field.
9595
9596 2016-09-15 Richard Biener <rguenther@suse.de>
9597
9598 PR middle-end/77544
9599 * fold-const.c (split_tree): Do not split constant ~X.
9600
9601 2016-09-15 Jakub Jelinek <jakub@redhat.com>
9602
9603 PR rtl-optimization/77425
9604 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
9605 is NULL.
9606
9607 PR middle-end/77475
9608 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
9609 use %qs instead of %s where desirable, use argument instead of arg in
9610 the diagnostic wording, add list of supported strategies and
9611 spellcheck hint.
9612 (ix86_option_override_internal): Emit target("m...") instead of
9613 option("m...") in the diagnostic. Use %qs instead of %s in invalid
9614 -march/-mtune option diagnostic. Add list of supported arches/tunings
9615 and spellcheck hint. Remove prefix, suffix and sw variables, use
9616 main_args_p ? "..." : "..." in diagnostics to make translation
9617 possible.
9618
9619 2016-09-15 Richard Biener <rguenther@suse.de>
9620
9621 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
9622 extra offset argument.
9623 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
9624 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
9625 to reflect new offset parameter.
9626 * doc/tm.texi: Regenerate.
9627 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9628 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
9629 offset argument.
9630 (darwin_asm_output_dwarf_offset): Likewise.
9631 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
9632 argument.
9633 (darwin_asm_output_dwarf_offset): Pass offset argument through.
9634 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
9635 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
9636
9637 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
9638
9639 PR fortran/72743
9640 * ipa-icf.c (set_alias_uids): New function.
9641 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
9642 all the merged variable's referring aliases.
9643
9644 2016-09-15 Richard Biener <rguenther@suse.de>
9645
9646 PR tree-optimization/77514
9647 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
9648 only forced_stmts sequence.
9649
9650 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
9651
9652 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
9653 * cfgexpand.c (update_alias_info_with_stack_vars): Use
9654 FOR_EACH_SSA_NAME to iterate over SSA variables.
9655 (pass_expand::execute): Likewise.
9656 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
9657 * tree-cfg.c (dump_function_to_file): Likewise.
9658 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
9659 (update_ssa): Likewise.
9660 * tree-ssa-alias.c (dump_alias_info): Likewise.
9661 * tree-ssa-ccp.c (ccp_finalize): Likewise.
9662 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
9663 (create_outofssa_var_map): Likewise.
9664 (coalesce_ssa_name): Likewise.
9665 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
9666 * tree-ssa-pre.c (compute_avail): Likewise.
9667 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
9668 (scc_vn_restore_ssa_info): Likewise.
9669 (free_scc_vn): Likwise.
9670 (run_scc_vn): Likewise.
9671 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9672 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
9673 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9674 * tree-ssa.c (verify_ssa): Likewise.
9675
9676 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
9677
9678 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
9679 and mips64r2 as default 32-bit and 64-bit architectures.
9680 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
9681 as default 32-bit and 64-bit architectures.
9682
9683 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
9684
9685 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
9686 of succ edge.
9687
9688 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9689
9690 * target.def (lra_p): Change commentary (for the manual) for the
9691 new default.
9692 * doc/tm.texi: Regenerate.
9693
9694 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9695
9696 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
9697 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
9698 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
9699 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
9700
9701 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9702
9703 * targhooks.c (default_lra_p): Return true instead of false.
9704
9705 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9706
9707 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
9708 hook_bool_void_false.
9709 * config/avr/avr.c: Ditto.
9710 * config/bfin/bfin.c: Ditto.
9711 * config/c6x/c6x.c: Ditto.
9712 * config/cr16/cr16.c: Ditto.
9713 * config/cris/cris.c: Ditto.
9714 * config/epiphany/epiphany.c: Ditto.
9715 * config/fr30/fr30.c: Ditto.
9716 * config/frv/frv.c: Ditto.
9717 * config/h8300/h8300.c: Ditto.
9718 * config/ia64/ia64.c: Ditto.
9719 * config/iq2000/iq2000.c: Ditto.
9720 * config/lm32/lm32.c: Ditto.
9721 * config/m32c/m32c.c: Ditto.
9722 * config/m32r/m32r.c: Ditto.
9723 * config/m68k/m68k.c: Ditto.
9724 * config/mcore/mcore.c: Ditto.
9725 * config/microblaze/microblaze.c: Ditto.
9726 * config/mmix/mmix.c: Ditto.
9727 * config/mn10300/mn10300.c: Ditto.
9728 * config/moxie/moxie.c: Ditto.
9729 * config/msp430/msp430.c: Ditto.
9730 * config/nios2/nios2.c: Ditto.
9731 * config/nvptx/nvptx.c: Ditto.
9732 * config/pa/pa.c: Ditto.
9733 * config/pdp11/pdp11.c: Ditto.
9734 * config/rl78/rl78.c: Ditto.
9735 * config/sparc/sparc.c: Ditto.
9736 * config/spu/spu.c: Ditto.
9737 * config/stormy16/stormy16.c: Ditto.
9738 * config/tilegx/tilegx.c: Ditto.
9739 * config/tilepro/tilepro.c: Ditto.
9740 * config/v850/v850.c: Ditto.
9741 * config/vax/vax.c: Ditto.
9742 * config/visium/visium.c: Ditto.
9743 * config/xtensa/xtensa.c: Ditto.
9744
9745 2016-09-14 Jakub Jelinek <jakub@redhat.com>
9746
9747 PR sanitizer/68260
9748 * tsan.c: Include target.h.
9749 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
9750 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
9751 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
9752 BUILT_IN_ATOMIC_TEST_AND_SET entries.
9753 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
9754
9755 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9756 Martin Liska <mliska@suse.cz>
9757
9758 PR middle-end/77574
9759 * predict.c (force_edge_cold): Add braces to a condition.
9760
9761 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
9762
9763 PR rtl-optimization/77289
9764 * lra-constraints.c (get_final_hard_regno): Removed.
9765 (get_hard_regno): Add new parameter final_p.
9766 (get_reg_class): Directly call lra_get_elimination_hard_regno.
9767 (operands_match_p): Adjust call to get_hard_regno.
9768 (uses_hard_regs_p): Likewise.
9769 (process_alt_operands): Likewise.
9770
9771 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
9772
9773 PR target/70713
9774 * config/msp430/msp430.c (msp430_start_function): Emit an error
9775 if a function is both weak and specifies an interrupt number.
9776
9777 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9778
9779 PR tree-optimization/77454
9780 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
9781 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
9782 Formatting fix.
9783
9784 2016-09-13 Tamar Christina <tamar.christina@arm.com>
9785
9786 * config/aarch64/aarch64-builtins.c
9787 (aarch64_init_simd_builtins): Fix builtin type signature printing.
9788
9789 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
9790
9791 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
9792 SFmode and SCmode arguments by reference.
9793
9794 2016-09-13 David Malcolm <dmalcolm@redhat.com>
9795
9796 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
9797 Rename to...
9798 (selftest::test_one_liner_fixit_insert_before): ...this, and update
9799 for renaming of add_fixit_insert to add_fixit_insert_before.
9800 (selftest::test_one_liner_fixit_insert_after): New function.
9801 (selftest::test_one_liner_fixit_validation_adhoc_locations):
9802 Update for renaming of add_fixit_insert to add_fixit_insert_before.
9803 (selftest::test_one_liner_many_fixits): Likewise.
9804 (selftest::test_diagnostic_show_locus_one_liner): Update for
9805 renaming, call new test function.
9806 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
9807 renaming of add_fixit_insert to add_fixit_insert_before.
9808 (selftest::test_fixit_consolidation): Likewise.
9809 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
9810 Likewise.
9811 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
9812 (selftest::test_applying_fixits_insert_before): ...this.
9813 (selftest::test_applying_fixits_insert): Update for renaming of
9814 add_fixit_insert to add_fixit_insert_before.
9815 (selftest::test_applying_fixits_insert_after): New function.
9816 (selftest::test_applying_fixits_insert_after_at_line_end): New
9817 function.
9818 (selftest::test_applying_fixits_insert_after_failure): New function.
9819 (selftest::test_applying_fixits_multiple): Update for renaming of
9820 add_fixit_insert to add_fixit_insert_before.
9821 (selftest::change_line): Likewise.
9822 (selftest::test_applying_fixits_unreadable_file): Likewise.
9823 (selftest::test_applying_fixits_line_out_of_range): Likewise.
9824 (selftest::test_applying_fixits_column_validation): Likewise.
9825 (selftest::test_applying_fixits_column_validation): Likewise.
9826 (selftest::edit_context_c_tests): Update for renamed test function;
9827 call new test functions.
9828
9829 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
9830
9831 PR tree-optimization/77536
9832 PR rtl-optimization/68212
9833 * config/rs6000/rs6000.md (div->recip splitter): Remove
9834 optimize_insn_for_speed_p condition.
9835
9836 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
9837
9838 * optabs.c (prepare_cmp_insn): Update documentation comment.
9839
9840 2016-09-13 Jakub Jelinek <jakub@redhat.com>
9841 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9842
9843 PR middle-end/77475
9844 * opts.h (candidates_list_and_hint): Declare.
9845 * opts-common.c (candidates_list_and_hint): New function.
9846 (cmdline_handle_error): Use it.
9847
9848 2016-09-12 David Malcolm <dmalcolm@redhat.com>
9849
9850 * edit-context.c (edited_line::get_len): New accessor.
9851 (edited_file::print_diff): Split out hunk-printing into...
9852 (edited_file::print_diff_hunk): New method.
9853 (edited_file::print_diff_line): New method.
9854
9855 2016-09-12 Andrew Pinski <apinski@cavium.com>
9856
9857 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
9858 New tuning option.
9859 * config/aarch64/aarch64.c (thunderx_tunings): Enable
9860 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
9861 (aarch64_operands_ok_for_ldpstp): Return false if
9862 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
9863 was SImode and the alignment is less than 8 byte.
9864 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9865
9866 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
9867
9868 PR target/77570
9869 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
9870
9871 2016-09-12 Marek Polacek <polacek@redhat.com>
9872
9873 * doc/extend.texi: Use lowercase "boolean".
9874 * doc/invoke.texi: Likewise.
9875 * doc/md.texi: Likewise.
9876 * target.def: Likewise.
9877 * doc/tm.texi: Regenerated.
9878
9879 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9880
9881 PR middle-end/77426
9882 * expmed.c (synth_mult): Delete duplicate mode check.
9883
9884 2016-09-10 Tom de Vries <tom@codesourcery.com>
9885
9886 PR C/71602
9887 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
9888 va_list type only.
9889 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
9890 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
9891
9892 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
9893
9894 PR rtl-optimization/77289
9895 * lra-constraints.c (get_final_hard_regno): Add support for non hard
9896 register numbers. Remove support for subregs.
9897 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
9898 (get_reg_class): Delete removed get_final_hard_regno() argument.
9899 (uses_hard_regs_p): Call get_final_hard_regno().
9900
9901 2016-09-09 Martin Sebor <msebor@redhat.com>
9902
9903 PR c/77520
9904 PR c/77521
9905 * pretty-print.c (pp_quoted_string): New function.
9906 (pp_format): Call it for %c and %s directives.
9907
9908 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9909
9910 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
9911 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
9912 INITIAL_ELIMINATION_OFFSET) : Update documentation.
9913 * target.def (frame_pointer_required, can_eliminate): Likewise.
9914 * doc/tm.texi: Regenerated.
9915 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
9916 ELIMINABLE_REGS.
9917 * df-scan.c (df_hard_reg_init): Likewise.
9918 * ira.c (ira_setup_eliminable_regset): Likewise.
9919 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
9920 init_elim_table): Likewise.
9921 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
9922 set_initial_elim_offsets, update_eliminables,
9923 init_elim_table): Likewise.
9924 * rtlanal.c (get_initial_register_offset): Likewise.
9925 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9926 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9927 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9928 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9929 * config/fr30/fr30.h: Fix comment.
9930 * config/frv/frv.c: Likewise.
9931 * config/frv/frv.h: Likewise.
9932 * config/ft32/ft32.h: Likewise.
9933 * config/visium/visium.h: Likewise.
9934 * config/pa/pa64-linux.h: Likewise.
9935 * config/v850/v850.h: Likewise.
9936 * config/cris/cris.c: Likewise.
9937 * config/ia64/ia64.h: Likewise.
9938 * config/moxie/moxie.h: Likewise.
9939 * config/m32r/m32r.h: Likewise.
9940
9941 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9942
9943 PR target/77267
9944 * config.in: Regenerate.
9945 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
9946 New macro.
9947 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
9948 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
9949 static-libmpxwrappers case.
9950 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
9951 MPX_LD_AS_NEEDED_GUARD_POP.
9952 * configure: Regenerate.
9953 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
9954 defined if linker support "--push-state"/"--pop-state".
9955
9956 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9957
9958 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
9959
9960 2016-09-09 Joseph Myers <joseph@codesourcery.com>
9961
9962 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
9963 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
9964 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
9965 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
9966 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
9967 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
9968 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
9969 Document.
9970 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
9971 width macros from TS 18661-1.
9972 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
9973
9974 2016-09-08 Jakub Jelinek <jakub@redhat.com>
9975
9976 PR fortran/77516
9977 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
9978 OMP_CLAUSE_SAFELEN_EXPR.
9979
9980 2016-09-07 David Malcolm <dmalcolm@redhat.com>
9981
9982 * Makefile.in (OBJS): Add substring-locations.o.
9983 * langhooks-def.h (class substring_loc): New forward decl.
9984 (lhd_get_substring_location): New decl.
9985 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
9986 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
9987 * langhooks.c (lhd_get_substring_location): New function.
9988 * langhooks.h (class substring_loc): New forward decl.
9989 (struct lang_hooks): Add field get_substring_location.
9990 * substring-locations.c: New file, taking definition of
9991 format_warning_va and format_warning_at_substring from
9992 c-family/c-format.c, making them non-static.
9993 * substring-locations.h (class substring_loc): Move class here
9994 from c-family/c-common.h. Add and rewrite comments.
9995 (format_warning_va): New decl.
9996 (format_warning_at_substring): New decl.
9997 (get_source_location_for_substring): Add comment.
9998
9999 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
10000
10001 * config/i386/i386.c: Add 'U' suffix to processor feature bits
10002 to avoid -Wnarrowing warning.
10003 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
10004 * opts.c: Likewise for SANITIZER_OPT bitmasks.
10005
10006 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
10007
10008 * config/aarch64/aarch64.c (aarch64_legitimize_address):
10009 Avoid use of base_offset if offset already in range.
10010
10011 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
10012
10013 * config/sh/sh-protos.h (struct sh_atomic_model,
10014 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10015 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10016 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
10017 * config/sh/sh.h (struct sh_atomic_model,
10018 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
10019 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
10020 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
10021 Guard with __cplusplus.
10022
10023 2016-09-06 Jakub Jelinek <jakub@redhat.com>
10024
10025 PR target/69255
10026 * config/i386/i386.c (ix86_expand_builtin): For builtin with
10027 unsupported or unknown ISA, use expand_call.
10028
10029 2016-09-06 Martin Liska <mliska@suse.cz>
10030
10031 PR gcov-profile/77378
10032 PR gcov-profile/77466
10033 * tree-profile.c (tree_profiling): Detect whether target can use
10034 -fprofile-update=atomic.
10035
10036 2016-09-06 Richard Biener <rguenther@suse.de>
10037
10038 PR tree-optimization/77479
10039 * tree-vrp.c (update_value_range): Extend overflow handling to
10040 VARYING.
10041
10042 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10043
10044 PR target/77476
10045 * config/i386/i386.md (isa): Add x64_avx512bw.
10046 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
10047 (kmov_isa): New mode attr.
10048 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
10049 (*zero_extend<mode>si2): Likewise.
10050 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
10051
10052 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
10053
10054 * doc/invoke.texi (SPU Options): nops -> NOPs.
10055 (x86 Options): Ditto.
10056
10057 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10058
10059 PR middle-end/77475
10060 * toplev.c (process_options): Temporarily set input_location
10061 to UNKNOWN_LOCATION around targetm.target_option.override () call.
10062
10063 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
10064
10065 PR rtl-optimization/77452
10066 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
10067 inner-mode reference to a CONST_VECTOR constant in the constant pool.
10068
10069 2016-09-05 Marek Polacek <polacek@redhat.com>
10070
10071 PR c/77423
10072 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
10073
10074 2016-09-05 Jakub Jelinek <jakub@redhat.com>
10075
10076 PR other/77421
10077 * gensupport.c (alter_output_for_subst_insn): Remove redundant
10078 *insn_out == '*' test. Don't copy unnecessary to yet another
10079 memory buffer, and don't leak it.
10080
10081 PR rtl-optimization/77425
10082 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
10083
10084 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
10085
10086 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
10087
10088 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10089
10090 * common.opt (fdiagnostics-generate-patch): New option.
10091 * diagnostic.c: Include "edit-context.h".
10092 (diagnostic_initialize): Initialize context->edit_context_ptr.
10093 (diagnostic_finish): Delete context->edit_context_ptr.
10094 (diagnostic_report_diagnostic): Add fix-it hints from the
10095 diagnostic to context->edit_context_ptr, if any.
10096 * diagnostic.h (class edit_context): Add forward decl.
10097 (struct diagnostic_context): Add field "edit_context_ptr".
10098 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10099 -fdiagnostics-generate-patch.
10100 (-fdiagnostics-generate-patch): New item.
10101 * toplev.c: Include "edit-context.h".
10102 (process_options): Set global_dc->edit_context_ptr to a new
10103 edit_context if the options need one.
10104 (toplev::main): Handle -fdiagnostics-generate-patch by using
10105 global_dc->edit_context_ptr.
10106
10107 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10108
10109 PR c/65467
10110 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
10111 map and firstprivate clauses on target construct for _Atomic
10112 qualified decls.
10113 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
10114 on target construct for _Atomic qualified decls.
10115 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
10116 decls.
10117 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
10118 _Atomic qualified arguments not mentioned in uniform clause.
10119
10120 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10121
10122 * Makefile.in (OBJS-libcommon): Add edit-context.o.
10123 * diagnostic-color.c (color_dict): Add "diff-filename",
10124 "diff-hunk", "diff-delete", and "diff-insert".
10125 (parse_gcc_colors): Update default value of GCC_COLORS in comment
10126 to reflect above changes.
10127 * doc/invoke.texi (-fdiagnostics-color): Update description of
10128 default GCC_COLORS, and of the supported capabilities.
10129 * edit-context.c: New file.
10130 * edit-context.h: New file.
10131 * input.c (struct fcache): Add field "missing_trailing_newline".
10132 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
10133 true.
10134 (add_file_to_cache_tab): Likewise.
10135 (fcache::fcache): Likewise.
10136 (get_next_line): Update c->missing_trailing_newline.
10137 (location_missing_trailing_newline): New function.
10138 * input.h (location_missing_trailing_newline): New decl.
10139 * selftest-run-tests.c (selftest::run_tests): Call
10140 edit_context_c_tests.
10141 * selftest.h (edit_context_c_tests): New decl.
10142
10143 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10144 Richard Biener <rguenth@suse.de>
10145
10146 PR tree-optimization/77444
10147 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
10148 as steptype, remove redundant initialization.
10149
10150 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10151
10152 PR sanitizer/77396
10153 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
10154 (sanopt_optimize_walker): Optimize away
10155 __asan_before_dynamic_init (...) followed by
10156 __asan_after_dynamic_init () without intervening memory loads/stores.
10157 * ipa-pure-const.c (special_builtin_state): Handle
10158 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
10159 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
10160
10161 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10162
10163 * cfg.c (free_original_copy_tables): Replace second assignment of
10164 bb_copy = NULL by bb_original = NULL.
10165
10166 2016-09-02 Jakub Jelinek <jakub@redhat.com>
10167
10168 PR other/77421
10169 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
10170 assignment added in r216794.
10171
10172 2016-09-02 David Malcolm <dmalcolm@redhat.com>
10173
10174 * Makefile.in (OBJS): Add typed-splay-tree.o.
10175 * selftest-run-tests.c (selftest::run_tests): Call
10176 typed_splay_tree_c_tests.
10177 * selftest.h (typed_splay_tree_c_tests): New decl.
10178 * typed-splay-tree.c: New file.
10179 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
10180 (typed_splay_tree::max): New method.
10181 (typed_splay_tree::min): New method.
10182 (typed_splay_tree::foreach): New method.
10183 (typed_splay_tree::closure): New struct.
10184 (typed_splay_tree::inner_foreach_fn): New function.
10185
10186 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10187
10188 * ipa-cp.c (ipcp_store_bits_results): Change option name from
10189 -fipa-cp-bit to -fipa-bit-cp.
10190
10191 2016-09-01 Martin Sebor <msebor@redhat.com>
10192
10193 PR tree-optimization/71831
10194 * tree-object-size.h: Return bool instead of the size and add
10195 argument for the size.
10196 * tree-object-size.c (compute_object_offset): Update signature.
10197 (addr_object_size): Same.
10198 (compute_builtin_object_size): Return bool instead of the size
10199 and add argument for the size. Handle POINTER_PLUS_EXPR when
10200 optimization is disabled.
10201 (expr_object_size): Adjust.
10202 (plus_stmt_object_size): Adjust.
10203 (pass_object_sizes::execute): Adjust.
10204 * builtins.c (fold_builtin_object_size): Adjust.
10205 * doc/extend.texi (Object Size Checking): Update.
10206 * ubsan.c (instrument_object_size): Adjust.
10207
10208 2016-09-01 Martin Sebor <msebor@redhat.com>
10209
10210 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
10211 it fits the output of the formatted function regardless of its
10212 arguments.
10213 * genmodes.c (parser::parse_expr): Same.
10214 * gimplify.c (gimplify_asm_expr): Same.
10215 * passes.c (pass_manager::register_one_dump_file): Same.
10216 * print-tree.c (print_node): Same.
10217
10218 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10219
10220 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
10221
10222 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10223
10224 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
10225
10226 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10227
10228 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
10229 * config/rs6000/vector.md: Ditto.
10230 * config/rs6000/vsx.md: Ditto.
10231
10232 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10233
10234 * ipa-inline-analysis.c (param_change_prob): Get to the base object
10235 first in all cases.
10236
10237 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10238
10239 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
10240 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
10241 *return_and_restore_gpregs_<mode>_r11,
10242 *return_and_restore_gpregs_<mode>_r12,
10243 *return_and_restore_gpregs_<mode>_r1,
10244 *return_and_restore_fpregs_<mode>_r11,
10245 *return_and_restore_fpregs_<mode>_r12,
10246 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
10247 directly instead of via the "l" constraint. Renumber operands.
10248 Fix whitespace.
10249
10250 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10251
10252 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
10253 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
10254 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
10255 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
10256 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
10257 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
10258 *call_value_nonlocal_darwin64, reload_macho_picbase,
10259 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
10260 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
10261 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
10262 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
10263 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
10264 *save_fpregs_<mode>_r1): Ditto.
10265 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
10266 *return_and_restore_gpregs_spe): Ditto.
10267
10268 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
10269
10270 * config/rs6000/rs6000.md
10271 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
10272 the use of the link register.
10273 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
10274
10275 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10276 Michael Meissner <meissner@linux.vnet.ibm.com>
10277
10278 PR target/72827
10279 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
10280 reg+reg addressing for TImode.
10281 (rs6000_legitimate_address_p): Only allow register indirect
10282 addressing for TImode, even without TARGET_QUAD_MEMORY.
10283
10284 2016-09-01 Richard Biener <rguenther@suse.de>
10285
10286 PR middle-end/77436
10287 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
10288 check whether the result fits the desired result type.
10289
10290 2016-09-01 Nathan Sidwell <nathan@acm.org>
10291
10292 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
10293
10294 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
10295
10296 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
10297 New function.
10298 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
10299
10300 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10301
10302 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
10303 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
10304 for comparisons of integer ZERO_EXTEND against zero.
10305
10306 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
10307
10308 * config/i386/i386.c (ix86_option_override_internal): Also disable the
10309 STV pass if -mstackrealign is enabled.
10310
10311 2016-08-31 Ilya Verbin <iverbin@gmail.com>
10312
10313 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
10314 AVX512IFMA.
10315
10316 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10317
10318 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
10319 (layout_range::intersects_line_p): New method.
10320 (test_range_contains_point_for_single_point): Rename to...
10321 (test_layout_range_for_single_point): ...this, and add testing
10322 for layout_range::intersects_line_p.
10323 (test_range_contains_point_for_single_line): Rename to...
10324 (test_layout_range_for_single_line): ...this, and add testing
10325 for layout_range::intersects_line_p.
10326 (test_range_contains_point_for_multiple_lines): Rename to...
10327 (test_layout_range_for_multiple_lines): ...this, and add testing
10328 for layout_range::intersects_line_p.
10329 (layout::layout): Populate m_fixit_hints.
10330 (layout::get_expanded_location): Handle the case of a line-span
10331 for a fix-it hint.
10332 (layout::validate_fixit_hint_p): New method.
10333 (get_line_span_for_fixit_hint): New function.
10334 (layout::calculate_line_spans): Add spans for fixit-hints.
10335 (layout::should_print_annotation_line_p): New method.
10336 (layout::print_any_fixits): Drop param "richloc", instead using
10337 validated fixits in m_fixit_hints. Add "const" to hint pointers.
10338 (diagnostic_show_locus): Avoid printing blank annotation lines.
10339 (selftest::test_diagnostic_context::test_diagnostic_context):
10340 Initialize show_column and start_span.
10341 (selftest::test_diagnostic_context::start_span_cb): New static
10342 function.
10343 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
10344 (selftest::diagnostic_show_locus_c_tests): Update for function
10345 renamings. Call test_diagnostic_show_locus_fixit_lines.
10346
10347 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10348
10349 PR tree-optimization/73714
10350 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
10351
10352 2016-08-31 David Malcolm <dmalcolm@redhat.com>
10353
10354 * selftest.c: Move "namespace selftest {" to top of file,
10355 removing explicit "selftest::" qualifiers throughout.
10356
10357 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
10358
10359 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
10360 New types.
10361 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
10362 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
10363 Replace builtin with vector extension.
10364 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
10365 New types.
10366 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
10367 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
10368 Replace builtin with vector extension.
10369 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
10370 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
10371 Replace builtin with vector extension.
10372 * config/i386/xmmintrin.h (__m128_u): New type.
10373 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
10374 (_mm_load_ps, _mm_store_ps): Simplify.
10375
10376 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
10377
10378 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
10379
10380 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10381
10382 * diagnostic-show-locus.c (colorizer::begin_state): Support more
10383 than 3 ranges per diagnostic by alternating between color 1 and
10384 color 2.
10385 (layout::layout): Replace use of rich_location::MAX_RANGES
10386 with richloc->get_num_locations ().
10387 (layout::calculate_line_spans): Replace use of
10388 rich_location::MAX_RANGES with m_layout_ranges.length ().
10389 (layout::print_annotation_line): Handle arbitrary numbers of
10390 ranges in caret-printing by defaulting to '^'.
10391 (selftest::test_one_liner_many_fixits): New function.
10392 (test_diagnostic_show_locus_one_liner): Call it.
10393 * diagnostic.c (diagnostic_initialize): Update for renaming
10394 of rich_location::MAX_RANGES to
10395 rich_location::STATICALLY_ALLOCATED_RANGES.
10396 * diagnostic.h (struct diagnostic_context): Likewise.
10397
10398 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10399
10400 * selftest.c (selftest::named_temp_file::named_temp_file): New
10401 ctor.
10402 (selftest::temp_source_file::~temp_source_file): Move to...
10403 (selftest::named_temp_file::~named_temp_file): ...here.
10404 (selftest::test_named_temp_file): New function.
10405 (selftest::selftest_c_tests): Call test_named_temp_file.
10406 * selftest.h (class named_temp_file): New class.
10407 (class temp_source_file): Convert to a subclass of named_temp_file.
10408
10409 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
10410
10411 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
10412 USEs of LR_REGNO in returns and sibcalls.
10413 (rs6000_output_mi_thunk): Similar.
10414 (rs6000_sibcall_aix): Similar.
10415 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
10416 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
10417 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
10418 Remove the USE of LR_REGNO from the patterns as well. Delete an
10419 obsolete comment.
10420 (return_internal_<mode>): Delete.
10421
10422 2016-08-30 Tamar Christina <tamar.christina@arm.com>
10423
10424 * config/aarch64/aarch64-simd.md
10425 (aarch64_ld2<mode>_dreg_le): New.
10426 (aarch64_ld2<mode>_dreg_be): New.
10427 (aarch64_ld2<mode>_dreg): Removed.
10428 (aarch64_ld3<mode>_dreg_le): New.
10429 (aarch64_ld3<mode>_dreg_be): New.
10430 (aarch64_ld3<mode>_dreg): Removed.
10431 (aarch64_ld4<mode>_dreg_le): New.
10432 (aarch64_ld4<mode>_dreg_be): New.
10433 (aarch64_ld4<mode>_dreg): Removed.
10434 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
10435
10436 2016-08-30 David Malcolm <dmalcolm@redhat.com>
10437
10438 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
10439 redundant location param.
10440 (test_one_liner_fixit_remove): Likewise.
10441 (test_one_liner_fixit_replace): Likewise.
10442 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
10443 * gcc-rich-location.c
10444 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
10445 get_range_from_loc. Drop overload taking a const char *.
10446 * gcc-rich-location.h
10447 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
10448 a const char *.
10449
10450 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10451
10452 * config/linux.c (linux_libc_has_function): Return true on musl.
10453
10454 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
10455
10456 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
10457
10458 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
10459
10460 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
10461 used for abnormal egdes.
10462
10463 2016-08-30 Jakub Jelinek <jakub@redhat.com>
10464
10465 PR tree-optimization/72866
10466 * tree-vect-patterns.c (search_type_for_mask): Turn into
10467 a small wrapper, move all code to ...
10468 (search_type_for_mask_1): ... this new function. Add caching
10469 and adjust recursive calls.
10470
10471 PR debug/77363
10472 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
10473 instead of lookup_type_die (type_main_variant (type)) even for array
10474 types.
10475
10476 PR middle-end/77377
10477 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
10478 constant pool reference return x instead of c.
10479
10480 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
10481
10482 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
10483 include MQ.
10484
10485 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10486
10487 * input.c
10488 (selftest::test_make_location_nonpure_range_endpoints): Fix
10489 header comment.
10490
10491 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10492
10493 * diagnostic-show-locus.c
10494 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
10495 function.
10496 (selftest::test_diagnostic_show_locus_one_liner): Call it.
10497 * input.c (get_pure_location): Move to libcpp/line-map.c.
10498 * input.h (get_pure_location): Convert decl to an inline function
10499 calling implementation in libcpp.
10500
10501 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
10502
10503 PR target/77403
10504 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
10505 template for intel asm dialect.
10506 (vec_set_hi_<mode><mask_name>): Ditto.
10507
10508 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10509
10510 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
10511 (selftest::fail_formatted): Likewise.
10512
10513 2016-08-29 David Malcolm <dmalcolm@redhat.com>
10514
10515 * input.c (make_location): Call get_start and get_finish
10516 on the endpoints to avoid storing packed ranges or ad-hoc
10517 ranges in them.
10518 (selftest::test_make_location_nonpure_range_endpoints): New function.
10519 (selftest::input_c_tests): Call it.
10520 * input.h (get_start): New inline function.
10521
10522 2016-08-29 Tom de Vries <tom@codesourcery.com>
10523
10524 PR c/77398
10525 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
10526 with assert.
10527
10528 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
10529
10530 * Makefile.in (gcov-iov.h): Add dummy recipe.
10531
10532 2016-08-29 Nathan Sidwell <nathan@acm.org>
10533
10534 * config/nvptx/nvptx.c: #include tree-vrp.h.
10535
10536 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
10537
10538 PR target/77324
10539 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
10540 HIGH+LO construct during reload.
10541
10542 2016-08-28 Tom de Vries <tom@codesourcery.com>
10543
10544 PR lto/70955
10545 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
10546 'sysv_abi va_list' attribute.
10547 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
10548 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
10549 attributes.
10550
10551 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10552
10553 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
10554 * emit-rtl.c (unshare_all_rtl_1): Adjust.
10555 (unshare_all_rtl_again): Likewise.
10556 * function.c (assign_stack_local_1): Likewise.
10557 (assign_stack_temp_for_type): Likewise.
10558
10559 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10560
10561 * cfgbuild.c (make_edges): Adjust.
10562 * cfgrtl.c (can_delete_label_p): Likewise.
10563 * dwarf2cfi.c (create_trace_edges): Likewise.
10564 * except.c (sjlj_emit_dispatch_table): Likewise.
10565 * function.h (struct expr_status): make x_forced_labels a vector.
10566 * jump.c (rebuild_jump_labels_1): Adjust.
10567 * reload1.c (set_initial_label_offsets): Likewise.
10568 * stmt.c (force_label_rtx): Likewise.
10569 (expand_label): Likewise.
10570
10571 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10572
10573 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
10574
10575 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
10576
10577 PR tree-optimization/71077
10578 PR tree-optimization/68542
10579 * fold-const.c (fold_relational_const): Fix folding of
10580 VECTOR_CST comparisons that have a scalar boolean result type.
10581 (selftest::test_vector_folding): New static function.
10582 (selftest::fold_const_c_tests): Call it.
10583
10584 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
10585
10586 * doc/extend.texi (SPU Built-in Functions): Remove stale
10587 references to material formerly at IBM and Sony.
10588
10589 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
10590
10591 PR target/77349
10592 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
10593
10594 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10595
10596 * diagnostic-show-locus.c
10597 (selftest::test_fixit_consolidation): New function.
10598 (selftest::diagnostic_show_locus_c_tests): Call it.
10599 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
10600 constructor based on source_range.
10601
10602 2016-08-26 David Malcolm <dmalcolm@redhat.com>
10603
10604 * diagnostic-color.c (color_dict): Add "fixit-insert" and
10605 "fixit-delete".
10606 (parse_gcc_colors): Update description of default GCC_COLORS.
10607 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
10608 (colorizer::set_fixit_insert): New method.
10609 (colorizer::set_fixit_delete): New method.
10610 (colorizer::get_color_by_name): New method.
10611 (colorizer::STATE_FIXIT_INSERT): New constant.
10612 (colorizer::STATE_FIXIT_DELETE): New constant.
10613 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
10614 fields in favor of new field "m_stop_color". Add fields
10615 "m_fixit_insert" and "m_fixit_delete".
10616 (colorizer::colorizer): Update for above changes. Replace
10617 colorize_start calls with calls to get_color_by_name.
10618 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
10619 STATE_FIXIT_DELETE. Update for field renamings.
10620 (colorizer::finish_state): Simplify by using m_stop_color,
10621 rather than multiple identical "*_ce" fields.
10622 (colorizer::get_color_by_name): New method.
10623 (layout::print_any_fixits): Print insertions and replacements
10624 using the "fixit-insert" color, and deletions using the
10625 "fixit-delete" color.
10626 * doc/invoke.texi (-fdiagnostics-color): Update description of
10627 default GCC_COLORS, and of the supported capabilities.
10628
10629 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
10630
10631 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
10632 current_function_static_stack_size variable with the static
10633 stack frame size of the current function when
10634 flag_stack_usage_info is enabled.
10635
10636 2016-08-26 Nathan Sidwell <nathan@acm.org>
10637
10638 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
10639 assignment inside if condition.
10640
10641 2016-08-26 Richard Biener <rguenther@suse.de>
10642
10643 PR tree-optimization/69047
10644 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
10645 extracts similar to what FRE does.
10646 (non_rewritable_mem_ref_base): Likewise.
10647
10648 2016-08-26 Joseph Myers <joseph@codesourcery.com>
10649
10650 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
10651 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10652 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10653 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10654 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
10655 Likewise.
10656 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10657 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10658 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10659 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
10660 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
10661
10662 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10663
10664 PR target/70473
10665 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
10666 reservation duration to 15 cycles.
10667 (cortex_a8_vfp_macs): Likewise.
10668 (cortex_a8_vfp_macd): Likewise.
10669 (cortex_a8_vfp_divs): Likewise.
10670 (cortex_a8_vfp_divd): Likewise.
10671
10672 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10673
10674 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
10675 (aarch_macro_fusion_pair_p): Use above to avoid early return.
10676
10677 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10678 Martin Jambhor <mjambor@suse.cz>
10679
10680 * common.opt: New option -fipa-bit-cp.
10681 * doc/invoke.texi: Document -fipa-bit-cp.
10682 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
10683 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
10684 * tree-ssa-ccp.h: New header file.
10685 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
10686 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
10687 Replace all occurences of tree parameter by two new params: signop, int.
10688 (bit_value_unop_1): Change to bit_value_unop and export it.
10689 Replace all occurences of tree parameter by two new params: signop,
10690 int.
10691 (bit_value_binop): Change call from bit_value_binop_1 to
10692 bit_value_binop.
10693 (bit_value_assume_aligned): Likewise.
10694 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
10695 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
10696 to ccp_finalize.
10697 (ccp_finalize): Skip processing if val->mask == 0.
10698 * ipa-cp.c: Include tree-ssa-ccp.h
10699 (ipcp_bits_lattice): New class.
10700 (ipcp_param_lattice (bits_lattice): New member.
10701 (print_all_lattices): Call ipcp_bits_lattice::print.
10702 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
10703 (initialize_node_lattices): Likewise.
10704 (propagate_bits_accross_jump_function): New function.
10705 (propagate_constants_accross_call): Call
10706 propagate_bits_accross_jump_function.
10707 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
10708 (ipcp_store_bits_results): New function.
10709 (ipcp_driver): Call ipcp_store_bits_results.
10710 * ipa-prop.h (ipa_bits): New struct.
10711 (ipa_jump_func): Add new member bits of type ipa_bits.
10712 (ipa_param_descriptor): Change decl to decl_or_type.
10713 (ipa_get_param): Change decl to decl_or_type and assert on
10714 PARM_DECL.
10715 (ipa_get_type): New function.
10716 (ipcp_transformation_summary): New member bits.
10717 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
10718 (ipa_populate_param_decls): Likewise.
10719 (ipa_dump_param): Likewise.
10720 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
10721 function.
10722 (ipa_set_jf_unknown): Set ipa_bits::known to false.
10723 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
10724 propagation.
10725 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
10726 (ipa_write_jump_function): Add streaming for ipa_bits.
10727 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
10728 (write_ipcp_transformation_info): Add streaming for ipa_bits
10729 summary for ltrans.
10730 (read_ipcp_transfomration_info): Add support for reading streamed
10731 ipa_bits.
10732 (ipcp_update_bits): New function.
10733 (ipcp_transform_function): Call ipcp_update_bits.
10734
10735 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
10736
10737 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
10738 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
10739
10740 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
10741
10742 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
10743
10744 2016-08-25 Richard Biener <rguenther@suse.de>
10745
10746 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10747 Only add locations in late dwarf.
10748 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
10749 (dwarf2out_early_finish): But do it here.
10750
10751 2016-08-24 Michael Collison <michael.collison@linaro.org>
10752 Michael Collison <michael.collison@arm.com>
10753
10754 * config/arm/arm-modes.def: Add new condition code mode CC_V
10755 to represent the overflow bit.
10756 * config/arm/arm.c (maybe_get_arm_condition_code):
10757 Add support for CC_Vmode.
10758 (arm_gen_unlikely_cbranch): New function to generate common
10759 rtl conditional branches for overflow patterns.
10760 * config/arm/arm-protos.h: Add prototype for
10761 arm_gen_unlikely_cbranch.
10762 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
10763 addsi3_compareV_upper): New patterns to support signed
10764 builtin overflow add operations.
10765 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
10766 New patterns to support unsigned builtin add overflow operations.
10767 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
10768 builtin overflow subtract operations,
10769 (usubv<mode>4): New patterns to support unsigned builtin subtract
10770 overflow operations.
10771 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
10772 to support builtin overflow negate operations.
10773
10774 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10775
10776 Revert
10777 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10778
10779 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10780 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10781 needed.
10782
10783 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10784
10785 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
10786 MULTILIB_OPTIONS should be used. Small wording fixes.
10787 * genmultilib: Memorize set of all option combinations in
10788 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
10789 found in MULTILIB_OPTIONS by checking if option set is listed in
10790 combination_space. Output new and existing error message to stderr.
10791
10792 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
10793
10794 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
10795 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
10796 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
10797 (MULTILIB_REUSE): Remove reuse rules for option set including
10798 -mfpu=fp-armv8 and -mfpu=vfpv4
10799
10800 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
10801
10802 * config/arm/t-rtems: Add vfp multilib.
10803
10804 2016-08-23 Ian Lance Taylor <iant@golang.org>
10805
10806 * config/s390/s390.c (s390_asm_file_start): Call
10807 default_file_start.
10808
10809 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10810
10811 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
10812 initialization of all 0's to the 0 constant, instead of directly
10813 generating XOR. Add support for V4SImode vector initialization on
10814 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
10815 initialization. Change variables used in V4SFmode vector
10816 intialization. For V4SFmode vector splat on ISA 3.0, make sure
10817 any memory addresses are in index form. Add support for using
10818 VSPLTH/VSPLTB to initialize vector short and vector char vectors
10819 with all of the same element.
10820 (regno_or_subregno): New helper function to return a register
10821 number for either REG or SUBREG.
10822 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
10823 Use regno_or_subregno where possible.
10824 (rs6000_split_v4si_init_di_reg): New helper function to build up a
10825 DImode value from two SImode values in order to generate V4SImode
10826 vector initialization on 64-bit systems with direct move.
10827 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
10828 initialization.
10829 (rtx_is_swappable_p): V4SImode vector initialization insn is not
10830 swappable.
10831 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
10832 declaration.
10833 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
10834 attributes to initialize V8HImode and V16QImode vectors with the
10835 same element.
10836 (VSX_SPLAT_COUNT): Likewise.
10837 (VSX_SPLAT_SUFFIX): Likewise.
10838 (UNSPEC_VSX_VEC_INIT): New unspec.
10839 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
10840 Allow SFmode values to come from Altivec registers.
10841 (vsx_init_v4si): New insn/split for V4SImode vector initialization
10842 on 64-bit systems with direct move.
10843 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
10844 vector initializations, to allow V4SImode vector initializations
10845 on 64-bit systems with direct move.
10846 (vsx_splat_v4si): Likewise.
10847 (vsx_splat_v4si_di): Likewise.
10848 (vsx_splat_v4sf): Likewise.
10849 (vsx_splat_v4sf_internal): Likewise.
10850 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
10851 register classes.
10852 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
10853 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
10854 initializing V8HImode and V16QImode vectors with the same
10855 element.
10856 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
10857 optimization if -maltivec=be.
10858
10859 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
10860
10861 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
10862 attribute for alternatives 3 and 4.
10863
10864 2016-08-23 David Malcolm <dmalcolm@redhat.com>
10865
10866 * selftest.c (selftest::assert_str_contains): New function.
10867 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
10868 * selftest.h (selftest::assert_str_contains): New decl.
10869 (ASSERT_STR_CONTAINS): New macro.
10870
10871 2016-08-23 Richard Biener <rguenther@suse.de>
10872
10873 PR tree-optimization/77286
10874 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
10875 the CFG here.
10876 (vect_transform_loop): Split exit edges of loop and scalar
10877 loop if required and at the appropriate time.
10878
10879 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10880
10881 * explow.c (get_dynamic_stack_size): Take known alignment of stack
10882 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
10883 needed.
10884 Correct a typo in a comment.
10885
10886 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10887
10888 * config/s390/s390.md ("*andc_split"): New splitter for and with
10889 complement.
10890
10891 2016-08-23 Richard Biener <rguenther@suse.de>
10892
10893 PR tree-optimization/27336
10894 * tree-vrp.c (infer_value_range): Handle stmts that can throw
10895 by looking for a non-EH edge.
10896 (process_assert_insertions_for): Likewise.
10897
10898 2016-08-23 Richard Biener <rguenther@suse.de>
10899
10900 PR middle-end/77305
10901 * statistics.c (statistics_counter_event): Robustify against
10902 NULL current_pass.
10903
10904 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10905
10906 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10907 for targets amdfam10 and barcelona.
10908
10909 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
10910
10911 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
10912 (zero_extend<mode>di2): Ditto.
10913 (*zero_extend<mode>si2): Ditto.
10914 (*zero_extendqihi2): Ditto.
10915
10916 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10917
10918 PR middle-end/77269
10919 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
10920 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
10921
10922 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
10923
10924 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
10925 identical consecutive elements.
10926 [SSA_NAME]: Print the name's def stmt on its own line. When printing
10927 the node's def stmt, avoid printing an unwanted trailing newline by
10928 replacing the call to print_gimple_stmt() with its inlined body and
10929 adjusting it to not set pp_needs_newline and to call pp_flush()
10930 instead of pp_newline_and_flush().
10931
10932 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10933
10934 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
10935 (float32_type_node, float64_type_node, float32x_type_node)
10936 (float128x_type_node): New macros.
10937 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
10938 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
10939 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
10940 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
10941 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
10942 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
10943 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
10944 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
10945 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
10946 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
10947 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
10948 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
10949 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
10950 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
10951 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
10952 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
10953 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
10954 (copysign, fabs, huge_val, inf, nan, nans): Use it.
10955 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
10956 and copysign.
10957 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
10958 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
10959 * doc/extend.texi (Other Builtins): Document these built-in
10960 functions.
10961 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
10962 for nan and nans.
10963
10964 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
10965
10966 * doc/install.texi (Binaries): www.opencsw.org now uses https.
10967
10968 2016-08-22 Richard Biener <rguenther@suse.de>
10969
10970 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
10971
10972 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
10973
10974 PR target/77270
10975 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
10976 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
10977 non-SSE2 athlons only, otherwise prefer SSE prefetches.
10978
10979 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10980
10981 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
10982 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
10983 (vrp_visit_switch_stmt): Likewise.
10984 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
10985 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
10986 (vrp_visit_stmt): Use extract_range_from_stmt.
10987 (vrp_visit_phi_node): Use extract_range_from_phi_node.
10988
10989 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10990
10991 * Makefile.in: Add tree-vrp.h to GTFILES.
10992 * gengtype.c (open_base_files): Add tree-vrp.h.
10993 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
10994 * builtins.c: Likewise.
10995 * fold-const.c: Likewise.
10996 * gimple-builder.c: Likewise.
10997 * gimple-laddress.c: Likewise.
10998 * hsa-gen.c: Likewise.
10999 * internal-fn.c: Likewise.
11000 * ssa.h: Likewise.
11001 * targhooks.c: Liewise,
11002 * tree-ssa-address.c: Likewise.
11003 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
11004 * tree-vrp.c (struct value_range): Move to tree-vrp.h
11005 * tree-vrp.h: New file.
11006
11007 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11008
11009 PR tree-optimization/61839
11010 * tree-vrp.c (two_valued_val_range_p): New.
11011 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
11012 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
11013 Also Convert VAR BINOP CST where VAR is two-valued to
11014 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
11015
11016 2016-08-19 David Malcolm <dmalcolm@redhat.com>
11017
11018 * diagnostic-show-locus.c
11019 (layout::annotation_line_showed_range_p): New method.
11020 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
11021 Reimplement case fixit_hint::REPLACE to cover removals, and
11022 replacements where the range of the replacement isn't one
11023 of the ranges in the rich_location.
11024 (test_one_liner_fixit_replace): Likewise.
11025 (selftest::test_one_liner_fixit_replace_non_equal_range): New
11026 function.
11027 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
11028 New function.
11029 (selftest::test_diagnostic_show_locus_one_liner): Call the new
11030 functions.
11031 * diagnostic.c (print_parseable_fixits): Remove case
11032 fixit_hint::REMOVE.
11033
11034 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
11035
11036 PR target/77270
11037 * config/i386/i386.c (ix86_option_override_internal): Remove
11038 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
11039 Enable SSE prefetch also for TARGET_PREFETCHWT1.
11040 Do not try to enable TARGET_PRFCHW ISA flag here.
11041 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
11042 Rewrite expander function body.
11043 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
11044
11045 2016-08-19 Joseph Myers <joseph@codesourcery.com>
11046
11047 PR c/32187
11048 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
11049 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
11050 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
11051 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
11052 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
11053 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
11054 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
11055 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
11056 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
11057 tree_index values.
11058 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
11059 macros.
11060 (struct floatn_type_info): New structure type.
11061 (floatn_nx_types): New variable declaration.
11062 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
11063 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
11064 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
11065 * tree.c (floatn_nx_types): New variable.
11066 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
11067 corresponding complex types.
11068 * target.def (floatn_mode): New hook.
11069 * targhooks.c: Include "real.h".
11070 (default_floatn_mode): New function.
11071 * targhooks.h (default_floatn_mode): New prototype.
11072 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
11073 types.
11074 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
11075 effective-target and dg-add-options keywords.
11076 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
11077 Document new effective-target keywords.
11078 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
11079 * doc/tm.texi: Regenerate.
11080 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
11081 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
11082 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
11083 18661-3.
11084 * real.h (struct real_format): Add field ieee_bits.
11085 * real.c (ieee_single_format, mips_single_format)
11086 (motorola_single_format, spu_single_format, ieee_double_format)
11087 (mips_double_format, motorola_double_format)
11088 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
11089 (ieee_extended_intel_128_format)
11090 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
11091 (mips_extended_format, ieee_quad_format, mips_quad_format)
11092 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
11093 (decimal_double_format, decimal_quad_format, ieee_half_format)
11094 (arm_half_format, real_internal_format: Initialize ieee_bits
11095 field.
11096 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
11097 float128_type_node. Set float80_type_node to float64x_type_node
11098 if appropriate and long_double_type_node not appropriate.
11099 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
11100 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
11101 Initialize ieee_bits field.
11102 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
11103 (rs6000_init_builtins): Set ieee128_float_type_node to
11104 float128_type_node.
11105 (rs6000_floatn_mode): New function.
11106
11107 2016-08-19 Jakub Jelinek <jakub@redhat.com>
11108
11109 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
11110 _rdseed64_step): Uglify argument names and/or local variable names
11111 in inline functions.
11112 * config/i386/rtmintrin.h (_xabort): Likewise.
11113 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
11114 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
11115 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
11116 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
11117 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
11118 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
11119 _mm_maskz_ternarylogic_epi32): Likewise.
11120 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
11121 __lwpins32, __lwpins64): Likewise.
11122 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
11123 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
11124 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
11125 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
11126 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
11127 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
11128 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
11129 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
11130 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
11131 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
11132 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
11133 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
11134 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
11135 _mm256_mask_i64gather_epi32): Likewise.
11136 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11137 * config/i386/ia32intrin.h (__writeeflags): Likewise.
11138 * config/i386/pkuintrin.h (_wrpkru): Likewise.
11139 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
11140 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
11141 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
11142 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
11143 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
11144 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
11145 _mm512_mask_prefetch_i64scatter_ps): Likewise.
11146 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
11147 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
11148 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
11149 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
11150 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
11151 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
11152 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
11153 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
11154
11155 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
11156 returning void.
11157 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
11158 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
11159 Likewise.
11160 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
11161 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
11162 function name.
11163 (_rdpkru_u32): Add space after function name.
11164
11165 * config/i386/t-i386 (i386-c.o): Don't depend on
11166 i386-builtin-types.inc.
11167 (i386.o): Depend on i386-builtin-types.inc.
11168
11169 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
11170
11171 PR target/77281
11172 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
11173 Use const_vec_duplicate to check for duplicated elements.
11174
11175 2016-08-19 Richard Biener <rguenther@suse.de>
11176
11177 PR tree-optimization/77290
11178 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11179 Fix flag_tree_parallelize_loops check.
11180
11181 2016-08-19 Richard Biener <rguenther@suse.de>
11182
11183 * match.pd (x | 0 -> x): Add.
11184
11185 2016-08-19 Richard Biener <rguenther@suse.de>
11186
11187 PR tree-optimization/77286
11188 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11189 Deal with virtual PHIs being out-of-order.
11190
11191 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11192
11193 * doc/invoke.texi (fverbose-asm): Note that source code lines
11194 are emitted, and provide an example.
11195 * final.c (asm_show_source): New function.
11196 (final_scan_insn): Call asm_show_source.
11197
11198 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11199
11200 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
11201 param with diagnostic_kind.
11202 (class colorizer): Similarly replace field m_diagnostic with
11203 m_diagnostic_kind.
11204 (colorizer::colorizer): Replace diagnostic
11205 param with diagnostic_kind.
11206 (colorizer::begin_state): Update for above field change.
11207 (layout::layout): Replace diagnostic param with rich_location *
11208 and diagnostic_kind.
11209 (diagnostic_show_locus): Replace diagnostic param with richloc
11210 and diagnostic_kind.
11211 (class selftest::test_diagnostic_context): New class.
11212 (selftest::test_diagnostic_show_locus_unknown_location): New
11213 function.
11214 (selftest::test_one_liner_simple_caret): New function.
11215 (selftest::test_one_liner_caret_and_range): New function.
11216 (selftest::test_one_liner_multiple_carets_and_ranges): New
11217 function.
11218 (selftest::test_one_liner_fixit_remove): New function.
11219 (selftest::test_one_liner_fixit_replace): New function.
11220 (selftest::test_diagnostic_show_locus_one_liner): New function.
11221 (selftest::diagnostic_show_locus_c_tests): Call the new test
11222 functions.
11223 * diagnostic.c (diagnostic_initialize): Initialize
11224 colorize_source_p, show_ruler_p and parseable_fixits_p.
11225 (default_diagnostic_finalizer): Update for change to
11226 diagnostic_show_locus.
11227 (diagnostic_append_note): Likewise.
11228 * diagnostic.h (diagnostic_show_locus): Replace
11229 const diagnostic_info * param with location * and diagnostic_t.
11230
11231 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11232
11233 * input.c (saved_line_table): New global.
11234 (class selftest::temp_line_table): Rename to line_table_test and
11235 move declaration to selftest.h, and drop field m_old_line_table.
11236 (selftest::temp_line_table::temp_line_table): Rename ctor to...
11237 (selftest::line_table_test::line_table_test): ...this. Add a
11238 default ctor. Store current value of line_table within
11239 saved_line_table.
11240 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
11241 (selftest::line_table_test::~line_table_test): ...this, and
11242 restore line_table from the saved_line_table, rather than
11243 m_old_line_table.
11244 (selftest::test_accessing_ordinary_linemaps): Update for above
11245 renaming.
11246 (selftest::test_lexer): Likewise.
11247 (struct selftest::lexer_test): Likewise.
11248 (selftest::lexer_test::lexer_test): Likewise.
11249 (selftest::input_c_tests): Move the looping over test cases from
11250 here into...
11251 (selftest::for_each_line_table_case): New function.
11252 * input.h (saved_line_table): New decl.
11253 * selftest.h (struct selftest::line_table_case): New forward decl.
11254 (class selftest::line_table_test): New class, moved here from
11255 selftest::temp_line_table in input.c, and renamed.
11256 (selftest::for_each_line_table_case): New decl.
11257
11258 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
11259
11260 PR target/72839
11261 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
11262
11263 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11264
11265 PR middle-end/70895
11266 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
11267 enclosing parallel construct for reduction variables on OpenACC loop
11268 directives.
11269
11270 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
11271
11272 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
11273 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
11274 -gdwarf-3.
11275 (function_to_dwarf_procedure): Update comment.
11276
11277 2016-08-18 David Malcolm <dmalcolm@redhat.com>
11278
11279 * input.c (diagnostics_file_cache_forcibly_evict_file): New
11280 function.
11281 * input.h (diagnostics_file_cache_forcibly_evict_file): New
11282 declaration.
11283 * selftest.c (selftest::temp_source_file::~temp_source_file):
11284 Evict m_filename from the diagnostic file cache.
11285
11286 2016-08-18 Richard Biener <rguenther@suse.de>
11287
11288 * tree-pass.h (make_pass_materialize_all_clones): Declare.
11289 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
11290 make_pass_materialize_all_clones): New simple IPA pass encapsulating
11291 clone materialization.
11292 * passes.def (all_late_ipa_passes): Start with
11293 pass_materialize_all_clones.
11294 * cgraphunit.c (symbol_table::compile): Remove call to
11295 materialize_all_clones.
11296 * tree-into-ssa.c: Include statistics.h.
11297 (update_ssa): Count number of times we do incremental/rewrite
11298 SSA update.
11299
11300 2016-08-18 Richard Biener <rguenther@suse.de>
11301
11302 PR tree-optimization/77282
11303 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11304 When doing auto-parallelizing also prevent use of PHIs that
11305 carry dependences across loop backedges.
11306
11307 2016-08-18 Tamar Christina <tamar.christina@arm.com>
11308 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11309
11310 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
11311
11312 2016-08-18 Richard Biener <rguenther@suse.de>
11313
11314 * ssa-iterators.h (ssa_vuse_operand): New inline.
11315 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
11316 (predicate_all_scalar_phis): Use remove_phi_node to remove
11317 phi nodes predicated. Delay removing virtual PHIs.
11318 (predicate_mem_writes): Update virtual operands.
11319 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
11320 (tree_if_conversion): Do not rewrite virtual SSA form.
11321 * tree-phinodes.c (release_phi_node): Make static.
11322 * tree-phinodes.h (release_phi_node): Remove.
11323
11324 2016-08-18 Jakub Jelinek <jakub@redhat.com>
11325
11326 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
11327 codes that appear in bdesc_* arrays, instead include i386-builtin.def
11328 twice to define those.
11329 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
11330 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
11331 bdesc_multi_arg): Define by including i386-builtin.def the third time.
11332 * config/i386/i386-builtin.def: New file.
11333
11334 2016-08-17 David Malcolm <dmalcolm@redhat.com>
11335
11336 * input.c (get_source_range_for_char): Rename to...
11337 (selftest::get_source_range_for_char): ...this, and move within
11338 the #if CHECKING_P guard.
11339 (get_num_source_ranges_for_substring): Rename to...
11340 (selftest::get_num_source_ranges_for_substring): ...this, move
11341 within the #if CHECKING_P guard, and make static.
11342 (selftest::assert_num_substring_ranges): Initialize
11343 actual_num_ranges.
11344
11345 2016-08-18 Alan Modra <amodra@gmail.com>
11346
11347 PR rtl-optimization/72771
11348 * reload.c (find_reloads): Don't assume that a subreg mem is OK
11349 when find_reloads_toplev returns address_reloaded==-1.
11350 (alternative_allows_const_pool_ref): Update comment.
11351
11352 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11353
11354 PR tree-optimization/71752
11355 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
11356 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11357
11358 2016-08-17 Jakub Jelinek <jakub@redhat.com>
11359
11360 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
11361 instead of testing ECF_NORETURN bit in gimple_call_flags.
11362 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
11363 * predict.c (tree_bb_level_predictions): Likewise.
11364 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
11365
11366 PR middle-end/77259
11367 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
11368 turning a call into __builtin_unreachable-like noreturn call, adjust
11369 gimple_call_set_fntype.
11370 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
11371 gimple_call_fntype has void return type.
11372
11373 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
11374
11375 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
11376 maybe_lookup_decl, to handle nested acc loop directives.
11377
11378 2016-08-17 Richard Biener <rguenther@suse.de>
11379
11380 PR tree-optimization/76490
11381 * tree-vrp.c (update_value_range): Preserve overflow infinities
11382 when intersecting with ranges from get_range_info.
11383 (operand_less_p): Handle overflow infinities correctly.
11384 (value_range_constant_singleton): Use vrp_operand_equal_p
11385 to handle overflow max/min correctly.
11386 (vrp_valueize): Likewise.
11387 (union_ranges): Likewise.
11388 (intersect_ranges): Likewise.
11389 (vrp_visit_phi_node): Improve iteration limitation to only
11390 apply when we'll possibly re-visit the PHI via a changed argument
11391 on the backedge.
11392
11393 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
11394
11395 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
11396 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
11397 rather than those that should not be built.
11398
11399 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
11400
11401 PR target/66488
11402 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
11403
11404 2016-08-17 Richard Biener <rguenther@suse.de>
11405
11406 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
11407 (verify_vssa): New function verifying virtual SSA form.
11408 (verify_ssa): Call it.
11409 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
11410 Do not apply loop-closed SSA handling to virtuals.
11411 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
11412 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
11413 when rewriting their symbol.
11414 (prepare_def_site_for): Likewise.
11415 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
11416 operands of moved stmts.
11417
11418 2016-08-17 Richard Biener <rguenther@suse.de>
11419
11420 PR tree-optimization/23855
11421 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
11422 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
11423 find guards to hoist. Do not update SSA form but rewrite virtuals
11424 into loop closed SSA.
11425 (find_loop_guard): Adjust to skip already hoisted guards. Do
11426 not mark virtuals for renaming or update SSA form.
11427
11428 2016-08-17 Martin Liska <mliska@suse.cz>
11429
11430 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
11431 a LONG_LONG_TYPE_SIZE comparison.
11432 * gcov-io.h: Remove macro definitions.
11433 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
11434 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
11435 comparison.
11436
11437 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11438
11439 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
11440 that builtins not mentioned in bdesc_* arrays come first, then
11441 the ones mentioned in bdesc_* arrays in the order they appear in
11442 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
11443 IX86_BUILTIN__BDESC_*_LAST enumerator.
11444 (bdesc_mpx): Fix up a comment typo.
11445 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
11446 __builtin_ia32_vpcomneu[bwdq] builtins.
11447 (BDESC_VERIFY, BDESC_VERIFYS): Define.
11448 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
11449 enum ix86_builtins ordering.
11450 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
11451 for direct bdesc_* array member access instead of searching all the
11452 arrays until an fcode match is found.
11453
11454 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
11455
11456 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
11457 pattern as define_insn_and_split. Split insn before reload to
11458 ashl<mode>3_1.
11459 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
11460 <shift_insn><mode>3_1.
11461 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
11462 <rotate_insn><mode>3_1.
11463
11464 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11465
11466 PR c/72857
11467 * input.c (get_source_range_for_substring): Rename to...
11468 (get_source_location_for_substring): ...this, adding param
11469 "caret_idx", and converting output param from source_range * to
11470 location_t *.
11471 (get_source_range_for_char): New function.
11472 (get_num_source_ranges_for_substring): Update comment to reflect
11473 above renaming.
11474 (assert_char_at_range): Update to use get_source_range_for_char
11475 rather than get_source_range_for_substring.
11476 (test_lexer_string_locations_concatenation_2): Likewise.
11477 * substring-locations.h (get_source_range_for_substring): Rename
11478 to...
11479 (get_source_location_for_substring): ...this, and adding param
11480 "caret_idx", and converting output param from source_range * to
11481 location_t *.
11482
11483 2016-08-16 David Malcolm <dmalcolm@redhat.com>
11484
11485 * input.c (class selftest::temp_source_file): Move to
11486 selftest.h.
11487 (selftest::temp_source_file::temp_source_file): Move to
11488 selftest.c.
11489 (selftest::temp_source_file::~temp_source_file): Likewise.
11490 * selftest.c (selftest::temp_source_file::temp_source_file): Move
11491 here from input.c.
11492 (selftest::temp_source_file::~temp_source_file): Likewise.
11493 * selftest.h (class selftest::temp_source_file): Move here from
11494 input.c
11495
11496 2016-08-16 Jakub Jelinek <jakub@redhat.com>
11497
11498 PR target/71910
11499 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
11500 inlining, add cgraph edge for the added __builtin_unreachable call.
11501
11502 PR middle-end/67485
11503 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
11504 only cast it to SHWI for the final comparison.
11505
11506 2016-08-16 Martin Liska <mliska@suse.cz>
11507
11508 PR gcov-profile/36412
11509 * doc/gcov.texi: Document --hash-filenames(-x).
11510 * gcov.c (print_usage): Add the option.
11511 (process_args): Process the option, sort options alphabetically.
11512 (md5sum_to_hex): New function.
11513 (make_gcov_file_name): Do the md5sum and append it to a
11514 filename.
11515
11516 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11517
11518 PR tree-optimization/69848
11519 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
11520 and swtich operands to avoid additional NOT instruction.
11521 (vcond<v_cmp_mixed><mode>): Ditto.
11522 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11523
11524 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
11525
11526 * doc/install.texi (*-*-solaris2*): Adjust latest change.
11527
11528 2016-08-16 Richard Biener <rguenther@suse.de>
11529
11530 PR tree-optimization/76783
11531 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
11532 BB visited flags at start.
11533
11534 2016-08-16 Bin Cheng <bin.cheng@arm.com>
11535
11536 PR tree-optimization/72817
11537 PR tree-optimization/73450
11538 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
11539 multiple_of_p for adjusted IV.base.
11540
11541 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
11542
11543 PR target/72867
11544 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
11545 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
11546 for !flag_finite_math_only or flag_signed_zeros.
11547 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
11548 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
11549 depend on flag_finite_math_only.
11550 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11551 New insn pattern.
11552 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
11553 (*ieee_smin<mode>3): Ditto.
11554 (*ieee_smax<mode>3): Ditto.
11555 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
11556 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
11557 flag_signed_zeros.
11558 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
11559 depend on flag_finite_math_only.
11560 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
11561 (*mmx_<code>v2sf3): Remove.
11562 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
11563 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
11564 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
11565
11566 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11567
11568 PR rtl-optimization/73650
11569 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
11570 it is not a simple move.
11571
11572 2016-08-15 Martin Liska <mliska@suse.cz>
11573
11574 PR driver/72765
11575 * gcc.c (do_spec_1): Call save_string with the right size.
11576 (save_string): Do an assert about string we copy.
11577
11578 2016-08-15 Richard Biener <rguenther@suse.de>
11579
11580 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
11581 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
11582 TV_MACH_DEP.
11583 (pass_data_stv): Likewise.
11584
11585 2016-08-15 Richard Biener <rguenther@suse.de>
11586
11587 PR tree-optimization/73434
11588 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
11589 TBAA info on the base when forwarding a non-invariant address.
11590
11591 2016-08-15 Jakub Jelinek <jakub@redhat.com>
11592
11593 * dwarf2out.c (struct checksum_attributes): Add
11594 at_string_length_bit_size and at_string_length_byte_size fields.
11595 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
11596 and DW_AT_string_length_byte_size.
11597 (die_checksum_ordered): Handle at_string_length_bit_size and
11598 at_string_length_byte_size.
11599 (gen_array_type_die): For dwarf_version >= 5 emit
11600 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11601 (adjust_string_types): For dwarf_version >= 5 remove
11602 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
11603 (resolve_addr): Likewise.
11604
11605 PR debug/71906
11606 * dwarf2out.c (string_types): New variable.
11607 (gen_array_type_die): Change early_dwarf handling of
11608 DW_AT_string_length, create DW_OP_call4 referencing the
11609 length var temporarily. Handle parameters that are pointers
11610 to string length.
11611 (adjust_string_types): New function.
11612 (gen_subprogram_die): Temporarily set string_types to local var,
11613 call adjust_string_types if needed.
11614 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
11615 New functions.
11616 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
11617
11618 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
11619
11620 * doc/install.texi (*-*-solaris2*): Fix version number and document
11621 requirement on GNU make for building libjava with the Solaris linker.
11622
11623 2016-08-15 Martin Liska <mliska@suse.cz>
11624 Jakub Jelinek <jakub@redhat.com>
11625
11626 PR tree-optimization/72824
11627 * tree-loop-distribution.c (const_with_all_bytes_same)
11628 <case VECTOR_CST>: Fix a typo.
11629
11630 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
11631
11632 PR target/76342
11633 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
11634 Renamed from _mm512_undefined_si512.
11635 (_mm_undefined_si512): New definition.
11636
11637 2016-08-13 Richard Biener <rguenther@suse.de>
11638
11639 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
11640 into PHIs and update the lattice for its def.
11641
11642 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11643
11644 PR c/71512
11645 * ubsan.c (instrument_si_overflow): Pass true instead of false
11646 to gsi_replace.
11647 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
11648 of bbs. Return TODO_cleanup_cfg if any returned true.
11649
11650 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11651
11652 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
11653 ISA 3.0 MTVSRDD instruction.
11654 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
11655 vecperm.
11656
11657 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11658
11659 PR tree-optimization/71083
11660 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
11661 bitfield access when possible.
11662
11663 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
11664
11665 PR middle-end/71654
11666 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
11667 sign-changing cast from a shorter unsigned type to a wider
11668 signed type.
11669
11670 2016-08-12 Jakub Jelinek <jakub@redhat.com>
11671
11672 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
11673 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
11674 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
11675
11676 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11677
11678 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
11679 Correct costs for vec_construct.
11680
11681 2016-08-12 Bin Cheng <bin.cheng@arm.com>
11682
11683 PR tree-optimization/69848
11684 * tree-vectorizer.h (enum vect_def_type): New condition reduction
11685 type CONST_COND_REDUCTION.
11686 * tree-vect-loop.c (vectorizable_reduction): Support new condition
11687 reudction type CONST_COND_REDUCTION.
11688
11689 2016-08-12 Richard Biener <rguenther@suse.de>
11690
11691 PR tree-optimization/57326
11692 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
11693 returning an SSA name.
11694 (phi_translate_1): When fully_constant_expression returns a NAME
11695 make sure we have a leader for it.
11696
11697 2016-08-12 Martin Liska <mliska@suse.cz>
11698 Adam Fineman <afineman@afineman.com>
11699
11700 * gcov.c (process_file): Create .gcov file when .gcda
11701 file is missing.
11702
11703 2016-08-12 Marek Polacek <polacek@redhat.com>
11704
11705 PR c/7652
11706 * alias.c (find_base_value): Adjust fall through comment.
11707 * cfgexpand.c (expand_debug_expr): Likewise.
11708 * combine.c (find_split_point): Likewise.
11709 (expand_compound_operation): Likewise. Add FALLTHRU.
11710 (make_compound_operation): Adjust fall through comment.
11711 (canon_reg_for_combine): Add FALLTHRU.
11712 (force_to_mode): Adjust fall through comment.
11713 (simplify_shift_const_1): Likewise.
11714 (simplify_comparison): Likewise.
11715 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
11716 FALLTHRU.
11717 * config/aarch64/predicates.md: Likewise.
11718 * config/i386/i386.c (function_arg_advance_32): Likewise.
11719 (ix86_gimplify_va_arg): Likewise.
11720 (print_reg): Likewise.
11721 (ix86_print_operand): Likewise.
11722 (ix86_build_const_vector): Likewise.
11723 (ix86_expand_branch): Likewise.
11724 (ix86_sched_init_global): Adjust fall through comment.
11725 (ix86_expand_args_builtin): Add FALLTHRU.
11726 (ix86_expand_builtin): Likewise.
11727 (ix86_expand_vector_init_one_var): Likewise.
11728 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
11729 (rs6000_adjust_cost): Likewise.
11730 (insn_must_be_first_in_group): Likewise.
11731 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
11732 * dbxout.c (dbxout_symbol): Adjust fall through comment.
11733 * df-scan.c (df_uses_record): Likewise.
11734 * dojump.c (do_jump): Add FALLTHRU.
11735 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
11736 comment.
11737 (resolve_args_picking_1): Adjust fall through comment.
11738 (loc_list_from_tree_1): Likewise.
11739 * expmed.c (make_tree): Likewise.
11740 * expr.c (expand_expr_real_2): Add FALLTHRU.
11741 (expand_expr_real_1): Likewise. Adjust fall through comment.
11742 * fold-const.c (const_binop): Adjust fall through comment.
11743 (fold_truth_not_expr): Likewise.
11744 (fold_cond_expr_with_comparison): Add FALLTHRU.
11745 (fold_binary_loc): Likewise.
11746 (contains_label_1): Adjust fall through comment.
11747 (multiple_of_p): Likewise.
11748 * gcov-tool.c (process_args): Add FALLTHRU.
11749 * genattrtab.c (check_attr_test): Likewise.
11750 (write_test_expr): Likewise.
11751 * genconfig.c (walk_insn_part): Likewise.
11752 * genpreds.c (validate_exp): Adjust fall through comment.
11753 (needs_variable): Likewise.
11754 * gensupport.c (get_alternatives_number): Add FALLTHRU.
11755 (subst_dup): Likewise.
11756 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
11757 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
11758 (gimplify_scan_omp_clauses): Add FALLTHRU.
11759 (goa_stabilize_expr): Likewise.
11760 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
11761 through comment.
11762 * hsa-gen.c (get_address_from_value): Likewise.
11763 * ipa-icf.c (sem_function::hash_stmt): Likewise.
11764 * ira.c (ira_setup_alts): Add FALLTHRU.
11765 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
11766 comment.
11767 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
11768 * opts.c (common_handle_option): Likewise.
11769 * read-rtl.c (read_rtx_code): Likewise.
11770 * real.c (round_for_format): Likewise.
11771 * recog.c (asm_operand_ok): Likewise.
11772 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
11773 * reload1.c (set_label_offsets): Likewise.
11774 (eliminate_regs_1): Likewise.
11775 (reload_reg_reaches_end_p): Likewise.
11776 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
11777 (rtx_cost): Likewise.
11778 * sched-rgn.c (is_exception_free): Likewise.
11779 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
11780 * stor-layout.c (int_mode_for_mode): Likewise.
11781 * toplev.c (print_to_asm_out_file): Likewise.
11782 (print_to_stderr): Likewise.
11783 * tree-cfg.c (gimple_verify_flow_info): Likewise.
11784 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
11785 (chrec_fold_multiply): Likewise.
11786 (evolution_function_is_invariant_rec_p): Likewise.
11787 (for_each_scev_op): Likewise.
11788 * tree-data-ref.c (siv_subscript_p): Likewise.
11789 (get_references_in_stmt): Likewise.
11790 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
11791 (substitute_in_expr): Likewise.
11792 (type_cache_hasher::equal): Likewise.
11793 (walk_type_fields): Likewise.
11794 * var-tracking.c (adjust_mems): Add FALLTHRU.
11795 (set_dv_changed): Adjust fall through comment.
11796 * varasm.c (default_function_section): Add FALLTHRU.
11797
11798 2016-08-12 Marek Polacek <polacek@redhat.com>
11799
11800 PR c/7652
11801 * tree-complex.c (expand_complex_division): Add missing break.
11802
11803 2016-08-12 Richard Biener <rguenther@suse.de>
11804
11805 * passes.c (execute_todo): Do not push/pop TV_TODO.
11806 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
11807 (execute_one_pass): Likewise.
11808 * common.opt (ftime-report-details): New switch.
11809 * doc/invoke.texi (ftime-report-details): Document.
11810 * timevar.h (timer::print_row): Adjust signature.
11811 (timer::all_zero): New static helper.
11812 (timer::child_map_t): New typedef.
11813 (timer::time_var_def): Add children field.
11814 * timevar.c (timer::named_items::print): Adjust.
11815 (timer::~timer): Free timevar recorded children.
11816 (timer::pop_internal): When -ftime-report-details record
11817 time spent in sub-timevars.
11818 (timer::print_row): Adjust.
11819 (timer::print): Print sub-timevar stats, use all_zero.
11820 * timevar.def (TV_TODO): Remove.
11821
11822 2016-08-12 Richard Biener <rguenther@suse.de>
11823
11824 PR tree-optimization/72851
11825 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
11826 worklists to use bitmaps indexed in execution order.
11827 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
11828 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
11829 (cfg_blocks): Make a bitmap.
11830 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
11831 New globals.
11832 (cfg_blocks_empty_p): Adjust.
11833 (cfg_blocks_add): Likewise.
11834 (cfg_blocks_get): Likewise.
11835 (add_ssa_edge): Likewise.
11836 (add_control_edge): Likewise.
11837 (simulate_stmt): Likewise.
11838 (process_ssa_edge_worklist): Likewise.
11839 (simulate_block): Likewise.
11840 (ssa_prop_init): Compute PRE order and stmt UIDs.
11841 (ssa_prop_fini): Adjust.
11842 (ssa_propagate): Adjust.
11843
11844 2016-08-12 Richard Biener <rguenther@suse.de>
11845
11846 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
11847 the currently executable edges have fixed ranges. Always
11848 go through update_value_range.
11849
11850 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
11851
11852 PR debug/63240
11853 * langhooks-def.h
11854 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
11855 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
11856 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
11857 (LANG_HOOKS_DECLS): Add it.
11858 * langhooks.h (struct lang_hooks_for_decls): Add
11859 function_decl_defaulted. Const_tree-ify
11860 function_decl_explicit_p and function_decl_deleted_p.
11861 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
11862 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
11863 also at strict DWARF v5.
11864
11865 PR debug/55641
11866 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
11867 TYPE_QUAL_CONST in reference-typed decls.
11868
11869 PR debug/49366
11870 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
11871 in DW_OP_pieces, just enough to handle pointers to member
11872 functions.
11873 (gen_remaining_tmpl_value_param_die_attribute): Use a location
11874 expression on DWARFv5 if a constant value doesn't work.
11875
11876 2016-08-11 David Malcolm <dmalcolm@redhat.com>
11877
11878 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
11879 * selftest.c (selftest::test_assertions): New function.
11880 (selftest::selftest_c_tests): New function.
11881 * selftest.h (selftest::selftest_c_tests): New declaration.
11882
11883 2016-08-11 Richard Biener <rguenther@suse.de>
11884 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11885
11886 PR rtl-optimization/72855
11887 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
11888
11889 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11890
11891 PR target/72863
11892 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
11893 (vsx_store_<mode>): Likewise.
11894
11895 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11896
11897 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
11898 TImode CONST_WIDE_INT store.
11899 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
11900
11901 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11902
11903 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
11904 mode if unaligned SSE load and store are optimal.
11905
11906 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11907
11908 PR tree-optimization/71083
11909 * tree-predcom.c (ref_at_iteration): Correctly align the
11910 reference type.
11911
11912 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11913
11914 * config/s390/s390-builtin-types.def: Add INT128 types.
11915 * config/s390/s390-builtins.def: Add INT128 variants for the add
11916 sub low-level builtins dealing with TImode.
11917 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
11918 via subreg when expanding a builtin.
11919 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
11920 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
11921 Fix comment.
11922 * config/s390/vecintrin.h: Adjust builtin names accordingly.
11923 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
11924 ("vec_addc<mode>", "vec_addc_u128"): Merge to
11925 "vacc<bhfgq>_<mode>".
11926 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
11927 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
11928 ("vec_subc<mode>", "vec_subc_u128"): Merge to
11929 "vscbi<bhfgq>_<mode>".
11930 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
11931 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
11932
11933 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11934
11935 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
11936
11937 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11938
11939 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
11940 unused declaration.
11941 (vcond<v_cmp_mixed><mode>): Ditto.
11942 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11943
11944 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11945
11946 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
11947 variable explicitly, also assert on it before use.
11948
11949 2016-08-11 Richard Biener <rguenther@suse.de>
11950
11951 PR tree-optimization/72772
11952 * cfgloopmanip.c (create_preheader): Use split_edge if there
11953 is a single loop entry, avoiding degenerate PHIs.
11954
11955 2016-08-11 Richard Biener <rguenther@suse.de>
11956
11957 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
11958 unconditional TODO_cleanup_cfg.
11959 (pass_thread_jumps::execute): Initialize loops, perform a CFG
11960 cleanup only if we threaded a jump.
11961
11962 2016-08-11 Alan Modra <amodra@gmail.com>
11963
11964 PR target/71680
11965 * lra-constraints.c (simplify_operand_subreg): Allow subreg
11966 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
11967 slow. Emit two reloads for slow mem case, first loading in
11968 fast innermode, then converting to required mode.
11969
11970 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11971
11972 * config/rs6000/altivec.h (vec_extract_exp): New macro.
11973 (vec_extract_sig): New macro.
11974 (vec_insert_exp): New macro.
11975 (vec_test_data_class): New macro.
11976 (scalar_extract_exp): New macro.
11977 (scalar_extract_sig): New macro.
11978 (scalar_insert_exp): New macro.
11979 (scalar_test_data_class): New macro.
11980 (scalar_test_neg): New macro.
11981 (scalar_cmp_exp_gt): New macro.
11982 (scalar_cmp_exp_lt): New macro.
11983 (scalar_cmp_exp_eq): New macro.
11984 (scalar_cmp_exp_unordered): New macro.
11985 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
11986 to enforce constraint that operand is a 7-bit unsigned literal.
11987 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
11988 for power9 built-ins.
11989 (BU_P9V_VSX_2): Likewise.
11990 (BU_P9V_64BIT_VSX_2): Likewise.
11991 (VSEEDP): Add scalar extract exponent support.
11992 (VSEESP): Add scalar extract signature support.
11993 (VSTDCNDP): Add scalar test negative support.
11994 (VSTDCNSP): Likewise.
11995 (VSIEDP): Add scalar insert exponent support.
11996 (VSCEDPGT): Add scalar compare exponent greater than support.
11997 (VSCEDPLT): Add scalar compare exponent less than support.
11998 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
11999 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
12000 (VSTDCDP): Add scalar test data class support.
12001 (VSTDCSP): Likewise.
12002 (VSEEDP): Add overload support for scalar extract exponent
12003 operation.
12004 (VSESDP): Add overload support for scalar extract signature
12005 operation.
12006 (VSTDCN): Add overload support for scalar test negative
12007 operation.
12008 (VSTDCNDP): Add overload support for scalar test negative
12009 operation.
12010 (VSTDCNSP): Add overload support for scalar test negative
12011 operation.
12012 (VSIEDP): Add overload support for scalar insert exponent
12013 operation.
12014 (VSTDC): Add overload support for scalar test data class
12015 operation.
12016 (VSTDCDP): Add overload support for scalar test data class
12017 operation.
12018 (VSTDCSP): Add overload support for scalar test data class
12019 opreation.
12020 (VSCEDPGT): Add overload support for scalar compare exponent
12021 greater than operation.
12022 (VSCEDPLT): Add overload support for scalar compare exponent
12023 less than operation.
12024 (VSCEDPEQ): Add overload support for scalar compare exponent
12025 test-for-equality operation.
12026 (VSCEDPUO): Add overload support for scalar compare exponent
12027 test-for-unordered operation.
12028 (VEEDP): Add vector extract exponent support.
12029 (VEESP): Likewise.
12030 (VESDP): Add vector extract significand support.
12031 (VESSP): Likewise.
12032 (VIEDP): Add vector insert exponent support.
12033 (VIESP): Likewise.
12034 (VTDCDP): Add vector test data class support.
12035 (VTDCSP): Likewise.
12036 (VES): Add overload support for vector extract significand operation.
12037 (VESDP): Likewise.
12038 (VESSP): Likewise
12039 (VEE): Add overload support for vector extract exponent operation.
12040 (VEEDP): Likewise.
12041 (VEESP): Likewise.
12042 (VTDC): Add overload support for vector test data class operation.
12043 (VTDCDP): Likewise.
12044 (VTDCSP): Likewise.
12045 (VIE): Add overload support for vector insert exponent operation.
12046 (VIEDP): Likewise.
12047 (VIESP): Likewise.
12048 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12049 overloaded binary floating point functions.
12050 (altivec_resolve_overloaded_builtin): Improve error messages to
12051 distinguish between functions not supported in the current
12052 compiler configuration and functions that were invoked with an
12053 invalid parameter combination, and include the built-in function
12054 name in both error messages.
12055 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
12056 New prototype.
12057 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
12058 function.
12059 (rs6000_expand_binop_builtin): Add check to enforce that argument
12060 2 of the test data class operations is a 7-bit unsigned literal.
12061 (rs6000_invalid_builtin): Add code to issue an error message if a
12062 built-in function that requires the power9_vector and -m32
12063 command-line options is compiled without these options.
12064 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
12065 (UNSPEC_VSX_SXSIGDP): New value.
12066 (UNSPEC_VSX_SXSIGPDP): New value.
12067 (UNSPEC_VSX_SIEXPDP): New value.
12068 (UNSPEC_VSX_SCMPEXPDP): New value.
12069 (UNSPEC_VSX_STSTDC): New value.
12070 (UNSPEC_VSX_VXEXP): New value.
12071 (UNSPEC_VSX_VXSIG): New value.
12072 (UNSPEC_VSX_VIEXP): New value.
12073 (UNSPEC_VSX_VTSTDC): New value.
12074 (xsxexpdp): New insn for scalar extract exponent.
12075 (xsxsigdp): New insn for scalar extract significand.
12076 (xsiexpdp): New insn for scalar insert exponent.
12077 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
12078 (*xscmpexpdp): New insn for scalar compare exponents.
12079 (xststdc<Fvsx): New expansion for both single- and
12080 double-precision scalar test data class operations.
12081 (xststdcneg<Fvsx>): New expansion for both single- and
12082 double-precision scalar test for negative value operations.
12083 (*xststdc<Fvsx>): New insn for scalar test data class
12084 operation.
12085 (xvxexp<VSs>): New insn for single- and double-precision
12086 vector extract exponent operation.
12087 (xvxsig<VSs>): New insn for single- and double-precision
12088 vector extract significand operation.
12089 (xviexp<VSs>): New insn for single- and double-precision
12090 vector insert exponent operation.
12091 (xvtstdc<VSs>): New insn for single- and double-precision
12092 vector test data class operation.
12093 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12094 built-in functions to represent the Power9 binary floating-point
12095 support instructions.
12096
12097 2016-08-10 bin cheng <bin.cheng@arm.com>
12098
12099 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
12100
12101 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12102 Renlin Li <renlin.li@arm.com>
12103 Bin Cheng <bin.cheng@arm.com>
12104
12105 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
12106 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
12107 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
12108 (aarch64_vcond_internal<mode><mode>): Delete pattern.
12109 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
12110 (vcond<v_cmp_result><mode>): Ditto.
12111 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
12112 (vcondu<mode><mode>): Ditto.
12113 (vcond<v_cmp_mixed><mode>): New pattern.
12114 (vcondu<mode><v_cmp_mixed>): New pattern.
12115 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
12116 of aarch64_vcond_internal.
12117
12118 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
12119 Renlin Li <renlin.li@arm.com>
12120 Bin Cheng <bin.cheng@arm.com>
12121
12122 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
12123 (vec_cmp<mode><v_cmp_result>): New pattern.
12124 (vec_cmpu<mode><mode>): New pattern.
12125 (vcond_mask_<mode><v_cmp_result>): New pattern.
12126
12127 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12128
12129 PR tree-optimization/71734
12130 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
12131 REF_LOOP, invoke ref_indep_loop_p_1.
12132 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
12133 to ref_indep_loop_p.
12134 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
12135 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
12136 is inside LOOP, do not cache dpendence value for loops with
12137 non-zero SAFELEN.
12138 (ref_indep_loop_p_2): Delete function.
12139 (can_sm_ref_p): Pass LOOP as additional argument to
12140 ref_indep_loop_p.
12141
12142 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12143
12144 PR target/72853
12145 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
12146 being an offsettable address.
12147
12148 2016-08-10 Martin Liska <mliska@suse.cz>
12149
12150 PR gcov-profile/58306
12151 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
12152 atomic variants of profile update functions.
12153
12154 2016-08-10 Martin Liska <mliska@suse.cz>
12155
12156 Cherry picked (and modified) from google-4_7 branch
12157 2012-12-26 Rong Xu <xur@google.com>
12158 * common.opt (fprofile-update): Add new flag.
12159 * coretypes.h: Define enum profile_update.
12160 * doc/invoke.texi: Document -fprofile-update.
12161 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
12162 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
12163 * tree-profile.c (gimple_init_edge_profiler): Generate
12164 also atomic profiler update.
12165 (gimple_gen_edge_profiler): Likewise.
12166
12167 2016-08-10 David Malcolm <dmalcolm@redhat.com>
12168
12169 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
12170 stack_usage_file to NULL after fclose calls.
12171
12172 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12173
12174 PR target/71873
12175 * reload.c (push_reload): Compute subreg_in_class for
12176 subregs of constants and plus expressions. Remove special
12177 handling of SYMBOL_REFs.
12178
12179 2016-08-10 Alan Modra <amodra@gmail.com>
12180
12181 PR target/71680
12182 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
12183 SImode for TARGET_E500_DOUBLE when given SImode.
12184
12185 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
12186
12187 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
12188 unused variable __O.
12189
12190 2016-08-09 Martin Liska <mliska@suse.cz>
12191
12192 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
12193 _gcov_reset to __gcov_reset.
12194 * doc/gcov-tool.texi: Fix typo.
12195
12196 2016-08-09 Martin Liska <mliska@suse.cz>
12197
12198 * value-prof.c (gimple_divmod_values_to_profile): Do not
12199 instrument MOD histogram if a value is not a SSA name.
12200
12201 2016-08-09 Martin Liska <mliska@suse.cz>
12202
12203 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
12204 values.
12205
12206 2016-08-09 Renlin Li <renlin.li@arm.com>
12207
12208 PR middle-end/64971
12209 * calls.c (prepare_call_address): Convert funexp to Pmode when
12210 necessary.
12211 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
12212 (sibcall_value): Likewise.
12213
12214 2016-08-09 Marek Polacek <polacek@redhat.com>
12215
12216 PR c/7652
12217 * cselib.c (cselib_expand_value_rtx_1): Add return.
12218 * gengtype.c (dbgprint_count_type_at): Likewise.
12219 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
12220 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
12221
12222 2016-08-09 Martin Jambor <mjambor@suse.cz>
12223
12224 PR ipa/71981
12225 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
12226 if instance is a MEM_REF.
12227
12228 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
12229
12230 PR target/72843
12231 * config/i386/i386.md (*movtf_internal): Use
12232 lra_in_progress || reload_completed instead of !can_create_pseudo_p
12233 in the insn constraint.
12234 (*movxf_internal): Ditto.
12235 (*movdf_internal): Ditto.
12236 (*movsf_internal): Ditto.
12237
12238 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12239
12240 PR tree-optimization/72772
12241 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
12242 for expanded base.
12243
12244 2016-08-09 Bin Cheng <bin.cheng@arm.com>
12245
12246 PR tree-optimization/72772
12247 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
12248 parameter STOP.
12249 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
12250 parameter STOP and update calls. Move expand_simple_operations
12251 function call from here...
12252 (simplify_using_initial_conditions): ...to here. Delete parameter
12253 STOP.
12254 (tree_simplify_using_condition): Delete parameter STOP.
12255 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
12256 simplify_using_initial_conditions.
12257
12258 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
12259
12260 PR c/65345
12261 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
12262 Use create_tmp_var_raw instead of create_tmp_var.
12263
12264 2016-08-09 Richard Biener <rguenther@suse.de>
12265
12266 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
12267 Treat same SSA names related.
12268
12269 2016-08-09 Jakub Jelinek <jakub@redhat.com>
12270
12271 PR tree-optimization/72824
12272 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
12273 real_zerop is not negative.
12274
12275 2016-08-09 Richard Biener <rguenther@suse.de>
12276
12277 PR tree-optimization/71802
12278 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
12279 all merge opportunities with the predecessor.
12280
12281 2016-08-09 Richard Biener <rguenther@suse.de>
12282
12283 PR ipa/68273
12284 * ipa-prop.c (ipa_modify_formal_parameters): Build
12285 parameter types with natural alignment also for the
12286 over-aligned case.
12287
12288 2016-08-08 Andi Kleen <ak@linux.intel.com>
12289
12290 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
12291
12292 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12293
12294 PR c/64955
12295 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
12296 do-nothing langhook.
12297 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
12298 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
12299 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
12300 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
12301
12302 2016-08-08 David Malcolm <dmalcolm@redhat.com>
12303
12304 PR bootstrap/72844
12305 * input.c: Ensure that HAVE_ICONV is defined.
12306
12307 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12308
12309 PR middle-end/72781
12310 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
12311 private vars for lastprivate and for linear iterator.
12312
12313 PR middle-end/68762
12314 * omp-simd-clone.c: Include varasm.h.
12315 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
12316 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
12317 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
12318 update function name.
12319
12320 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12321
12322 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
12323 (avr_diagnose_devicespecs_error): Remove.
12324 (avr_devicespecs_file): Remove composing absolute path for specfile
12325 and its verbose info. Remove conditions to check specs-file,
12326
12327 2016-08-08 Jakub Jelinek <jakub@redhat.com>
12328
12329 PR rtl-optimization/72821
12330 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
12331 just return false for them.
12332
12333 2016-08-08 Alan Modra <amodra@gmail.com>
12334
12335 PR target/72771
12336 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
12337 toc refs created during reload. Update function comment.
12338
12339 2016-08-08 Alan Modra <amodra@gmail.com>
12340
12341 PR target/72802
12342 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
12343 alternatives. Put loads first, then stores, and reg/reg moves
12344 within same class later. Delete attr length.
12345
12346 2016-08-08 Alan Modra <amodra@gmail.com>
12347
12348 PR target/72802
12349 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
12350 (mem_operand_ds_form): New predicate.
12351 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
12352 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
12353 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
12354 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
12355 (extendsfdf2_fpr): Replace o constraint with wY.
12356
12357 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
12358
12359 * tree-ssa-threadbackward.c: Include tree-inline.h
12360 (profitable_jump_thread_path): Use estimate_num_insns to estimate
12361 size of copied block; for cold paths reduce duplication.
12362 (find_jump_threads_backwards): Remove redundant tests.
12363 (pass_thread_jumps::gate): Enable for -Os.
12364
12365 2016-08-07 Jakub Jelinek <jakub@redhat.com>
12366
12367 PR c/72816
12368 * stor-layout.c (layout_decl): Fix up formatting.
12369 (relayout_decl): Allow DECL to be FIELD_DECL.
12370
12371 2016-08-07 Alan Modra <amodra@gmail.com>
12372
12373 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
12374
12375 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12376
12377 * data-streamer-in.c (streamer_read_wide_int): New.
12378 (streamer_read_widest_int): Renamed function.
12379 * data-streamer-out.c (streamer_write_wide_int): New
12380 (streamer_write_widest_int): Renamed function.
12381 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
12382 data-stream-in.c.
12383 (input_cfg): Call renamed function.
12384 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
12385 data-stream-out.c.
12386 (output_cfg): Call renamed function.
12387 * data-streamer.h: Add declarations.
12388
12389 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12390
12391 * tree-ssa-ccp.c (extend_mask): New param sgn.
12392 Remove ORing with wi::mask.
12393 (get_default_value): Adjust call to extend_mask to pass sign.
12394 (evaluate_stmt): Likewise.
12395
12396 2016-08-06 Jakub Jelinek <jakub@redhat.com>
12397
12398 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
12399 INT64_MAX.
12400
12401 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12402
12403 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
12404 transform if operand's type is pointer to function or method.
12405
12406 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12407
12408 PR tree-optimization/18046
12409 * tree-ssa-threadedge.c: Include cfganal.h.
12410 (simplify_control_statement_condition): If simplifying a
12411 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
12412 with the dominating ASSERT_EXPR before handing it off to VRP.
12413 Mention that a CASE_LABEL_EXPR may be returned.
12414 (thread_around_empty_blocks): Adjust to handle
12415 simplify_control_statement_condition() returning a
12416 CASE_LABEL_EXPR.
12417 (thread_through_normal_block): Likewise.
12418 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
12419 a switch statement by trying to determine which case label
12420 will be taken.
12421
12422 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
12423
12424 PR rtl-optimization/69847
12425 * lra-constraints.c (process_invariant_for_inheritance): Save
12426 pattern instead of src.
12427 (remove_inheritance_pseudos): Use the pattern. Add assert.
12428
12429 2016-08-05 David Malcolm <dmalcolm@redhat.com>
12430
12431 * input.c (string_concat::string_concat): New constructor.
12432 (string_concat_db::string_concat_db): New constructor.
12433 (string_concat_db::record_string_concatenation): New method.
12434 (string_concat_db::get_string_concatenation): New method.
12435 (string_concat_db::get_key_loc): New method.
12436 (class auto_cpp_string_vec): New class.
12437 (get_substring_ranges_for_loc): New function.
12438 (get_source_range_for_substring): New function.
12439 (get_num_source_ranges_for_substring): New function.
12440 (class selftest::lexer_test_options): New class.
12441 (struct selftest::lexer_test): New struct.
12442 (class selftest::ebcdic_execution_charset): New class.
12443 (selftest::ebcdic_execution_charset::s_singleton): New variable.
12444 (selftest::lexer_test::lexer_test): New constructor.
12445 (selftest::lexer_test::~lexer_test): New destructor.
12446 (selftest::lexer_test::get_token): New method.
12447 (selftest::assert_char_at_range): New function.
12448 (ASSERT_CHAR_AT_RANGE): New macro.
12449 (selftest::assert_num_substring_ranges): New function.
12450 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
12451 (selftest::assert_has_no_substring_ranges): New function.
12452 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
12453 (selftest::test_lexer_string_locations_simple): New function.
12454 (selftest::test_lexer_string_locations_ebcdic): New function.
12455 (selftest::test_lexer_string_locations_hex): New function.
12456 (selftest::test_lexer_string_locations_oct): New function.
12457 (selftest::test_lexer_string_locations_letter_escape_1): New function.
12458 (selftest::test_lexer_string_locations_letter_escape_2): New function.
12459 (selftest::test_lexer_string_locations_ucn4): New function.
12460 (selftest::test_lexer_string_locations_ucn8): New function.
12461 (selftest::uint32_from_big_endian): New function.
12462 (selftest::test_lexer_string_locations_wide_string): New function.
12463 (selftest::uint16_from_big_endian): New function.
12464 (selftest::test_lexer_string_locations_string16): New function.
12465 (selftest::test_lexer_string_locations_string32): New function.
12466 (selftest::test_lexer_string_locations_u8): New function.
12467 (selftest::test_lexer_string_locations_utf8_source): New function.
12468 (selftest::test_lexer_string_locations_concatenation_1): New
12469 function.
12470 (selftest::test_lexer_string_locations_concatenation_2): New
12471 function.
12472 (selftest::test_lexer_string_locations_concatenation_3): New
12473 function.
12474 (selftest::test_lexer_string_locations_macro): New function.
12475 (selftest::test_lexer_string_locations_stringified_macro_argument):
12476 New function.
12477 (selftest::test_lexer_string_locations_non_string): New function.
12478 (selftest::test_lexer_string_locations_long_line): New function.
12479 (selftest::test_lexer_char_constants): New function.
12480 (selftest::input_c_tests): Call the new test functions once per
12481 case within the line_table test matrix.
12482 * input.h (struct string_concat): New struct.
12483 (struct location_hash): New struct.
12484 (class string_concat_db): New class.
12485 * substring-locations.h: New header.
12486
12487 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
12488
12489 PR tree-optimization/72810
12490 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
12491 the type of the case labels when truncating.
12492
12493 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
12494
12495 PR Target/72819
12496 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
12497 (aarch64_fp16_ptr_type_node): Likewise.
12498 * config/aarch64/aarch64-simd-builtins.c
12499 (aarch64_fp16_ptr_type_node): Define.
12500 (aarch64_init_fp16_types): New, refactored out of...
12501 (aarch64_init_builtins): ...here, update to call
12502 aarch64_init_fp16_types.
12503 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
12504 HFmode.
12505 (aapcs_vfp_sub_candidate): Likewise.
12506
12507 2016-08-05 Martin Liska <mliska@suse.cz>
12508 Joshua Cranmer <Pidgeot18@gmail.com>
12509
12510 * gcov.c (line_t::has_block): New function.
12511 (enum loop_type): New enum.
12512 (handle_cycle): New function.
12513 (unblock): Likewise.
12514 (circuit): Likewise.
12515 (get_cycles_count): Likewise.
12516 (accumulate_line_counts): Use new loop detection algorithm.
12517
12518 2016-08-05 Martin Liska <mliska@suse.cz>
12519
12520 * gcov.c (output_intermediate_file): Rename
12521 function_info::line_next to next_file_fn.
12522 (process_file): Likewise.
12523 (read_graph_file): Likewise.
12524 (accumulate_line_counts): Likewise.
12525 (output_lines): Likewise.
12526
12527 2016-08-05 Richard Biener <rguenther@suse.de>
12528
12529 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
12530 restriction on threading to a loop header.
12531
12532 2016-08-05 Richard Biener <rguenther@suse.de>
12533
12534 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
12535 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
12536 adjust loop info accordingly.
12537
12538 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12539
12540 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
12541 before folding call to __builtin_constant_p with parameters to false.
12542
12543 2016-08-05 Alan Modra <amodra@gmail.com>
12544
12545 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
12546 code accidentally committed 2016-05-02 providing class when given
12547 NO_REGS.
12548
12549 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12550
12551 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
12552 the case label ranges that partially overlap with OP's value
12553 range.
12554
12555 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
12556
12557 PR target/72805
12558 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
12559 Cast builtin function result to __mmask16 instead of __mmask8.
12560 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12561 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
12562 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
12563
12564 2016-08-04 David Malcolm <dmalcolm@redhat.com>
12565
12566 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
12567 (ASSERT_TRUE_AT): New macro.
12568 (ASSERT_FALSE): Reimplement in terms of...
12569 (ASSERT_FALSE_AT): New macro.
12570 (ASSERT_STREQ_AT): Fix typo in comment.
12571
12572 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
12573
12574 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
12575 labels are exhaustive, designate the label with the widest
12576 range to be the default label.
12577
12578 2016-08-04 Andrew Pinski <apinski@cavium.com>
12579
12580 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
12581 (thunderx_tunings): Use thunderx_vector_cost instead of
12582 generic_vector_cost.
12583
12584 2016-08-04 Martin Liska <mliska@suse.cz>
12585
12586 * gcov.c (main): Fix GNU coding style.
12587 (output_intermediate_file): Likewise.
12588 (process_file): Likewise.
12589 (generate_results): Likewise.
12590 (release_structures): Likewise.
12591 (create_file_names): Likewise.
12592 (find_source): Likewise.
12593 (read_graph_file): Likewise.
12594 (find_exception_blocks): Likewise.
12595 (canonicalize_name): Likewise.
12596 (make_gcov_file_name): Likewise.
12597 (mangle_name): Likewise.
12598 (accumulate_line_counts): Likewise.
12599 (output_branch_count): Likewise.
12600 (read_line): Likewise.
12601
12602 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12603
12604 PR rtl-optimization/71779
12605 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
12606 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
12607 or if it was truncated.
12608
12609 PR rtl-optimization/70903
12610 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
12611
12612 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12613
12614 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
12615 accessing SSA_NAME_PTR_INFO.
12616
12617 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12618
12619 PR 70677
12620 * common/config/avr/avr-common.c (avr_option_optimization_table)
12621 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
12622
12623 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
12624
12625 PR 55181
12626 * config/avr/avr.md: New pattern to work around do_store_flag
12627 generating shift instructions for bit extractions.
12628
12629 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
12630
12631 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
12632 BITMAP_ALLOC.
12633 (add_equivalence): Likewise.
12634 (get_value_range): Allocate value range with vrp_value_range_pool.
12635 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
12636 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
12637
12638 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
12639
12640 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
12641 the default for the rs6000 port.
12642
12643 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12644
12645 PR middle-end/71876
12646 * calls.c (special_function_p): Remove special handling of
12647 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
12648 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
12649 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
12650
12651 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
12652
12653 PR middle-end/72778
12654 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
12655 Don't stop on regular insns.
12656
12657 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
12658
12659 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
12660 size to DImode boundary.
12661 (nvptx_propagate): Likewise.
12662
12663 2016-08-03 Alan Modra <amodra@gmail.com>
12664
12665 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
12666 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
12667 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
12668 from -mefficient-unaligned-vector. Note that this affects fp too.
12669
12670 2016-08-03 Alan Modra <amodra@gmail.com>
12671
12672 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
12673 cost more.
12674
12675 2016-08-03 Alan Modra <amodra@gmail.com>
12676
12677 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
12678 to a reg. Localize vars.
12679
12680 2016-08-03 Alan Modra <amodra@gmail.com>
12681
12682 * config/rs6000/rs6000.opt: Remove negatives from help strings
12683 and comments.
12684
12685 2016-08-03 Alan Modra <amodra@gmail.com>
12686
12687 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
12688 Delete duplicated code.
12689
12690 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12691
12692 PR middle-end/72778
12693 * lra-spills.c (regno_in_use_p): New.
12694 (lra_final_code_change): Use it.
12695
12696 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
12697
12698 PR rtl-optimization/69847
12699 * lra-int.h (struct lra-reg): Use restore_rtx instead of
12700 restore_regno.
12701 (lra_rtx_hash): New.
12702 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
12703 of restore_regno.
12704 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
12705 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
12706 * lra-spills.c (lra_final_code_change): Don't delete insn when the
12707 next insn is USE with the same reg as the current insn source.
12708 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
12709 of restore_regno.
12710 (lra_constraints_init): Call initiate_invariants.
12711 (lra_constraints_finish): Call finish_invariants.
12712 (struct invariant, invariant_t, invariant_ptr_t): New.
12713 (const_invariant_ptr_t, invariants, invariants_pool): New.
12714 (invariant_table, invariant_hash, invariant_eq_p): New.
12715 (insert_invariant, initiate_invariants, finish_invariants): New.
12716 (clear_invariants, invalid_invariant_regs): New.
12717 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
12718 instead of restore_regno.
12719 (invariant_p, process_invariant_for_inheritance): New.
12720 (inherit_in_ebb): Implement invariant inheritance.
12721 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
12722 (remove_inheritance_pseudos): Implement undoing invariant
12723 inheritance.
12724 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
12725 instead of restore_regno.
12726 * lra-assigns.c (regno_live_length): New.
12727 (reload_pseudo_compare_func): Use regno_live_length.
12728 (assign_by_spills): Use restore_rtx instead of restore_regno.
12729 (lra_assign): Ditto. Initiate regno_live_length.
12730
12731 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
12732
12733 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
12734 __builtin_aarch64_fmindf.
12735
12736 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12737
12738 PR tree-optimization/34114
12739 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
12740 information for more control IVs.
12741
12742 2016-08-02 Bin Cheng <bin.cheng@arm.com>
12743
12744 PR tree-optimization/34114
12745 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
12746 PLUS_EXPR case. Handle SSA_NAME case.
12747
12748 2016-08-02 Tamar Christina <tamar.christina@arm.com>
12749
12750 * config/aarch64/aarch64-simd-builtins.def
12751 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
12752 (__builtin_aarch64_fmaxdf): Likewise.
12753 (__builtin_aarch64_smin_nandf): Likewise.
12754 (__builtin_aarch64_smax_nandf): Likewise.
12755 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
12756 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
12757 (<fmaxmin><mode>3): ...this.
12758 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
12759 (vminnm_f64): Likewise.
12760 (vmin_f64): Likewise.
12761 (vmax_f64): Likewise.
12762 * config/aarch64/iterators.md (FMAXMIN): Merge with...
12763 (FMAXMIN_UNS): ...this.
12764 (fmaxmin): Merged with
12765 (fmaxmin_op): ...this...
12766 (maxmin_uns_op): ...in to this.
12767
12768 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12769
12770 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12771 Add support for vec_extract on vector float, vector int, vector
12772 short, and vector char vector types.
12773 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12774 vector float, vector int, vector short, and vector char
12775 optimizations on 64-bit ISA 2.07 systems for both constant and
12776 variable element numbers.
12777 (rs6000_split_vec_extract_var): Likewise.
12778 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
12779 Altivec registers on ISA 2.07 and above.
12780 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
12781 which never was matched due to the split occuring before register
12782 allocation (and the code would not have worked on little endian
12783 systems if it did match). Allow extracts to go to the Altivec
12784 registers if ISA 2.07 (power8). Change from using "" around the
12785 C++ code to using {}'s.
12786 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
12787 vec_extracts when the vector is in memory.
12788 (vsx_extract_v4sf_var): New insn to optimize vector float
12789 vec_extracts when the element number is variable on 64-bit ISA
12790 2.07 systems.
12791 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
12792 for 64-bit ISA 2.07 as well as ISA 3.0.
12793 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
12794 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
12795 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
12796 optimize vector int, vector short, and vector char vec_extracts
12797 when the vector is in memory.
12798 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
12799 optimize vector int, vector short, and vector char vec_extracts
12800 when the element number is variable.
12801
12802 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12803
12804 PR target/71948
12805 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
12806 does not overlap with other symbol flags.
12807
12808 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
12809
12810 * config/aarch64/aarch64.h (aarch64_frame):
12811 Remove padding0 and hardfp_offset. Add locals_offset,
12812 initial_adjust, callee_adjust, callee_offset and final_adjust.
12813 * config/aarch64/aarch64.c (aarch64_layout_frame):
12814 Remove unused padding0 and hardfp_offset initializations.
12815 Choose frame layout and set frame variables accordingly.
12816 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
12817 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
12818 (aarch64_pop_regs): Likewise.
12819 (aarch64_expand_prologue): Remove all decision code, just emit
12820 prolog according to frame variables.
12821 (aarch64_expand_epilogue): Remove all decision code, just emit
12822 epilog according to frame variables.
12823 (aarch64_initial_elimination_offset): Use offset to local/arg area.
12824
12825 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
12826
12827 PR target/72748
12828 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
12829 fix_debug_reg_uses after changing source register mode to
12830 V1TImode if source register is undefined.
12831
12832 2015-08-01 Alan Hayward <alan.hayward@arm.com>
12833
12834 PR tree-optimization/71818
12835 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
12836 with non invariant evolutions
12837
12838 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12839
12840 PR target/72767
12841 * config/avr/avr.md (length) [branch]: Correct insn length
12842 attribute for forward branches.
12843
12844 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
12845
12846 * doc/extend.texi (AVR Built-in Functions): Document
12847 __builtin_avr_nops.
12848 * config/avr/builtins.def (NOPS): New.
12849 * config/avr/avr.c (avr_expand_nops): New static function.
12850 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
12851
12852 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853
12854 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
12855 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
12856 addresses.
12857
12858 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
12859
12860 * config/aarch64/aarch64.c (vulcan_tunings): Update
12861 vulcan L1 cache_line_size.
12862
12863 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
12864
12865 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
12866 function that takes a vector memory address, a hard register, an
12867 element number and a temporary base register, and recreates an
12868 address that points to the appropriate element within the vector.
12869 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
12870 (rs6000_split_vec_extract_var): Add support for the target of a
12871 vec_extract with variable element number being a scalar memory
12872 location.
12873 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
12874 swappable.
12875 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
12876 vsx_extract_<mode>_load insn with a new insn that optimizes
12877 storing either element to a memory location, using scratch
12878 registers to pick apart the vector and reconstruct the address.
12879 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
12880 (vsx_extract_<mode>_store): Rework alternatives to more correctly
12881 support Altivec registers. Add support for ISA 3.0 Altivec d-form
12882 store instruction.
12883 (vsx_extract_<mode>_var): Add support for extracting a variable
12884 element number from memory.
12885
12886 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12887
12888 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
12889 when testing for compares against constants of the form 0xabab.
12890
12891 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12892
12893 PR tree-optimization/57558
12894 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
12895 function.
12896 (vect_loop_versioning): Support versioning with niter assumptions.
12897 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
12898 (vect_get_loop_niters): New parameter. Reimplement to support
12899 assumptions in loop niter info.
12900 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
12901 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
12902 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
12903 Support loop versioning for niters.
12904 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
12905 (vect_free_loop_info_assumptions): New function.
12906 (vectorize_loops): Free loop niter info for loops with flag
12907 LOOP_F_ASSUMPTIONS set if vectorization failed.
12908 * tree-vectorizer.h (struct _loop_vec_info): New field
12909 num_iters_assumptions.
12910 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
12911 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
12912 (LOOP_REQUIRES_VERSIONING): New macro.
12913 (vect_free_loop_info_assumptions): New decl.
12914
12915 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12916
12917 * cfgloop.h (struct loop): New field constraints.
12918 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
12919 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
12920 functions.
12921 * cfgloop.c (alloc_loop): Initialize new field.
12922 * cfgloopmanip.c (copy_loop_info): Copy constraints.
12923 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12924 Adjust niter analysis wrto loop constraints.
12925 * doc/loop.texi (@node Number of iterations): Add description for loop
12926 constraints.
12927
12928 2016-07-29 Marek Polacek <polacek@redhat.com>
12929
12930 PR c/7652
12931 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
12932 (ix86_expand_round_builtin): Likewise.
12933
12934 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12935 Georg-Johann Lay <avr@gjlay.de>
12936
12937 PR rtl-optimization/71976
12938 * combine.c (get_last_value): Return 0 if the argument for which
12939 the function is called has a wider mode than the recorded value.
12940
12941 2016-07-29 Marek Polacek <polacek@redhat.com>
12942
12943 PR c/7652
12944 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
12945 (altivec_expand_st_builtin): Likewise.
12946
12947 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12948
12949 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
12950 introduced in r238381.
12951
12952 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
12953
12954 PR middle-end/68217
12955 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
12956 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
12957
12958 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12959
12960 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
12961 New declaration.
12962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12963 Add support for vec_extract of vector double or vector long having
12964 a variable element number on 64-bit ISA 2.07 systems or newer.
12965 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
12966 Likewise.
12967 (rs6000_split_vec_extract_var): New function to split a
12968 vec_extract built-in function with variable element number.
12969 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
12970 swappable.
12971 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
12972 (UNSPEC_VSX_EXTRACT): Likewise.
12973 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
12974 direct move instructions to be generated on 64-bit ISA 2.07
12975 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
12976 instruction.
12977 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
12978 arguments for vec_extract variable element.
12979 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
12980 vec_extract with variable element on V2DFmode and V2DImode
12981 vectors.
12982 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
12983 -mupper-regs-df requirement, since it isn't needed.
12984 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
12985 do direct moves on 64-bit systems, which allows optimization of
12986 vec_extract on 64-bit ISA 2.07 systems and newer.
12987
12988 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12989 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12990
12991 * config/aarch64/aarch64.md
12992 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
12993 statement and type.
12994 (<optab>qihi2_aarch64): Likewise, and split into two.
12995 (extendqihi2_aarch64): New.
12996 (zero_extendqihi2_aarch64): New.
12997 * config/aarch64/iterators.md (ldrxt): Remove.
12998 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12999 uxtb/uxth.
13000
13001 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
13002
13003 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
13004
13005 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
13006
13007 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
13008 (aarch64_push_reg): New function to push 1 or 2 registers.
13009 (aarch64_pop_reg): New function to pop 1 or 2 registers.
13010 (aarch64_expand_prologue): Use aarch64_push_regs.
13011 (aarch64_expand_epilogue): Use aarch64_pop_regs.
13012
13013 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
13014
13015 PR tree-optimization/71734
13016 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13017 attribute instead of REF_LOOP and use it.
13018 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
13019 set it for Loops having non-zero safelen attribute.
13020 (ref_indep_loop_p): Pass zero as initial value for safelen.
13021
13022 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
13023
13024 PR middle-end/72657
13025 PR target/72683
13026 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
13027 call using chkp_gimple_call_builtin_p.
13028 (chkp_copy_bounds_for_assign): Likewise.
13029
13030 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13031
13032 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
13033 * config/arm/arm-protos.h (struct tune_params): Likewise.
13034 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13035 (cortex_a9_sched_adjust_cost): Likewise.
13036 (fa726te_sched_adjust_cost): Likewise.
13037 (arm_adjust_cost): Likewise.
13038 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
13039 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
13040 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
13041 * config/i386/i386.c (ix86_adjust_cost): Likewise.
13042 * config/ia64/ia64.c: Likewise.
13043 * config/m68k/m68k.c: Likewise.
13044 * config/mep/mep.c (mep_adjust_cost): Likewise.
13045 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13046 * Likewise.
13047 * config/mips/mips.c (mips_adjust_cost): Likewise.
13048 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
13049 * Likewise.
13050 * config/pa/pa.c (pa_adjust_cost): Likewise.
13051 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
13052 (rs6000_debug_adjust_cost): Likewise.
13053 * config/sh/sh.c (sh_adjust_cost): Likewise.
13054 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
13055 (hypersparc_adjust_cost): Likewise.
13056 (sparc_adjust_cost): Likewise.
13057 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
13058 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
13059 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
13060 * Likewise.
13061 * config/visium/visium.c (visium_adjust_cost): Likewise.
13062 * doc/tm.texi: Regenerate.
13063 * haifa-sched.c (dep_cost_1): Adjust.
13064 * target.def: Merge adjust_cost and adjust_cost_2.
13065
13066 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13067
13068 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
13069
13070 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13071
13072 * store-motion.c (struct st_expr): Make pattern_regs a vector.
13073 (extract_mentioned_regs): Append to a vector instead of
13074 returning a rtx_expr_list.
13075 (st_expr_entry): Adjust.
13076 (free_st_expr_entry): Likewise.
13077 (store_ops_ok): Likewise.
13078 (store_killed_in_insn): Likewise.
13079 (find_moveable_store): Likewise.
13080
13081 2016-07-28 Martin Liska <mliska@suse.cz>
13082
13083 PR gcov-profile/68025
13084 * tree-profile.c (tree_profiling): Respect
13085 no_profile_instrument_function attribute.
13086 * doc/extend.texi: Document no_profile_instrument_function
13087 attribute.
13088
13089 2016-07-28 Martin Liska <mliska@suse.cz>
13090
13091 PR rtl-optimization/70944
13092 * combine.c (make_compound_operation):
13093 Do not allow make_compound_operation for vector mode
13094
13095 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
13096
13097 PR middle-end/71994
13098 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
13099 before calling get_ops.
13100
13101 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13102
13103 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
13104 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
13105 (BITS_PER_UNIT_LOG): Remove.
13106 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
13107 * expr.c (expand_assignment): Likewise.
13108 * stor-layout.c (initialize_sizetypes): Likewise.
13109
13110 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13111
13112 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
13113 signature of rs6000_expand_vector_extract so that the element
13114 number is a RTX instead of a constant integer.
13115 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
13116 Likewise.
13117 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
13118 (altivec_expand_vec_ext_builtin): Likewise.
13119 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
13120 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
13121 MFVSRLD instruction.
13122
13123 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13124
13125 * input.c (get_pure_location): Move here from tree.c.
13126 (make_location): Likewise. Add header comment.
13127 (selftest::test_accessing_ordinary_linemaps): Verify
13128 pure_location_p, make_location, get_location_from_adhoc_loc and
13129 get_range_from_loc.
13130 * input.h (get_pure_location): Move declaration here from tree.h.
13131 (get_finish): Likewise for inline function.
13132 (make_location): Likewise for declaration.
13133 * tree.c (get_pure_location): Move to input.c.
13134 (make_location): Likewise.
13135 * tree.h (get_pure_location): Move declaration to tree.h.
13136 (get_finish): Likewise for inline function.
13137 (make_location): Likewise for declaration.
13138
13139 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13140
13141 PR middle-end/71078
13142 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
13143
13144 2016-07-27 David Malcolm <dmalcolm@redhat.com>
13145
13146 * system.h (STATIC_ASSERT): Use static_assert if building
13147 with C++11 onwards.
13148
13149 2016-07-27 Richard Biener <rguenther@suse.de>
13150
13151 PR tree-optimization/72517
13152 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
13153 Revert change to not compute read-read dependences.
13154
13155 2016-07-27 Richard Biener <rguenther@suse.de>
13156
13157 * predict.c (set_even_probabilities): Make nedges unsigned.
13158
13159 2016-07-27 Martin Liska <mliska@suse.cz>
13160
13161 * predict.c (set_even_probabilities): Handle unlikely edges.
13162 (combine_predictions_for_bb): Likewise.
13163
13164 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13165
13166 PR target/71869
13167 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
13168 __float128 support when we don't have hardware support, so that
13169 the IEEE built-in functions like isgreater, first call __unordkf3
13170 to make sure neither operand is a NaN, and if both operands are
13171 ordered, do the normal comparison.
13172
13173 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13174
13175 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
13176 name.
13177 (extract_code_and_val_from_cond_with_ops): Verify that name is
13178 either cond_op0 or cond_op1.
13179
13180 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
13181
13182 PR tree-optimization/18046
13183 * genmodes.c (emit_mode_size_inline): Emit an assert that
13184 verifies that mode is a valid array index.
13185 (emit_mode_nuinits_inline): Likewise.
13186 (emit_mode_inner_inline): Likewise.
13187 (emit_mode_unit_size_inline): Likewise.
13188 (emit_mode_unit_precision_inline): Likewise.
13189 * tree-vrp.c: Include params.h.
13190 (find_switch_asserts): Register edge assertions for the default
13191 label which correspond to the anti-ranges of each case label.
13192 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
13193 * doc/invoke.texi: Document it.
13194
13195 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13196
13197 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
13198 and unnecessary call to gimple_bb.
13199
13200 2016-07-26 Richard Biener <rguenther@suse.de>
13201
13202 PR rtl-optimization/71984
13203 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
13204 for VOIDmode.
13205
13206 2016-07-26 Richard Biener <rguenther@suse.de>
13207
13208 PR middle-end/72517
13209 * expmed.c (extract_bit_field_1): Constrain the vector mode
13210 with element size matching the extraction mode size when
13211 choosing a better vector mode to do the extraction from.
13212
13213 2016-07-26 Richard Biener <rguenther@suse.de>
13214 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13215
13216 PR middle-end/70920
13217 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
13218 pattern.
13219
13220 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13221
13222 * tree-ssa-structalias.c (struct scc_info): Change types of
13223 members to auto_sbitmap and auto_vec.
13224 (scc_info::scc_info): New constructor.
13225 (scc_info::~scc_info): New destructor.
13226 (init_scc_info): Remove.
13227 (free_scc_info): Remove.
13228 (find_indirect_cycles): Adjust.
13229 (perform_var_substitution): Likewise.
13230 (free_var_substitution_info): Likewise.
13231
13232 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13233
13234 * tree-outof-ssa.c (struct elim_graph): Change type of members
13235 to auto_vec and auto_sbitmap.
13236 (elim_graph::elim_graph): New constructor.
13237 (delete_elim_graph): Remove.
13238 (expand_phi_nodes): Adjust.
13239
13240 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13241
13242 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
13243 (new_elim_graph): Adjust.
13244 (clear_elim_graph): Likewise.
13245 (delete_elim_graph): Likewise.
13246 (elim_graph_size): Likewise.
13247 (elim_graph_add_node): Likewise.
13248 (elim_graph_add_edge): Likewise.
13249 (elim_graph_remove_succ_edge): Likewise.
13250 (eliminate_name): Likewise.
13251 (eliminate_build): Likewise.
13252 (elim_forward): Likewise.
13253 (elim_unvisited_predecessor): Likewise.
13254 (elim_backward): Likewise.
13255 (elim_create): Likewise.
13256 (eliminate_phi): Likewise.
13257 (expand_phi_nodes): Likewise.
13258
13259 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13260
13261 * bt-load.c (compute_out): Use auto_sbitmap class.
13262 (link_btr_uses): Likewise.
13263 * cfganal.c (mark_dfs_back_edges): Likewise.
13264 (post_order_compute): Likewise.
13265 (inverted_post_order_compute): Likewise.
13266 (pre_and_rev_post_order_compute_fn): Likewise.
13267 (single_pred_before_succ_order): Likewise.
13268 * cfgexpand.c (pass_expand::execute): Likewise.
13269 * cfgloop.c (verify_loop_structure): Likewise.
13270 * cfgloopmanip.c (fix_bb_placements): Likewise.
13271 (remove_path): Likewise.
13272 (update_dominators_in_loop): Likewise.
13273 * cfgrtl.c (break_superblocks): Likewise.
13274 * ddg.c (check_sccs): Likewise.
13275 (create_ddg_all_sccs): Likewise.
13276 * df-core.c (df_worklist_dataflow): Likewise.
13277 * dse.c (dse_step3): Likewise.
13278 * except.c (eh_region_outermost): Likewise.
13279 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13280 * gcse.c (prune_expressions): Likewise.
13281 (prune_insertions_deletions): Likewise.
13282 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
13283 * graph.c (draw_cfg_nodes_no_loops): Likewise.
13284 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
13285 * lcm.c (compute_earliest): Likewise.
13286 (compute_farthest): Likewise.
13287 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
13288 (unroll_loop_runtime_iterations): Likewise.
13289 (unroll_loop_stupid): Likewise.
13290 * lower-subreg.c (decompose_multiword_subregs): Likewise.
13291 * lra-lives.c: Likewise.
13292 * lra.c (lra): Likewise.
13293 * modulo-sched.c (schedule_reg_moves): Likewise.
13294 (optimize_sc): Likewise.
13295 (get_sched_window): Likewise.
13296 (sms_schedule_by_order): Likewise.
13297 (check_nodes_order): Likewise.
13298 (order_nodes_of_sccs): Likewise.
13299 (order_nodes_in_scc): Likewise.
13300 * recog.c (split_all_insns): Likewise.
13301 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
13302 * reload1.c (reload): Likewise.
13303 * sched-rgn.c (haifa_find_rgns): Likewise.
13304 (split_edges): Likewise.
13305 (compute_trg_info): Likewise.
13306 * sel-sched.c (init_seqno): Likewise.
13307 * store-motion.c (remove_reachable_equiv_notes): Likewise.
13308 * tree-into-ssa.c (update_ssa): Likewise.
13309 * tree-ssa-live.c (live_worklist): Likewise.
13310 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
13311 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
13312 * Likewise.
13313 (try_peel_loop): Likewise.
13314 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
13315 * Likewise.
13316 * tree-ssa-pre.c (compute_antic): Likewise.
13317 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13318 * tree-stdarg.c (reachable_at_most_once): Likewise.
13319 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13320 * var-tracking.c (vt_find_locations): Likewise.
13321
13322 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13323
13324 * sbitmap.h (auto_sbitmap): New class.
13325
13326 2016-07-26 Alan Modra <amodra@gmail.com>
13327
13328 PR target/72103
13329 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
13330 sri->t_icode.
13331
13332 2016-07-25 David Malcolm <dmalcolm@redhat.com>
13333
13334 * input.c (selftest::temp_source_file::temp_source_file): Fix
13335 missing "%s" in fprintf.
13336
13337 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
13338
13339 PR middle-end/71732
13340 * cselib.c (cselib_process_insn): Invalidate argument slots for
13341 const/pure calls.
13342
13343 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13344
13345 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
13346 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
13347 vmulxh_lane_f16, vmulxh_laneq_f16): New.
13348
13349 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13350
13351 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13352 * config/aarch64/aarch64.md (fma, fnma): Support HF.
13353 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
13354
13355 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13356
13357 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13358 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
13359 New.
13360 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
13361 (add<mode>3): Likewise.
13362 (sub<mode>3): Likewise.
13363 (mul<mode>3): Likewise.
13364 (div<mode>3): Likewise.
13365 (*div<mode>3): Likewise.
13366 (<fmaxmin><mode>3): Extend to HF.
13367 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
13368 (fabd<mode>3): Likewise.
13369 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
13370 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
13371 (aarch64_fmulx<mode>): Likewise.
13372 (aarch64_fac<optab><mode>): Likewise.
13373 (aarch64_frecps<mode>): Likewise.
13374 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
13375 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
13376 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
13377 (VSDQ_HSDI): Support HI.
13378 (fcvt_target, FCVT_TARGET): Likewise.
13379 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
13380 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
13381 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
13382 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
13383 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
13384 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
13385 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
13386 vrsqrtsh_f16): New.
13387
13388 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13389
13390 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
13391 * config/aarch64/aarch64-builtins.c (hi_UP): New.
13392 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13393 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
13394 mode.
13395 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
13396 (aarch64_cm<optab><mode>): Likewise.
13397 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
13398 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
13399 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
13400 (sqrt<mode>2): Likewise.
13401 (*sqrt<mode>2): Likewise.
13402 (abs<mode>2): Likewise.
13403 (<optab><mode>hf2): New pattern for HF mode.
13404 (<optab>hihf2): Likewise.
13405 * config/aarch64/arm_neon.h: Include arm_fp16.h.
13406 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
13407 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
13408 Support HF mode.
13409 * config/aarch64/arm_fp16.h: New file.
13410 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
13411 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
13412 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
13413 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
13414 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
13415 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
13416 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
13417 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
13418 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
13419 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
13420 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
13421 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
13422 vsqrth_f16): New.
13423
13424 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13425
13426 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
13427 reduc_smin_scal_): Use VDQIF_F16.
13428 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
13429 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
13430 Use VHSDF.
13431 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
13432 * config/aarch64/iterators.md (VDQIF_F16): New.
13433 (vp): Support HF modes.
13434 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
13435 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
13436
13437 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13438
13439 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
13440 "*aarch64_mulx_elt_from_dup<mode>".
13441 (*aarch64_mul3_elt<mode>): Update schedule type.
13442 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
13443 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
13444 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
13445 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
13446 (f, fp): Support HF modes.
13447 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
13448 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
13449 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
13450 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
13451 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
13452 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
13453
13454 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13455
13456 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13457 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
13458 modes.
13459 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
13460 vfmsq_f16): New.
13461
13462 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13463
13464 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13465 * config/aarch64/aarch64-simd.md
13466 (aarch64_rsqrts<mode>): Extend to HF modes.
13467 (fabd<mode>3): Likewise.
13468 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
13469 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
13470 (aarch64_<maxmin_uns>p<mode>): Likewise.
13471 (<su><maxmin><mode>3): Likewise.
13472 (<maxmin_uns><mode>3): Likewise.
13473 (<fmaxmin><mode>3): Likewise.
13474 (aarch64_faddp<mode>): Likewise.
13475 (aarch64_fmulx<mode>): Likewise.
13476 (aarch64_frecps<mode>): Likewise.
13477 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
13478 (add<mode>3): Extend to HF modes.
13479 (sub<mode>3): Likewise.
13480 (mul<mode>3): Likewise.
13481 (div<mode>3): Likewise.
13482 (*div<mode>3): Likewise.
13483 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
13484 HF, V4HF and V8HF.
13485 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
13486 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
13487 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
13488 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
13489 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
13490 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
13491 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
13492 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
13493 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
13494 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
13495 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
13496 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
13497 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
13498 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
13499
13500 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13501
13502 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
13503 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
13504 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
13505 (neg<mode>2): Likewise.
13506 (abs<mode>2): Likewise.
13507 (<frint_pattern><mode>2): Likewise.
13508 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
13509 (<optab><VDQF:mode><fcvt_target>2): Likewise.
13510 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
13511 (ftrunc<VDQF:mode>2): Likewise.
13512 (<optab><fcvt_target><VDQF:mode>2): Likewise.
13513 (sqrt<mode>2): Likewise.
13514 (*sqrt<mode>2): Likewise.
13515 (aarch64_frecpe<mode>): Likewise.
13516 (aarch64_cm<optab><mode>): Likewise.
13517 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
13518 HF, V4HF and V8HF.
13519 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
13520 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
13521 (stype): New.
13522 * config/aarch64/arm_neon.h (vdup_n_f16): New.
13523 (vdupq_n_f16): Likewise.
13524 (vld1_dup_f16): Use vdup_n_f16.
13525 (vld1q_dup_f16): Use vdupq_n_f16.
13526 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
13527 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
13528 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
13529 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
13530 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
13531 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
13532 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
13533 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
13534 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
13535 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
13536 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
13537 vsqrt_f16, vsqrtq_f16): New.
13538
13539 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13540
13541 * config/aarch64/aarch64-simd.md
13542 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
13543 (aarch64_ext<mode>): Likewise.
13544 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
13545 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
13546 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
13547 and V8HFmode.
13548 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
13549 float16x8_t.
13550 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
13551 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
13552 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
13553 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
13554 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
13555 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
13556 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
13557 New.
13558 (vmov_n_f16): Reimplement using vdup_n_f16.
13559 (vmovq_n_f16): Reimplement using vdupq_n_f16..
13560
13561 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13562
13563 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
13564 "frame_related_p". Generate CFA annotation when it's necessary.
13565 (aarch64_expand_prologue): Use aarch64_add_constant.
13566 (aarch64_expand_epilogue): Likewise.
13567 (aarch64_output_mi_thunk): Pass "false" when calling
13568 aarch64_add_constant.
13569
13570 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13571
13572 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
13573 sequences.
13574
13575 2016-07-25 Jiong Wang <jiong.wang@arm.com>
13576
13577 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
13578 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
13579 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
13580 (aarch64_build_constant): Delete.
13581
13582 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
13583
13584 Revert
13585 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13586
13587 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13588 flag_toplevel_reorder.
13589
13590 2016-07-25 Richard Biener <rguenther@suse.de>
13591
13592 * cgraph.c (cgraph_node::verify_node): Compare against builtin
13593 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
13594 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
13595 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
13596 (streamer_get_builtin_tree): Likewise.
13597 (streamer_write_builtin): Likewise.
13598 * lto-streamer.h (LTO_builtin_decl): Remove.
13599 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
13600 (lto_input_scc): Remove LTO_builtin_decl handling.
13601 (lto_input_tree_1): Liekwise.
13602 * lto-streamer-out.c (lto_output_tree_1): Remove special
13603 handling of builtins.
13604 (DFS::DFS): Likewise.
13605 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
13606 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
13607 assert.
13608 (streamer_write_builtin): Remove.
13609
13610 2016-07-25 Martin Liska <mliska@suse.cz>
13611
13612 * lto-cgraph.c (input_symtab): Don't call get_working_sets
13613 if flag_auto_profile is set to true.
13614
13615 2016-07-25 Martin Liska <mliska@suse.cz>
13616
13617 PR gcov-profile/71868
13618 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
13619 have a function with multiple latches, count them all.
13620
13621 2016-07-25 Martin Liska <mliska@suse.cz>
13622
13623 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
13624
13625 2016-07-25 Martin Liska <mliska@suse.cz>
13626
13627 PR tree-optimization/71987
13628 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
13629 just for SSA_NAMEs. Fix GNU coding style.
13630
13631 2016-07-25 Martin Liska <mliska@suse.cz>
13632
13633 PR gcov-profile/64874
13634 * gcov-io.h: Update command about file format.
13635 * gcov-iov.c (main): Adapt the numbering scheme.
13636
13637 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
13638
13639 PR middle-end/66726
13640 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
13641 whose result is used in PHI.
13642 (final_range_test_p): Likewise.
13643 (maybe_optimize_range_tests): Likewise.
13644
13645 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13646
13647 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13648 Reformat two multi-line strings.
13649
13650 2016-07-22 Martin Sebor <msebor@redhat.com>
13651
13652 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
13653
13654 2016-07-22 Martin Sebor <msebor@redhat.com>
13655
13656 PR c/71560
13657 * doc/extend.texi (Compound Literals): Correct and clarify.
13658 (Cast to Union): Same.
13659
13660 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
13661
13662 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13663 comments to explain why certain error messages make mention of
13664 undocumented options.
13665 (rs6000_invalid_builtin): Change error messages to replace mention
13666 of undocumented options with mention of the -mcpu=power9 option
13667 that enables those undocumented options.
13668 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
13669 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
13670 definition of this macro to correct an existing error.
13671 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
13672 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
13673 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
13674 descriptions of built-in functions so that they depend on
13675 -mcpu=power9 instead of on the corresponding undocumented flags.
13676 * doc/invoke.texi (Option Summary): Remove all mention of newly
13677 undocumented flags.
13678 (IBM RS/6000 and PowerPC Options): Likewise.
13679 * doc/md.texi (Constraints for Particuliar Machines): Remove all
13680 mention of newly undocumented flags.
13681
13682 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
13683
13684 * ipa-cp.c (determine_versionability): Do not create constprop clones,
13685 when target_clones attribute is set.
13686
13687 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13688
13689 * common.opt (funsafe-loop-optimizations): Mark ignore.
13690 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
13691 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
13692 related code.
13693 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
13694 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
13695
13696 2016-07-22 Bin Cheng <bin.cheng@arm.com>
13697
13698 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13699 Parameter.
13700 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13701 Parameter.
13702 (number_of_iterations_exit): Warn missed loop optimization for
13703 possible infinite loops.
13704
13705 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
13706
13707 PR target/71216
13708 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
13709 when to emit a ".machine" pseudo-op.
13710
13711 2016-07-22 Martin Liska <mliska@suse.cz>
13712
13713 PR gcov-profile/69028
13714 PR gcov-profile/62047
13715 * coverage.c (coverage_compute_lineno_checksum): Do not
13716 calculate checksum for fns w/o xloc.file.
13717 (coverage_compute_profile_id): Likewise.
13718
13719 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
13720
13721 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
13722 (avr_secondary_reload): ...and implementation.
13723 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
13724 * config/avr/avr.md (reload_in<mode>): Remove insns.
13725 (adjust_len) [lpm]: Remove insn attribute value.
13726 * config/avr/predicates.md (flash_operand): Remove insn predicate.
13727
13728 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13729
13730 PR middle-end/71876
13731 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
13732 attribute.
13733 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
13734 * calls.c (special_function_p): Remove the special handling of the
13735 "__builtin_" prefix.
13736
13737 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13738
13739 PR middle-end/71876
13740 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
13741 if STMT may be an alloca call.
13742 (gimple_alloca_call_p, alloca_call_p): Return only true for the
13743 builtin alloca call.
13744 * calls.h (gimple_maybe_alloca_call_p): New function.
13745 * tree-inline.c (inline_forbidden_p_stmt): Use
13746 gimple_maybe_alloca_call_p here.
13747
13748 2016-07-21 David Malcolm <dmalcolm@redhat.com>
13749
13750 * spellcheck-tree.c (best_macro_match::best_macro_match):
13751 Explictly specify the template arguments when invoking the base
13752 class constructor, to help older C++ compilers.
13753
13754 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13755
13756 PR sanitizer/71953
13757 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
13758 before builtin_decl_implicit.
13759
13760 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13761
13762 * optabs.c (emit_condiitonal_move): Short circuit for identical
13763 sources.
13764
13765 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13766
13767 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
13768 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
13769 (noce_conversion_profitable_p): New.
13770 (noce_try_store_flag_constants): Use it.
13771 (noce_try_addcc): Likewise.
13772 (noce_try_store_flag_mask): Likewise.
13773 (noce_try_cmove): Likewise.
13774 (noce_try_cmove_arith): Likewise.
13775 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
13776 overwriting it.
13777 (noce_convert_multiple_sets): Move cost model to here, from...
13778 (bb_ok_for_noce_convert_multiple_sets) ...here.
13779 (noce_process_if_block): Update calls for above changes.
13780 (noce_find_if_block): Record new noce_if_info parameters.
13781
13782 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
13783
13784 * target.def (max_noce_ifcvt_seq_cost): New.
13785 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
13786 * doc/tm.texi: Regenerate.
13787 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
13788 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
13789 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
13790 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
13791 * doc/invoke.texi: Document new params.
13792
13793 2016-07-21 Richard Biener <rguenther@suse.de>
13794
13795 PR tree-optimization/71947
13796 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
13797 ranges have useful limit_vr information.
13798
13799 2016-07-21 Richard Biener <rguenther@suse.de>
13800
13801 * function-tests.c (build_trivial_generic_function): Set
13802 BLOCK_SUPERCONTEXT of DECL_INITIAL.
13803 * omp-low.c (create_omp_child_function): Likewise.
13804 (grid_expand_target_grid_body): Likewise.
13805 * cgraphunit.c (init_lowered_empty_function): Likewise.
13806 (cgraph_node::expand_thunk): Likewise.
13807 * tree-parloops.c (create_loop_fn): Likewise.
13808 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
13809
13810 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13811
13812 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
13813 in comment.
13814
13815 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
13816
13817 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
13818 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
13819 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
13820 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
13821 values for insn attribute.
13822 * config/avr/avr.c (avr_out_insert_notbit): New function.
13823 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
13824 ADJUST_LEN_INSV_NOTBIT_0/_7.
13825 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
13826
13827 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13828
13829 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
13830 (chrec_convert_1, chrec_convert): Ditto.
13831 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
13832 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
13833 * tree-vrp.c (adjust_range_with_scev): Ditto.
13834 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
13835 (scev_var_range_cant_overflow): New function.
13836 (scev_probably_wraps_p): New parameter. Call above function.
13837 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
13838
13839 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13840
13841 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13842 by removing computation of may_be_zero.
13843
13844 2016-07-21 Jakub Jelinek <jakub@redhat.com>
13845
13846 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
13847
13848 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
13849
13850 Improving concepts performance and diagnostics.
13851 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
13852 for constraint satisfaction and subsumption.
13853 * timevar.h (auto_timevar): New constructor that matches the push/pop
13854 pattern of usage in pt.c.
13855
13856 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13857
13858 * hwint.h (HOST_WIDE_INT_0): New define.
13859 (HOST_WIDE_INT_0U): Ditto.
13860 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
13861 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
13862 * simplify-rtx.c: Ditto.
13863 * tree-object-size.c: Ditto.
13864
13865 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13866
13867 * config/s390/s390.c (s390_encode_section_info): Remove mode size
13868 check.
13869
13870 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
13871
13872 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
13873 * combine.c: Use HOST_WIDE_INT_M1U instead of
13874 ~(unsigned HOST_WIDE_INT) 0.
13875 * double-int.h: Ditto.
13876 * dse.c: Ditto.
13877 * dwarf2asm.c:Ditto.
13878 * expmed.c: Ditto.
13879 * genmodes.c: Ditto.
13880 * match.pd: Ditto.
13881 * read-rtl.c: Ditto.
13882 * tree-ssa-loop-ivopts.c: Ditto.
13883 * tree-ssa-loop-prefetch.c: Ditto.
13884 * tree-vect-generic.c: Ditto.
13885 * tree-vect-patterns.c: Ditto.
13886 * tree.c: Ditto.
13887
13888 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13889
13890 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
13891 constant addresses outside [0,0xc0] into a register.
13892 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
13893 cases where the base address register is unused after.
13894 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
13895 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
13896 (avr_out_store_psi_reg_disp_tiny): Same.
13897
13898 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13899
13900 Implement attribute progmem on reduced Tiny cores by adding
13901 flash offset 0x4000 to respective symbols.
13902
13903 PR target/71948
13904 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
13905 documentation how it works on reduced Tiny cores.
13906 (AVR Named Address Spaces): No support for reduced Tiny.
13907 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
13908 (avr_address_tiny_pm_p): New static function.
13909 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
13910 if the address is in progmem.
13911 (avr_assemble_integer): Same.
13912 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
13913 for symbol_ref in progmem.
13914 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
13915 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
13916 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
13917
13918 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
13919
13920 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
13921 * configure: Regenerate.
13922 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
13923 (USE_THIN_ARCHIVES): New variable.
13924 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
13925 this archive as a thin archive.
13926
13927 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13928
13929 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
13930 same location as last time, don't skip if we have fix-it hints.
13931 Clarify the skipping logic by converting it from one "if" clause
13932 to repeated "if" clauses.
13933 * spellcheck-tree.c: Include "cpplib.h".
13934 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
13935 (best_macro_match::best_macro_match): New constructor.
13936 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
13937 Move here from c/c-decl.c.
13938 (class best_macro_match): Move here from c/c-decl.c, converting
13939 from a typedef to a subclass, gaining a ctor.
13940
13941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13942
13943 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
13944 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
13945 define...
13946 (avr_addr_space_diagnose_usage): ...and implementation.
13947 (avr_addr_space_supported_p): New function.
13948 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
13949 report bad address space usage if that space is supported.
13950 (avr_insert_attributes): Same. No more complain about unsupported
13951 address spaces.
13952 * config/avr/avr-c.c (tm_p.h): Include it.
13953 (avr_cpu_cpp_builtins): Only define addr-space related built-in
13954 macro if avr_addr_space_supported_p.
13955
13956 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13957
13958 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13959 flag_toplevel_reorder.
13960
13961 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13962
13963 * gcc-rich-location.c
13964 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
13965 a const char *.
13966 * gcc-rich-location.h
13967 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
13968
13969 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13970
13971 * target.def (addr_space): Add new diagnose_usage to hook vector.
13972 * targhooks.c (default_addr_space_diagnose_usage): Add default
13973 implementation and...
13974 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
13975 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
13976 is some address space, call targetm.addr_space.diagnose_usage.
13977 * doc/tm.texi.in (Named Address Spaces): Add anchor for
13978 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
13979 * doc/tm.texi: Regenerate.
13980
13981 2016-07-20 Martin Liska <mliska@suse.cz>
13982
13983 PR middle-end/71898
13984 * graphite-isl-ast-to-gimple.c (later_of_the_two):
13985 Properly handly PHI stmts.
13986
13987 2016-07-20 Bin Cheng <bin.cheng@arm.com>
13988
13989 PR tree-optimization/71503
13990 PR tree-optimization/71683
13991 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
13992 and break.
13993
13994 2016-07-20 Martin Liska <mliska@suse.cz>
13995
13996 * doc/invoke.texi (-fipa-ra): Document when the option is
13997 disabled. Fix a typo.
13998
13999 2016-07-20 Martin Liska <mliska@suse.cz>
14000
14001 * Makefile.in: Include fibonacci_heap.c
14002 * fibonacci_heap.c: New file.
14003 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
14004 (fibonacci_heap::union_with): Fix deletion of the second heap.
14005 * selftest-run-tests.c (selftest::run_tests): Incorporate
14006 fibonacci heap tests.
14007 * selftest.h: Declare fibonacci_heap_c_tests.
14008
14009 2016-07-20 Martin Liska <mliska@suse.cz>
14010
14011 * selftest-run-tests.c (selftest::run_tests): New function.
14012 * selftest.h (sreal_c_tests): Declare.
14013 * sreal.c (sreal_verify_basics): New function.
14014 (verify_aritmetics): Likewise.
14015 (sreal_verify_arithmetics): Likewise.
14016 (verify_shifting): Likewise.
14017 (sreal_verify_shifting): Likewise.
14018 (void sreal_c_tests): Likewise.
14019
14020 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14021
14022 PR rtl-optimization/71916
14023 * cfgrtl.c (contains_no_active_insn_p): Return false also for
14024 bb which have a single succ fake edge.
14025
14026 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
14027
14028 PR debug/71855
14029 * dwarf2out.c (gen_subprogram_die): Only call
14030 gen_unspecified_parameters_die while dumping early dwarf.
14031
14032 2016-07-19 Jakub Jelinek <jakub@redhat.com>
14033
14034 PR middle-end/71874
14035 * gimple-fold.c (fold_builtin_memory_op): Use
14036 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
14037
14038 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
14039
14040 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
14041 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
14042 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
14043 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
14044 * combine.c: Ditto.
14045 * cse.c: Ditto.
14046 * dojump.c: Ditto.
14047 * double-int.c: Ditto.
14048 * dse.c: Ditto.
14049 * dwarf2out.c: Ditto.
14050 * expmed.c: Ditto.
14051 * expr.c: Ditto.
14052 * fold-const.c: Ditto.
14053 * function.c: Ditto.
14054 * fwprop.c: Ditto.
14055 * genmodes.c: Ditto.
14056 * hwint.c: Ditto.
14057 * hwint.h: Ditto.
14058 * ifcvt.c: Ditto.
14059 * loop-doloop.c: Ditto.
14060 * loop-invariant.c: Ditto.
14061 * loop-iv.c: Ditto.
14062 * match.pd: Ditto.
14063 * optabs.c: Ditto.
14064 * real.c: Ditto.
14065 * reload.c: Ditto.
14066 * rtlanal.c: Ditto.
14067 * simplify-rtx.c: Ditto.
14068 * stor-layout.c: Ditto.
14069 * toplev.c: Ditto.
14070 * tree-ssa-loop-ivopts.c: Ditto.
14071 * tree-vect-generic.c: Ditto.
14072 * tree-vect-patterns.c: Ditto.
14073 * tree.c: Ditto.
14074 * tree.h: Ditto.
14075 * ubsan.c: Ditto.
14076 * varasm.c: Ditto.
14077 * wide-int-print.cc: Ditto.
14078 * wide-int.cc: Ditto.
14079 * wide-int.h: Ditto.
14080
14081 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14082
14083 * selftest.c (selftest::assert_streq): Handle NULL values of
14084 val_actual and val_expected.
14085
14086 2016-07-19 Martin Jambor <mjambor@suse.cz>
14087
14088 PR fortran/71688
14089 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
14090 rather than cgraph_create_node to get a call graph node.
14091
14092 2016-07-19 Richard Biener <rguenther@suse.de>
14093
14094 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
14095 handle all tcc_constant bases and valueize SSA names.
14096 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
14097 tcc_constant bases.
14098
14099 2016-07-19 David Malcolm <dmalcolm@redhat.com>
14100
14101 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
14102 the flags of the exit block and bb2, not just the entry block.
14103
14104 2016-07-19 Richard Biener <rguenther@suse.de>
14105
14106 PR tree-optimization/71901
14107 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
14108 align member, group stuff with the bitfield.
14109 (vn_ref_op_align_unit): New inline.
14110 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
14111 record element alignment and operand 3 unchanged.
14112 (ao_ref_init_from_vn_reference): Adjust.
14113 (valueize_refs_1): Likewise.
14114 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14115
14116 2016-07-19 Richard Biener <rguenther@suse.de>
14117
14118 PR tree-optimization/71908
14119 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
14120 symbolic constants in a more reliable way.
14121
14122 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
14123
14124 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
14125 comment.
14126 (vect_update_inits_of_drs): Likewise.
14127 (vect_create_cond_for_alias_checks): Likewise.
14128 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
14129
14130 2016-07-19 Richard Biener <rguenther@suse.de>
14131
14132 PR lto/71907
14133 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
14134 with an abstract origin that is not an inlined function outer
14135 scope add a self-reference as abstract origin.
14136 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
14137
14138 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14139
14140 PR target/71493
14141 * config/rs6000/rs6000.c (rs6000_function_value): Fix
14142 unintentional System V.4 structure return breakage for structures
14143 with a single floating point element.
14144
14145 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14146
14147 PR tree-optimization/71734
14148 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
14149 contains REF, use it to check safelen, assume that safelen value
14150 must be greater 1, fix style.
14151 (ref_indep_loop_p_2): Add REF_LOOP argument.
14152 (ref_indep_loop_p): Pass LOOP as additional argument to
14153 ref_indep_loop_p_2.
14154
14155 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
14156
14157 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
14158 allocation in the prologue.
14159 * explow.c (get_dynamic_stack_base): New function to return an address
14160 expression for the dynamic stack base.
14161 (get_dynamic_stack_size): New function to do the required dynamic stack
14162 space size calculations.
14163 (allocate_dynamic_stack_space): Use new functions.
14164 (align_dynamic_address): Move some code from
14165 allocate_dynamic_stack_space to new function.
14166 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
14167
14168 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14169
14170 * config/s390/s390.c (s390_encode_section_info): Always set
14171 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
14172 found.
14173
14174 2016-07-18 Richard Biener <rguenther@suse.de>
14175
14176 PR tree-optimization/71893
14177 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
14178 for sizetype cast added by array_ref_element_size.
14179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14180
14181 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
14182
14183 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
14184 register parameters. Remove code to initialize argument pointer
14185 on TARGET_64BIT. Optimize call to _mcount when it can be reached
14186 using a pc-relative branch. Cleanup conditional code.
14187 * config/pa/pa.md (call_mcount): New expander.
14188 (call_mcount_nonpic): New insn.
14189 (call_mcount_pic): New insn and split.
14190 (call_mcount_pic_post_reload): New insn.
14191 (call_mcount_64bit): New insn and split.
14192 (call_mcount_64bit_post_reload): New insn.
14193
14194 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
14195
14196 * config/avr/predicates.md (const_m255_to_m1_operand): New.
14197 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
14198 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
14199 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
14200 (*usum_widenqihi3, *udiff_widenqihi3)
14201 (*addhi3_zero_extend.const): New combiner insns.
14202 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
14203 just 1 bit is affected.
14204 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
14205 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
14206
14207 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
14208
14209 * omp-low.c (lower_omp_target): Mark data clauses with
14210 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
14211 zero-length subarrays.
14212
14213 2016-07-15 Richard Biener <rguenther@suse.de>
14214
14215 PR tree-optimization/71881
14216 * tree-loop-distribution.c (destroy_loop): Remove blocks in
14217 reverse DOM order to make debug temp generation happy.
14218
14219 2016-07-15 Richard Biener <rguenther@suse.de>
14220
14221 PR tree-optimization/71887
14222 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
14223 verify it is not zero for division / modulo handling.
14224 (value_replacement): Adjust.
14225
14226 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
14227 Julian Brown <julian@codesourcery.com>
14228
14229 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
14230 * config/aarch64/aarch64-cost-tables.h
14231 (vulcan_extra_costs): New variable.
14232 * config/aarch64/aarch64.c
14233 (vulcan_addrcost_table): Likewise.
14234 (vulcan_regmove_cost): Likewise.
14235 (vulcan_vector_cost): Likewise.
14236 (vulcan_branch_cost): Likewise.
14237 (vulcan_tunings): Likewise.
14238
14239 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
14240
14241 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
14242 (output_in_order): Loop over undefined variables too. Output them
14243 via assemble_undefined_decl. Skip variables that correspond to hard
14244 registers or have value-exprs.
14245 * varpool.c (symbol_table::output_variables): Handle undefined
14246 variables together with defined ones.
14247
14248 2016-07-15 Richard Biener <rguenther@suse.de>
14249
14250 * tree-ssa-pre.c (get_representative_for): Make sure to return
14251 the value number of SSA names.
14252 (phi_translate_1): get_representative_for cannot return NULL.
14253 (do_pre_regular_insertion): Remove redundant call to
14254 fully_constant_expression.
14255 (do_pre_partial_partial_insertion): Likewise.
14256
14257 2016-07-15 Bin Cheng <bin.cheng@arm.com>
14258
14259 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
14260 (derive_simple_iv_with_niters): New function.
14261 (simple_iv): Rewrite using simple_iv_with_niters.
14262 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
14263 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
14264 function.
14265 (number_of_iterations_exit): Rewrite using above function.
14266 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
14267 Decl.
14268
14269 2016-07-15 Richard Biener <rguenther@suse.de>
14270
14271 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
14272 vec_construct cost.
14273
14274 2016-07-14 Jakub Jelinek <jakub@redhat.com>
14275
14276 PR tree-optimization/71872
14277 * tree-data-ref.c (get_references_in_stmt): Ignore references
14278 with is_gimple_constant get_base_address.
14279
14280 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14281
14282 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
14283 (TARGET_HAVE_LDACQD): New macro.
14284 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
14285 than TARGET_HAVE_LDACQ.
14286 (arm_load_acquire_exclusivedi): Likewise.
14287 (arm_store_release_exclusivedi): Likewise.
14288
14289 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14290
14291 PR rtl-optimization/71878
14292 * lra-constraints.c (match_reload): Pass information about other
14293 output operands. Create new unique register value if matching input
14294 operand shares same register value as output operand being considered.
14295 (curr_insn_transform): Record output operands already processed.
14296
14297 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14298
14299 PR target/65951
14300 PR tree-optimization/70923
14301 * tree-vect-patterns.c: Include mult-synthesis.h.
14302 (target_supports_mult_synth_alg): New function.
14303 (synth_lshift_by_additions): Likewise.
14304 (apply_binop_and_append_stmt): Likewise.
14305 (vect_synth_mult_by_constant): Likewise.
14306 (target_has_vecop_for_code): Likewise.
14307 (vect_recog_mult_pattern): Use above functions to synthesize vector
14308 multiplication by integer constants.
14309
14310 2016-07-14 Alan Modra <amodra@gmail.com>
14311
14312 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
14313 gpr alternatives. Correct '*' placement on Y,r alternative.
14314 Add '*' on operand 1 of r,r alternative.
14315
14316 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14317
14318 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
14319 * expmed.h: ... Here.
14320
14321 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
14322
14323 * gimple.h (stmt_can_terminate_bb_p): New function.
14324 * tree-cfg.c (need_fake_edge_p): Rename to ...
14325 (stmt_can_terminate_bb_p): ... this; return true if stmt can
14326 throw external; handle const and pure calls.
14327 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
14328
14329 2016-07-14 Richard Biener <rguenther@suse.de>
14330
14331 PR tree-optimization/71866
14332 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
14333 (do_hoist_insertion): Avoid endless recursion when we
14334 didn't insert anything because we managed to simplify
14335 things down to a constant or SSA name.
14336 (fully_constant_expression): Re-write in terms of ...
14337 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
14338 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
14339 vn_nary_build_or_lookup_1.
14340 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
14341 (vn_nary_build_or_lookup): ... this which now wraps it.
14342
14343 2016-07-14 Alan Modra <amodra@gmail.com>
14344
14345 PR target/71733
14346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
14347 with p9_vector override before power9-dform override.
14348
14349 2016-07-13 Andi Kleen <ak@linux.intel.com>
14350
14351 * value-prof.c (gimple_value_profile_transformations): Don't run
14352 when auto_profile is on.
14353
14354 2016-07-13 Andi Kleen <ak@linux.intel.com>
14355
14356 * auto-profile.c (update_inlined_ind_target,
14357 afdo_indirect_call): Print information to dump file.
14358
14359 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
14360
14361 * genrecog.c (special_predicate_operand_p): New function.
14362 (predicate_name): Move function.
14363 (validate_pattern): Don't warn about missing mode for all
14364 define_special_predicate predicates.
14365
14366 2016-07-13 Bin Cheng <bin.cheng@arm.com>
14367
14368 * tree-vect-data-refs.c (vect_no_alias_p): New function.
14369 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
14370 resolve alias checks which are known at compilation time.
14371 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
14372 alias checks are resolved. Move dump info for too many runtime
14373 alias checks to here...
14374 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
14375
14376 2016-07-13 Richard Biener <rguenther@suse.de>
14377
14378 PR tree-optimization/24574
14379 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
14380 position and add shift, rotate, divison and modulo support
14381 for left zero.
14382 (value_replacement): Pass in argument position to absorbing_element_p.
14383
14384 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
14385
14386 PR ipa/71633
14387 * ipa-inline-transform.c (inline_call): Support
14388 instrumented thunks.
14389
14390 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14391
14392 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
14393 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
14394 divide feature.
14395 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
14396 Baseline. Make initial alternative TARGET_32BIT only.
14397 (udivsi3): Likewise.
14398 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
14399 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
14400 target.
14401
14402 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14403
14404 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
14405 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
14406 availability with TARGET_HAVE_MOVT.
14407 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
14408 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
14409 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
14410 UINTVAL.
14411 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
14412 extra instruction if MOVW is available. Use a cost variable
14413 incremented by COSTS_N_INSNS (1) when the condition match rather than
14414 returning an arithmetic expression based on COSTS_N_INSNS. Make
14415 constant with bottom half word zero cost 2 instruction if MOVW is
14416 available.
14417 * config/arm/arm.md (define_attr "arch"): Add v8mb.
14418 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
14419 target is ARMv8-M Baseline.
14420 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
14421 (arm_movtas_ze): Likewise.
14422 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
14423 alternative for constants satisfying j constraint.
14424 (thumb1_movsi_insn): Likewise.
14425 (movsi splitter for K alternative): Tighten condition to not trigger
14426 if movt is available and j constraint is satisfied.
14427 (Pe immediate splitter): Likewise.
14428 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
14429 constant fitting in an halfword to use MOVW.
14430 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
14431 effective target.
14432
14433 2016-07-13 Richard Biener <rguenther@suse.de>
14434
14435 PR middle-end/71104
14436 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
14437 gimplifying the LHS. Make sure to gimplify a returning twice
14438 call LHS without using SSA names.
14439
14440 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14441
14442 * tree-data-ref.c (find_data_references_in_stmt): Remove
14443 unnecessary call to vec::release.
14444 (graphite_find_data_references_in_stmt): Likewise.
14445 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
14446 * tree-vect-stmts.c (vectorizable_condition): Likewise.
14447
14448 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14449
14450 * cfgexpand.c (expand_used_vars): Make the type of a local
14451 variable auto_vec.
14452 * genmatch.c (lower_for): Likewise.
14453 * haifa-sched.c (haifa_sched_init): Likewise.
14454 (add_to_speculative_block): Likewise.
14455 (create_check_block_twin): Likewise.
14456 * predict.c (handle_missing_profiles): Likewise.
14457 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
14458 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
14459 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14460 Likewise.
14461 (maybe_lower_iteration_bound): Likewise.
14462 * tree-ssa-sccvn.c (DFS): Likewise.
14463 * tree-stdarg.c (reachable_at_most_once): Likewise.
14464 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
14465 (vectorizable_store): Likewise.
14466
14467 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14468
14469 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
14470 (sccvn_dom_walker): make cond_stack an auto_vec.
14471
14472 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14473
14474 * ree.c (struct ext_state): Make type of members auto_vec.
14475 (find_and_remove_re): Adjust.
14476
14477 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14478
14479 * cfgexpand.c (struct stack_vars_data): Make type of fields
14480 auto_vec.
14481 (expand_used_vars): Adjust.
14482
14483 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14484
14485 * ipa.c (record_cdtor_fn): Adjust.
14486 (build_cdtor_fns): Likewise.
14487 (ipa_cdtor_merge): Make static_ctors and static_dtors local
14488 variables.
14489
14490 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14491
14492 * genextract.c (struct accum_extract): Add constructor and make
14493 members auto_vec.
14494 (gen_insn): Adjust.
14495
14496 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14497
14498 * tree.c (struct free_lang_data_d): Add constructor and change
14499 types of members to ones that automatically manage resources.
14500 (fld_worklist_push): Adjust.
14501 (find_decls_types): Likewise.
14502 (find_decls_types_in_eh_region): Likewise.
14503 (free_lang_data_in_cgraph): Stop manually creating and
14504 destroying members of free_lang_data_d.
14505
14506 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
14507
14508 PR rtl-optimization/68961
14509 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
14510 peephole variant. Use sse_reg_operand predicates.
14511
14512 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
14513
14514 * config/i386/predicates.md (x86_64_immediate_operand)
14515 <case CONST_INT>: Remove unneeded truncation to DImode.
14516 <case CONST>: Ditto.
14517 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14518
14519 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14520
14521 PR target/71805
14522 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
14523 The xxperm and xxpermr instructions require that the 2nd input
14524 operand overlap with the output operand, and not the 1st.
14525 (altivec_vperm_v8hiv16qi): Likewise.
14526 (altivec_vperm_<mode>_uns_internal): Likewise.
14527 (altivec_vpermr_<mode>_internal): Likewise.
14528 (vperm_v8hiv4si): Likewise.
14529 (vperm_v16qiv8hi): Likewise.
14530
14531 2016-07-12 Nathan Sidwell <nathan@acm.org>
14532
14533 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
14534 when -mno-pic-data-is-text-relative is in effect, by default.
14535 * doc/invoke.texi (mpic-data-is-text-relative): Document new
14536 behavior and clarify.
14537
14538 2016-07-12 Martin Liska <mliska@suse.cz>
14539
14540 * params.def: Add avg-loop niter.
14541 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
14542 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
14543 * doc/invoke.texi: Document the new parameter.
14544
14545 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14546
14547 PR middle-end/71700
14548 * expr.c (store_constructor): Mask sign-extended bits when widening
14549 sub-word constructor element at the start of a word.
14550
14551 2016-07-12 Martin Liska <mliska@suse.cz>
14552
14553 * Makefile.in: Append rule for params-options.h.
14554 * params-options.h: New file.
14555
14556 2016-07-12 Martin Liska <mliska@suse.cz>
14557
14558 * ira-build.c (mark_loops_for_removal): Properly iterate
14559 loops.
14560
14561 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
14562 Richard Biener <rguenther@suse.de>
14563
14564 PR tree-optimization/23286
14565 PR tree-optimization/70159
14566 * doc/invoke.texi: Document -fcode-hoisting.
14567 * common.opt (fcode-hoisting): New flag.
14568 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
14569 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
14570 (do_regular_insertion): Rename to ...
14571 (do_pre_regular_insertion): ... this and amend general comments
14572 on insertion strathegy.
14573 (do_partial_partial_insertion): Rename to ...
14574 (do_pre_partial_partial_insertion): ... this.
14575 (do_hoist_insertion): New function.
14576 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
14577 and call do_hoist_insertion properly.
14578 (insert): Adjust.
14579 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
14580 (pass_pre::execute): Register hoist_insert stats.
14581
14582 2016-07-12 Jakub Jelinek <jakub@redhat.com>
14583
14584 PR middle-end/71716
14585 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
14586 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
14587 is different from mode's bitsize. Small cleanup.
14588
14589 2016-07-12 Richard Biener <rguenther@suse.de>
14590
14591 PR rtl-optimization/68961
14592 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
14593 to simplify to a non-constant.
14594
14595 2016-07-11 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR middle-end/71758
14598 * omp-low.c (expand_omp_target): Gimplify device.
14599
14600 PR tree-optimization/71823
14601 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
14602 to get vec_oprnds2 from op2.
14603
14604 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
14605
14606 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
14607 Hoist common subexpressions.
14608 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
14609
14610 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
14611
14612 PR target/71800
14613 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
14614 prevent generation of 'stxsiwx' on pre Power8 hardware.
14615
14616 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14617
14618 * input.c: Include cpplib.h.
14619 (selftest::temp_source_file): New class.
14620 (selftest::temp_source_file::temp_source_file): New ctor.
14621 (selftest::temp_source_file::~temp_source_file): New dtor.
14622 (selftest::should_have_column_data_p): New function.
14623 (selftest::test_should_have_column_data_p): New function.
14624 (selftest::temp_line_table): New class.
14625 (selftest::temp_line_table::temp_line_table): New ctor.
14626 (selftest::temp_line_table::~temp_line_table): New dtor.
14627 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
14628 it to create a temp_line_table.
14629 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
14630 locations that are known to have column data.
14631 (selftest::line_table_case): New struct.
14632 (selftest::test_reading_source_line): Move tempfile handling
14633 to class temp_source_file.
14634 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
14635 (selftest::assert_token_loc_eq): New function.
14636 (ASSERT_TOKEN_LOC_EQ): New macro.
14637 (selftest::test_lexer): New function.
14638 (selftest::boundary_locations): New array.
14639 (selftest::input_c_tests): Call test_should_have_column_data_p.
14640 Loop over a test matrix of interesting values of location and
14641 default_range_bits, calling test_lexer on each case in the matrix.
14642 Move call to test_accessing_ordinary_linemaps into the matrix.
14643 * selftest.h (ASSERT_EQ): Reimplement in terms of...
14644 (ASSERT_EQ_AT): New macro.
14645
14646 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
14647
14648 PR target/71801
14649 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14650 Don't convert TImode in debug insn.
14651
14652 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14653
14654 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
14655 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
14656 (tree_type_common::lang_flag_7): New.
14657 (tree_type_common::spare): Reduce size.
14658 * tree.h (TYPE_ALIGN_OK): Remove.
14659 (TYPE_LANG_FLAG_7): New.
14660 (get_inner_reference): Adjust header.
14661 * print-tree.c (print_node): Adjust.
14662 * expr.c (get_inner_reference): Remove parameter keep_aligning.
14663 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
14664 calls to get_inner_reference.
14665 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
14666 handling of TYPE_ALIGN_OK.
14667 * builtins.c (get_object_alignment_2): Adjust call to
14668 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
14669 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
14670 TYPE_ALIGN_OK.
14671 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
14672 * cfgexpand.c (expand_debug_expr): Likewise.
14673 * dbxout.c (dbxout_expand_expr): Likewise.
14674 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
14675 loc_list_from_tree, fortran_common): Likewise.
14676 * fold-const.c (optimize_bit_field_compare,
14677 decode_field_reference, fold_unary_loc, fold_comparison,
14678 split_address_to_core_and_offset): Likewise.
14679 * gimple-laddress.c (execute): Likewise.
14680 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
14681 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
14682 * hsa-gen.c (gen_hsa_addr): Likewise.
14683 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
14684 * tsan.c (instrument_expr): Likewise.
14685 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
14686 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
14687 * tree-affine.c (tree_to_aff_combination,
14688 get_inner_reference_aff): Adjust calls to get_inner_reference.
14689 * tree-data-ref.c (split_constant_offset_1,
14690 dr_analyze_innermost): Likewise.
14691 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
14692 * tree-sra.c (ipa_sra_check_caller): Likewise.
14693 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
14694 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
14695 bswap_replace): Likewise.
14696 * tree-vect-data-refs.c (vect_check_gather,
14697 vect_analyze_data_refs): Likewise.
14698 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
14699 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
14700 TYPE_ALIGN_OK.
14701
14702 2016-07-11 David Malcolm <dmalcolm@redhat.com>
14703
14704 * Makefile.in (selftest-valgrind): New phony target.
14705 * function-tests.c (selftest::build_cfg): Delete pass instances
14706 created by the test.
14707 (selftest::convert_to_ssa): Likewise.
14708 (selftest::test_expansion_to_rtl): Likewise.
14709 * tree-cfg.c (selftest::test_linear_chain): Release dominator
14710 vectors.
14711 (selftest::test_diamond): Likewise.
14712
14713 2016-07-11 Richard Biener <rguenther@suse.de>
14714
14715 PR tree-optimization/71816
14716 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
14717 than replacing all of its operands.
14718
14719 2016-07-11 Alan Modra <amodra@gmail.com>
14720
14721 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
14722 (ctr<mode>): Add unspec.
14723 (ctr<mode>_internal*): Likewise.
14724
14725 2016-07-08 James Bowman <james.bowman@ftdichip.com>
14726
14727 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
14728 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
14729
14730 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
14731
14732 PR rtl-optimization/71621
14733 * lra-constraints.c (process_alt_operands): Check combination of
14734 reg class and mode.
14735
14736 2016-07-08 Jason Merrill <jason@redhat.com>
14737 Richard Biener <rguenther@suse.de>
14738
14739 P0145: Refining Expression Order for C++.
14740 * gimplify.c (initial_rhs_predicate_for): New.
14741 (gimplfy_modify_expr): Gimplify RHS before LHS.
14742
14743 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14744
14745 PR target/71297
14746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14747 Allow standard error handling to take over when a wrong number
14748 of arguments is presented to __builtin_vec_ld () or
14749 __builtin_vec_st ().
14750
14751 2016-07-08 Jiong Wang <jiong.wang@arm.com>
14752
14753 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
14754 variants.
14755 (smin): Likewise.
14756 (fmax): New entry.
14757 (fmin): Likewise.
14758 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
14759 __builtin_aarch64_fmaxv2sf.
14760 (vmaxnmq_f32): Likewise.
14761 (vmaxnmq_f64): Likewise.
14762 (vminnm_f32): Likewise.
14763 (vminnmq_f32): Likewise.
14764 (vminnmq_f64): Likewise.
14765
14766 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14767
14768 PR target/71806
14769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
14770 enable -mfloat128-hardware by default.
14771 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
14772 that IEEE 128-bit hardware support needs.
14773 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14774 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
14775 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
14776 floating point requires.
14777 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14778 -mfloat128 and -mfloat128-hardware changes.
14779
14780 2016-07-08 Alan Hayward <alan.hayward@arm.com>
14781
14782 PR tree-optimization/71667
14783 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
14784
14785 2016-07-08 Martin Liska <mliska@suse.cz>
14786
14787 PR middle-end/71606
14788 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
14789 folding produces SAVE_EXPRs, thus return false for the type.
14790
14791 2016-07-07 Martin Liska <mliska@suse.cz>
14792
14793 * file-find.c (remove_prefix): New function.
14794 * file-find.h (remove_prefix): Declare the function.
14795 * gcc-ar.c (main): Skip a folder of the wrapper if
14796 a wrapped binary would point to the same file.
14797
14798 2016-07-07 Jan Hubicka <jh@suse.cz>
14799
14800 * tree-scalar-evolution.c (iv_can_overflow_p): export.
14801 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
14802 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
14803
14804 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
14805
14806 PR ipa/71624
14807 * ipa-inline-analysis.c (compute_inline_parameters): Set
14808 local.can_change_signature to false for intrumentation
14809 thunk callees.
14810
14811 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14812
14813 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
14814 with TARGET_HAVE_MOVT.
14815 (TARGET_HAVE_MOVT): Define.
14816 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
14817 availability with TARGET_HAVE_MOVT.
14818 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
14819 availability.
14820 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
14821 TARGET_THUMB2.
14822 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
14823 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
14824 * config/arm/constraints.md (define_constraint "j"): Use
14825 TARGET_HAVE_MOVT to check MOVT availability.
14826
14827 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14828
14829 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
14830
14831 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14832
14833 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
14834 (armv8-m.main): Likewise.
14835 (armv8-m.main+dsp): Likewise.
14836 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
14837 (FL_FOR_ARCH8M_MAIN): Likewise.
14838 * config/arm/arm-tables.opt: Regenerate.
14839 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
14840 armv8-m.main+dsp to BE8_LINK_SPEC.
14841 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
14842 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
14843 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
14844 Baseline and Mainline.
14845 (arm_option_override_internal): Also disable arm_restrict_it when
14846 !arm_arch_notm. Update comment for -munaligned-access to also cover
14847 ARMv8-M Baseline.
14848 (arm_file_start): Increase buffer size for printing architecture name.
14849 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
14850 and armv8-m.main+dsp.
14851 (mno-unaligned-access): Clarify that this is disabled by default for
14852 ARMv8-M Baseline architectures as well.
14853
14854 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
14855
14856 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
14857 decide whether to prevent some libgcc routines being included for some
14858 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
14859 link between this condition and the one in
14860 libgcc/config/arm/lib1func.S.
14861
14862 2016-07-07 Richard Biener <rguenther@suse.de>
14863
14864 * tree-ssa-pre.c: Include alias.h.
14865 (compute_avail): If we have multiple VN_REFERENCEs with the
14866 same hashtable entry adjust that to make it a valid replacement
14867 for all of them with respect to alignment and aliasing
14868 when doing insertion.
14869 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
14870 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
14871
14872 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
14873
14874 PR target/70098
14875 PR target/71763
14876 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
14877 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
14878 constraint.
14879
14880 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14881
14882 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
14883 (adjust_mems): Adjust.
14884 (adjust_insn): Likewise.
14885 (prepare_call_arguments): Likewise.
14886
14887 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14888
14889 * gcse.c (struct ls_expr): Make stores field a vector.
14890 (ldst_entry): Adjust.
14891 (free_ldst_entry): Likewise.
14892 (print_ldst_list): Likewise.
14893 (compute_ld_motion_mems): Likewise.
14894 (update_ld_motion_stores): Likewise.
14895
14896 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14897
14898 * gcse.c (struct ls_expr): Remove loads field.
14899 (ldst_entry): Adjust.
14900 (free_ldst_entry): Likewise.
14901 (print_ldst_list): Likewise.
14902 (compute_ld_motion_mems): Likewise.
14903
14904 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14905
14906 * store-motion.c (struct st_expr): Make antic_stores a vector.
14907 (st_expr_entry): Adjust.
14908 (free_st_expr_entry): Likewise.
14909 (print_store_motion_mems): Likewise.
14910 (find_moveable_store): Likewise.
14911 (compute_store_table): Likewise.
14912 (remove_reachable_equiv_notes): Likewise.
14913 (replace_store_insn): Likewise.
14914 (build_store_vectors): Likewise.
14915
14916 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14917
14918 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
14919 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
14920
14921 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
14922
14923 PR tree-optimization/71518
14924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
14925 misalign also for outer loops with negative step.
14926
14927 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
14928
14929 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
14930 (cortex_a53_shift): Add mov_shift.
14931 (cortex_a53_shift_reg): Add new reservation for register shifts.
14932 (cortex_a53_alu): Remove bfm.
14933 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
14934 (cortex_a53_alu_extr): Add new reservation for EXTR.
14935 (bypasses): Improve bypass modelling.
14936
14937 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14938
14939 PR target/50739
14940 * config/avr/avr.c (avr_asm_select_section): Strip off
14941 SECTION_DECLARED from flags when calling get_section.
14942
14943 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14944
14945 * tree-vectorizer.h (vect_memory_access_type): Add
14946 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
14947 * tree-vect-stmts.c (compare_step_with_zero): New function.
14948 (perm_mask_for_reverse): Move further up file.
14949 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
14950 step is negative.
14951 (get_negative_load_store_type): New function.
14952 (get_load_store_type): Call it. Add an ncopies argument.
14953 (vectorizable_mask_load_store): Update call accordingly and
14954 remove tests for negative steps.
14955 (vectorizable_store, vectorizable_load): Likewise. Handle new
14956 memory_access_types.
14957
14958 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14959
14960 * tree-vectorizer.h (vect_memory_access_type): New enum.
14961 (_stmt_vec_info): Add a memory_access_type field.
14962 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
14963 (vect_model_store_cost): Take an access type instead of a boolean.
14964 (vect_model_load_cost): Likewise.
14965 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
14966 vect_model_store_cost and vect_model_load_cost.
14967 * tree-vect-stmts.c (vec_load_store_type): New enum.
14968 (vect_model_store_cost): Take an access type instead of a
14969 store_lanes_p boolean. Simplify tests.
14970 (vect_model_load_cost): Likewise, but for load_lanes_p.
14971 (get_group_load_store_type, get_load_store_type): New functions.
14972 (vectorizable_store): Use get_load_store_type. Record the access
14973 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
14974 (vectorizable_load): Likewise.
14975 (vectorizable_mask_load_store): Likewise. Replace is_store
14976 variable with vls_type.
14977
14978 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14979
14980 * tree-vectorizer.h (vect_grouped_load_supported): Add a
14981 single_element_p parameter.
14982 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14983 Check the PR65518 case here rather than in vectorizable_load.
14984 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
14985 * tree-vect-stmts.c (vectorizable_load): Likewise.
14986
14987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14988
14989 * tree-vectorizer.h (gather_scatter_info): New structure.
14990 (vect_check_gather_scatter): Return a bool rather than a decl.
14991 Replace return-by-pointer arguments with a single
14992 gather_scatter_info *.
14993 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
14994 (vect_analyze_data_refs): Update call accordingly.
14995 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14996 (vectorizable_mask_load_store): Likewise. Also record the
14997 offset dt and vectype in the gather_scatter_info.
14998 (vectorizable_store): Likewise.
14999 (vectorizable_load): Likewise.
15000
15001 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15002
15003 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
15004 strided groups, use the cost of N scalar accesses instead
15005 of ncopies vector accesses.
15006 (vect_model_load_cost): Likewise.
15007
15008 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15009
15010 * tree-vect-stmts.c (vect_cost_group_size): Delete.
15011 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
15012 variable to indicate when once-per-group costs are being used.
15013 (vect_model_load_cost): Likewise. Fix comment and misindented code.
15014
15015 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
15016
15017 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
15018 peeling-for-gaps condition.
15019
15020 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15021
15022 * config/s390/s390.c (s390_expand_vec_init): Force initializer
15023 element to register if it doesn't match general_operand.
15024
15025 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
15026 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15027
15028 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
15029 prototype.
15030 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
15031 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
15032 (SIGNBIT): New mode iterator.
15033 (Fsignbit): New mode attribute.
15034 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
15035 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
15036 when direct moves are available.
15037 (signbit<mode>2_dm): New define_insn_and_split).
15038 (signbit<mode>2_dm2): New define_insn.
15039
15040 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15041
15042 PR rtl-optimization/71594
15043 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
15044 into subregs of appropriate mode before trying to emit a conditional
15045 move.
15046
15047 2016-07-05 Jan Hubicka <jh@suse.cz>
15048
15049 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
15050 (simple_iv): Use it.
15051
15052 2016-07-05 Jan Hubicka <jh@suse.cz>
15053
15054 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
15055
15056 2016-07-05 Jiong Wang <jiong.wang@arm.com>
15057
15058 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
15059 "offmemok".
15060
15061 2016-07-05 Jan Hubicka <jh@suse.cz>
15062
15063 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
15064 IV can overflow.
15065
15066 2016-07-05 Richard Biener <rguenther@suse.de>
15067
15068 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
15069 Handle empty else block.
15070 (is_feasible_trace): Likewise.
15071 (split_paths): Likewise.
15072
15073 2016-07-05 Richard Biener <rguenther@suse.de>
15074
15075 * tree-loop-distribution.c (distribute_loop): Fix issue with
15076 the cost model loop.
15077
15078 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
15079
15080 * config/arm/neon-testgen.ml: Delete.
15081 * config/arm/neon.ml: Delete.
15082
15083 2016-07-04 Jakub Jelinek <jakub@redhat.com>
15084
15085 PR c++/71739
15086 * tree.c (attribute_value_equal): Use get_attribute_name instead of
15087 directly using TREE_PURPOSE.
15088
15089 2016-07-04 Jiong Wang <jiong.wang@arm.com>
15090
15091 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
15092 * config/aarch64/aarch64_neon.h: Likewise.
15093 * config/aarch64/arm_neon.h: Likewise.
15094 * config/aarch64/atomics.md: Likewise.
15095 * config/aarch64/aarch64-simd-builtins.def: Likewise.
15096 * doc/invoke.texi: Likewise.
15097
15098 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15099
15100 * config/s390/s390.md: Add "z13" cpu_facility.
15101 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
15102 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
15103 condition" type instructions.
15104
15105 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
15106 Jeff Law <law@redhat.com>
15107
15108 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
15109 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
15110
15111 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
15112
15113 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
15114 permutation for TARGET_AVX512F.
15115 (ix86_expand_vec_one_operand_perm_avx512): New function.
15116 (expand_vec_perm_1): Invoke introduced function.
15117 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15118 it may be not valid after vectorization.
15119
15120 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15121
15122 PR target/63874
15123 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
15124 typo in comment. Only force to memory if it is a weak
15125 external reference.
15126
15127 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
15128 Jiong Wang <jiong.wang@arm.com>
15129
15130 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
15131 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
15132 (AARCH64_FL_F16): New.
15133 (AARCH64_FL_FOR_ARCH8_2): New.
15134 (AARCH64_ISA_8_2): New.
15135 (AARCH64_ISA_F16): New.
15136 (TARGET_FP_F16INST): New.
15137 (TARGET_SIMD_F16INST): New.
15138 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
15139 ("fp"): Disabling "fp" also disables "fp16".
15140 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
15141 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
15142 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
15143 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
15144
15145 2016-07-04 Jan Beulich <jbeulich@suse.com>
15146
15147 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
15148
15149 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15150
15151 PR target/71720
15152 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
15153 the insns, use an insn form that does not adjust the offset on
15154 little endian systems.
15155
15156 2016-07-01 Jan Beulich <jbeulich@suse.com>
15157
15158 * varasm.c (get_variable_section): Validate initializer in
15159 named .bss-like sections.
15160
15161 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
15162
15163 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
15164 Exchange the order of the second and third operands in the vpermr
15165 instruction tmeplate.
15166
15167 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
15168
15169 PR target/71698
15170 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
15171 Disallow TDmode values.
15172
15173 2016-07-01 Alan Modra <amodra@gmail.com>
15174
15175 PR rtl-optimization/71709
15176 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
15177 being set, not referenced.
15178
15179 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
15180
15181 PR tree-optimization/70729
15182 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
15183 of loop since it can be not valid after transformation.
15184
15185 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15186
15187 * config/arm/arm.c (thumb_reload_in_hi): Delete.
15188 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
15189
15190 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
15191
15192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
15193 for NULL decl.
15194
15195 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15196
15197 PR target/71677
15198 * config/rs6000/constraints.md (wY constraint): New constraint to
15199 match the requirements for the LXSD and STXSD instructions.
15200 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
15201 predicate to match the requirements for the LXSD and STXSD
15202 instructions.
15203 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
15204 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
15205 to make sure that the bottom 2 bits of offset are 0, the address
15206 form is offsettable, and no updating is done in the address mode.
15207 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
15208 (movdi_internal32): Likewise
15209 (movdi_internal64): Likewise.
15210
15211 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR tree-optimization/71707
15214 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
15215 strinfo even for ADDR_EXPR ptr.
15216
15217 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
15218
15219 * config/rs6000/altivec.md (darn_32): Change the condition to
15220 TARGET_P9_MISC instead of TARGET_MODULO.
15221 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
15222 condition expression.
15223 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
15224 condition expression.
15225 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
15226 (DFP_TEST): New code iterator.
15227 (dfptstsfi_<code>_mode>): New define_expand.
15228 (*dfp_sgnfcnc_<mode>): New define_insn.
15229 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
15230 definition next to BU_P9_MISC_1 definition and change the MASK
15231 value to RS6000_BTM_P9_MISC.
15232 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
15233 (BU_P9_64BIT_MISC_0): Likewise.
15234 (BU_P9_DFP_MISC_0): New macro definition.
15235 (BU_P9_DFP_MISC_1): New macro definition.
15236 (BU_P9_DFP_MISC_2): New macro definition.
15237 (BU_P9_DFP_OVERLOAD_1): New macro definition.
15238 (BU_P9_DFP_OVERLOAD_2): New macro definition.
15239 (BU_P9_DFP_OVERLOAD_3): New macro definition.
15240 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
15241 (TSTSFI_LT_TD): Likewise.
15242 (TSTSFI_EQ_DD): Likewise.
15243 (TSTSFI_EQ_TD): Likewise.
15244 (TSTSFI_GT_DD): Likewise.
15245 (TSTSFI_GT_TD): Likewise.
15246 (TSTSFI_OV_DD): Likewise.
15247 (TSTSFI_OV_TD): Likewise.
15248 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
15249 (TSTSFI_LT_DD): Likewise.
15250 (TSTSFI_LT_TD): Likewise.
15251 (TSTSFI_EQ): Likewise.
15252 (TSTSFI_EQ_DD): Likewise.
15253 (TSTSFI_EQ_TD): Likewise.
15254 (TSTSFI_GT): Likewise.
15255 (TSTSFI_GT_DD): Likewise.
15256 (TSTSFI_GT_TD): Likewise.
15257 (TSTSFI_OV): Likewise.
15258 (TSTSFI_OV_DD): Likewise.
15259 (TSTSFI_OV_TD): Likewise.
15260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15261 overloaded test significance functions.
15262 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15263 OPTION_MASK_P9_MISC into the representation of this mask.
15264 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
15265 of this mask.
15266 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
15267 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
15268 non-zero.
15269 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
15270 argument is a 6-bit unsigned literal value if the icode argument
15271 represents a DFP test significance built-in call.
15272 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
15273 flag used independently and in combination with the
15274 RS6000_BTM_64BIT flag.
15275 (rs6000_opt_masks): Add entry for power9-misc command-line option.
15276 (rs6000_builtin_mask_names): Add entry for power9-misc
15277 command-line option.
15278 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
15279 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
15280 RS6000_BTM_P9_MISC macros.
15281 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
15282 option and change the description of the -mpower9-vector option to
15283 enable only vector instructions, removing its erroneously claimed
15284 support for scalar instructions.
15285 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15286 the ISA 3.0 digital floating point test significance built-in
15287 functions.
15288
15289 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
15290
15291 * config/aarch64/aarch64.c (cortexa35_tunings):
15292 Enable AES fusion. Use cortexa57_branch_cost.
15293 (cortexa53_tunings): Use cortexa57_branch_cost.
15294 (cortexa72_tunings): Use cortexa57_branch_cost.
15295 Use AUTOPREFETCHER_WEAK.
15296 (cortexa73_tunings): Use cortexa57_branch_cost.
15297
15298 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15299 James Greenhalgh <james.greenhalgh@arm.com>
15300
15301 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
15302 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
15303 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
15304 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
15305 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
15306 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
15307 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
15308 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
15309 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
15310 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
15311 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
15312 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
15313 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
15314 New intrinsics.
15315
15316 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
15317 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15318
15319 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
15320 New define_insn.
15321 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
15322
15323 2016-06-30 David Malcolm <dmalcolm@redhat.com>
15324
15325 PR driver/71651
15326 * gcc.c (driver::build_option_suggestions): Pass "option" to
15327 add_misspelling_candidates.
15328 * opts-common.c (add_misspelling_candidates): Add "option" param;
15329 use it to avoid adding negated forms for options marked with
15330 RejectNegative.
15331 * opts.h (add_misspelling_candidates): Add "option" param.
15332
15333 2016-06-30 Jakub Jelinek <jakub@redhat.com>
15334
15335 PR middle-end/71693
15336 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
15337 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
15338 first when permuting bitwise operation with rotate. Cast
15339 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
15340
15341 2016-06-29 David Malcolm <dmalcolm@redhat.com>
15342
15343 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
15344 for misspelled param names.
15345 * params.c: Include spellcheck.h.
15346 (find_param_fuzzy): New function.
15347 * params.h (find_param_fuzzy): New prototype.
15348 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
15349 * spellcheck.h (struct edit_distance_traits<const char *>):
15350 ...here.
15351
15352 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
15353
15354 * config/rs6000/predicates.md (const_0_to_7_operand): New
15355 predicate, recognize 0..7.
15356 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15357 support for doing extracts from V16QImode, V8HImode, V4SImode
15358 under ISA 3.0.
15359 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
15360 vector extract support.
15361 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
15362 for ISA 3.0 vector extract.
15363 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
15364 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
15365 extracts of a constant element number from small integer vectors
15366 on 64-bit ISA 3.0 systems.
15367 (vsx_extract_<mode>_di): Likewise.
15368 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
15369 say when we can do ISA 3.0 vector extracts.
15370 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
15371 registers, using the stxsiwx instruction.
15372
15373 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
15374
15375 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
15376 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
15377 qdf24xx_regmove_cost, qdf24xx_tunings): New.
15378 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
15379 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
15380 * config/arm/arm.c (arm_qdf24xx_tune): New.
15381
15382 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
15383
15384 * config/aarch64/aarch64.c (cortexa53_tunings):
15385 Increase loop alignment to 8. Set function alignment to 16.
15386 (cortexa35_tunings): Likewise.
15387 (cortexa57_tunings): Increase loop alignment to 8.
15388 (cortexa72_tunings): Likewise.
15389 (cortexa73_tunings): Likewise.
15390
15391 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
15392
15393 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
15394 for arm_fp16_ok and arm_fp16_hw.
15395 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
15396 arm_fp16_alternative.
15397
15398 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
15399
15400 PR tree-optimization/71655
15401 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
15402 types when swapping operands.
15403
15404 2016-06-29 Martin Liska <mliska@suse.cz>
15405
15406 PR middle-end/71585
15407 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
15408 * ipa-inline-transform.c (inline_call): Remove unnecessary call
15409 of build_optimization_node.
15410
15411 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
15412
15413 PR tree-optimization/70729
15414 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
15415 independent in loops having positive safelen value.
15416 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
15417 it may be not valid after vectorization.
15418
15419 2016-06-29 Jakub Jelinek <jakub@redhat.com>
15420
15421 PR tree-optimization/71625
15422 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
15423 is sorted by ascending list->offset. If PTR is non-NULL and there is
15424 previous strinfo, call get_stridx_plus_constant.
15425 (get_stridx): Pass exp as second argument to get_addr_stridx.
15426 (addr_stridxptr): Add missing list = list->next, so that there can be
15427 more than one entries in the list. Bump limit from 16 to 32. Ensure
15428 the list is sorted by ascending list->offset.
15429 (get_stridx_plus_constant): Adjust so that it can be also called with
15430 ADDR_EXPR instead of SSA_NAME as PTR.
15431 (handle_char_store): Pass NULL_TREE as second argument to
15432 get_addr_stridx.
15433
15434 2016-06-29 Richard Biener <rguenther@suse.de>
15435
15436 PR rtl-optimization/68961
15437 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
15438
15439 2016-06-29 Richard Biener <rguenther@suse.de>
15440
15441 PR middle-end/71002
15442 * alias.c (component_uses_parent_alias_set_from): Handle
15443 type punning through union accesses by using the union alias set.
15444 * gimple.c (gimple_get_alias_set): Remove union type punning case.
15445
15446 2016-07-29 Richard Biener <rguenther@suse.de>
15447
15448 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
15449 precision not matching mode precision.
15450
15451 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
15452
15453 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
15454 pa_output_arg_descriptor.
15455 (call_val_symref_64bit_post_reload): Likewise.
15456 (call_val_powf_64bit_post_reload): Likewise.
15457 (sibcall_internal_symref_64bit): Likewise.
15458 (sibcall_value_internal_symref_64bit): Likewise.
15459
15460 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15461
15462 PR middle-end/71626
15463 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
15464 a constant, force its SUBREG_REG into memory or register instead
15465 of whole op1.
15466
15467 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15468
15469 PR target/58655
15470 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
15471 * doc/invoke.texi (AVR Options): Document it.
15472
15473 2016-06-28 Walter Lee <walt@tilera.com>
15474
15475 * config/tilegx/linux.h: Do not include arch/icache.h
15476 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15477 * config/tilepro/linux.h: Do not include arch/icache.h
15478 (CLEAR_INSN_CACHE): Provide inlined definition directly.
15479
15480 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
15481
15482 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
15483 for big-endian BIT_FIELD_REF.
15484
15485 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
15486
15487 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
15488 ('size' attribute): Add '128'.
15489 Include power9.md.
15490 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
15491 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
15492 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
15493 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
15494 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
15495 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
15496 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
15497 *trunc<mode>df2_odd): Set size attribute to '128'.
15498 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
15499 * config/rs6000/power6.md (power6-fp): Include dfp type.
15500 * config/rs6000/power7.md (power7-fp): Likewise.
15501 * config/rs6000/power8.md (power8-fp): Likewise.
15502 * config/rs6000/power9.md: New file.
15503 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
15504 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
15505 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
15506 htmsimple.
15507 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
15508 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
15509 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
15510 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
15511 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
15512 dfp_dscri_<mode>): Change type attribute to dfp.
15513 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
15514 attribute to vecsimple.
15515 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
15516 and prefetch streams.
15517 (rs6000_option_override_internal): Remove temporary code setting
15518 tuning to power8. Don't set rs6000_sched_groups for power9.
15519 (last_scheduled_insn): Change to rtx_insn *.
15520 (divide_cnt, vec_load_pendulum): New variables.
15521 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
15522 (rs6000_issue_rate): Set issue rate for Power9.
15523 (is_power9_pairable_vec_type): New.
15524 (power9_sched_reorder2): New.
15525 (rs6000_sched_reorder2): Call new function for Power9 specific
15526 reordering.
15527 (insn_must_be_first_in_group): Remove Power9.
15528 (insn_must_be_last_in_group): Likewise.
15529 (force_new_group): Likewise.
15530 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
15531 Initialize divide_cnt/vec_load_pendulum.
15532 (_rs6000_sched_context, rs6000_init_sched_context,
15533 rs6000_set_sched_context): Handle context save/restore of new
15534 variables.
15535
15536 2016-06-28 Richard Biener <rguenther@suse.de>
15537
15538 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15539 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
15540 COMPONENT_REF operand.
15541 (nonoverlapping_component_refs_p): Likewise.
15542 * stor-layout.c (start_bitfield_representative): Mark
15543 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
15544
15545 2016-06-28 Jakub Jelinek <jakub@redhat.com>
15546
15547 * Makefile.in: Don't cat ../stage_current if it does not exist.
15548
15549 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
15550 last argument is a bit-field.
15551
15552 PR rtl-optimization/71673
15553 * internal-fn.c (expand_arith_overflow_result_store): Use
15554 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
15555 expand_simple_binop.
15556
15557 PR middle-end/66867
15558 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
15559 expand_ifn_atomic_compare_exchange): New functions.
15560 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
15561 * tree.h (build_call_expr_internal_loc): Rename to ...
15562 (build_call_expr_internal_loc_array): ... this. Fix up type of
15563 last argument.
15564 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
15565 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
15566 ATOMIC_COMPARE_EXCHANGE result.
15567 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
15568 * gimple-fold.h (optimize_atomic_compare_exchange_p,
15569 fold_builtin_atomic_compare_exchange): New prototypes.
15570 * gimple-fold.c (optimize_atomic_compare_exchange_p,
15571 fold_builtin_atomic_compare_exchange): New functions..
15572 * tree-ssa.c (execute_update_addresses_taken): If
15573 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
15574 of call when finding addressable vars, and if such var becomes
15575 non-addressable, call fold_builtin_atomic_compare_exchange.
15576
15577 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
15578
15579 PR target/71670
15580 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
15581 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
15582
15583 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
15584
15585 * config/rs6000/rs6000.md ('type' attribute): Add
15586 veclogical,veccmpfx,vecexts,vecmove insn types.
15587 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
15588 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
15589 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
15590 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
15591 *nabs<mode>2_hw): Change type to vecmove.
15592 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
15593 *boolcc<mode>3_internal, *eqv<mode>3_internal,
15594 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
15595 *ieee_128bit_vsx_abs<mode>2_internal,
15596 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
15597 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
15598 *ieee128_mtvsrd_32bit): Change type to veclogical.
15599 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15600 *movdi_internal32, *movdi_internal64): Update insn types.
15601 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15602 vsx_extract_<mode>): Change type to veclogical.
15603 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
15604 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
15605 *vsx_sign_extend_si_v2di): Change type to vecexts.
15606 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
15607 type to veclogical.
15608 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
15609 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
15610 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
15611 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
15612 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
15613 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
15614 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
15615 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
15616 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
15617 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
15618 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
15619 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
15620 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
15621 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
15622 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
15623 (ppc7450-vecsimple): Add veclogical, vecmove.
15624 (ppc7450-veccmp): Add veccmpfx.
15625 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
15626 vecmove.
15627 (ppc8540_vector_compare): Add veccmpfx.
15628 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
15629 * config/rs6000/cell.md (cell-fp): Add fpsimple.
15630 (cell-vecsimple): Add veclogical, vecmove.
15631 (cell-veccmp): Add veccmpfx.
15632 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
15633 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
15634 veccmpfx.
15635 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
15636 * config/rs6000/power4.md (power4-fp): Add fpsimple.
15637 (power4-vecsimple): Add veclogical, vecmove.
15638 (power4-veccmp): Add veccmpfx.
15639 * config/rs6000/power5.md (power5-fp): Add fpsimple.
15640 * config/rs6000/power6.md (power6-fp): Add fpsimple.
15641 (power6-vecsimple): Add veclogical, vecmove.
15642 (power6-veccmp): Add veccmpfx.
15643 * config/rs6000/power7.md (power7-fp): Add fpsimple.
15644 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
15645 * config/rs6000/power8.md (power8-fp): Add fpsimple.
15646 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
15647 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
15648 * config/rs6000/titan.md (titan_fp): Add fpsimple.
15649 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
15650 fpsimple.
15651 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
15652
15653 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
15654
15655 PR target/71656
15656 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15657 OPTION_MASK_P9_DFORM_VECTOR.
15658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
15659 disable -mpower9-dform-vector when using reload.
15660 (quad_address_p): Remove 'gpr_p' argument and all associated code.
15661 New 'strict' argument. Update all callers. Add strict addressing
15662 support.
15663 (rs6000_legitimate_offset_address_p): Remove call to
15664 virtual_stack_registers_memory_p.
15665 (rs6000_legitimize_reload_address): Add quad address support.
15666 (rs6000_legitimate_address_p): Move call to quad_address_p above
15667 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
15668 to account for new strict usage.
15669 (rs6000_output_move_128bit): Adjust quad_address_p args to account
15670 for new strict usage.
15671 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
15672
15673 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
15674
15675 PR target/70902
15676 PR target/71453
15677 PR target/71555
15678 PR target/71596
15679 PR target/71657
15680 * config/i386/i386.c (ix86_spill_class): Disable condition to
15681 always return NO_REGS.
15682
15683 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
15684
15685 * predict.c: Include gimple-pretty-print.h
15686 (predicted_by_loop_heuristics_p): Check also
15687 PRED_LOOP_EXIT_WITH_RECURSION
15688 (predict_loops): Find self recursive calls and use special purpose
15689 predictors for them; dump log about decisions.
15690 (pass_profile::execute): Dump info about #of iterations.
15691 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
15692 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
15693
15694 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
15695
15696 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
15697 output_asm_insn calls and shorten long lines. Output .CALL
15698 argument descriptor using pa_output_arg_descriptor. Add various
15699 inline $$dyncall and other optimizations.
15700 (pa_attr_length_indirect_call): Adjust ordering and lengths.
15701
15702 2016-06-25 Jakub Jelinek <jakub@redhat.com>
15703
15704 PR tree-optimization/71643
15705 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
15706 EH preds.
15707
15708 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
15709 leak a bitmap if dep_bb is NULL.
15710
15711 PR tree-optimization/71631
15712 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
15713 to rewrite_expr_tree even if negate_result, move new_lhs var
15714 declaration and initialization earlier, for powi_result set afterwards
15715 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
15716 if new_lhs != lhs, and don't shadow gsi var.
15717
15718 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15719
15720 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
15721 Add in_loop parameter.
15722 (predict_loops): Add loop guard heuristics.
15723 * predict.def (PRED_LOOP_GUARD): New heuristics.
15724
15725 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
15726
15727 * predict.c: Include ipa-utils.h
15728 (tree_bb_level_prediction): Predict recursive calls.
15729 (tree_estimate_probability_bb): Skip inexpensive calls for call
15730 predictor.
15731 * predict.def (PRED_RECURSIVE_CALL): New.
15732
15733 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15734
15735 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
15736 (BU_FLOAT128_1): Likewise.
15737 (FABSQ): Likewise.
15738 (COPYSIGNQ): Likewise.
15739 (RS6000_BUILTIN_NANQ): Likewise.
15740 (RS6000_BUILTIN_NANSQ): Likewise.
15741 (RS6000_BUILTIN_INFQ): Likewise.
15742 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
15743 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
15744 (TARGET_FOLD_BUILTIN): New #define.
15745 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
15746 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
15747 (rs6000_fold_builtin): New target hook implementation, handling
15748 folding of 128-bit NaNs and infinities.
15749 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
15750 entries are filled in to avoid problems during bootstrap
15751 self-test; define builtins for 128-bit NaNs and infinities.
15752 (rs6000_opt_mask): Add entry for float128.
15753 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
15754 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
15755 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
15756 (const_str_type_node): New #define.
15757 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
15758 to a define_expand that dispatches to either copysign<mode>3_soft
15759 or copysign<mode>3_hard.
15760 (copysign<mode>3_hard): Rename from copysign<mode>3.
15761 (copysign<mode>3_soft): New define_insn.
15762 * doc/extend.texi: Document new builtins.
15763
15764 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15765
15766 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
15767 PRIu64 instead of lu.
15768
15769 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
15770
15771 PR debug/71642
15772 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
15773 copy the type name.
15774
15775 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15776
15777 PR tree-optimization/71647
15778 * omp-low.c (lower_rec_input_clauses): Convert
15779 omp_clause_aligned_alignment (c) to size_type_node for the
15780 last argument of __builtin_assume_aligned.
15781
15782 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
15783
15784 * configure.ac (calling ___tls_get_addr via GOT): New
15785 assembler/linker check.
15786 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
15787 assembler and linker supports calling ___tls_get_addr via GOT.
15788 Otherise, defined to 0.
15789 * config.in: Regenerated.
15790 * configure: Likewise.
15791 * config/i386/constraints.md (Yb): New constraint.
15792 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
15793 (REG_CLASS_NAMES): Likewise.
15794 (REG_CLASS_CONTENTS): Likewise.
15795 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
15796 the b constraint with the Yb constraint. Call ___tls_get_addr
15797 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
15798 is 1.
15799 (*tls_local_dynamic_base_32_gnu): Likewise.
15800 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
15801 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
15802 (*tls_local_dynamic_base_64_<mode>): Likewise.
15803
15804 2016-06-24 Martin Liska <mliska@suse.cz>
15805
15806 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
15807 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
15808 few functions.
15809 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
15810 argument to true if the expected number of iterations is
15811 loop-based.
15812
15813 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
15814
15815 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
15816 assemble for 32bit target.
15817 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
15818 and $ld_ix86_gld_32_opt to link for 32bit target.
15819 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
15820 * configure: Regenerate.
15821
15822 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15823
15824 * config/arm/arm.c (int_log2): Delete definition and prototype.
15825 (shift_op): Use exact_log2 instead of int_log2.
15826 (vfp3_const_double_for_fract_bits): Likewise.
15827
15828 2016-06-24 Jakub Jelinek <jakub@redhat.com>
15829
15830 * internal-fn.c (expand_arith_set_overflow): New function.
15831 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
15832 Use it.
15833 (expand_arith_overflow_result_store): Likewise. Handle precision
15834 smaller than mode precision.
15835 * tree-vrp.c (extract_range_basic): For imag part, handle
15836 properly signed 1-bit precision result.
15837 * doc/extend.texi (__builtin_add_overflow): Document that last
15838 argument can't be pointer to enumerated or boolean type.
15839 (__builtin_add_overflow_p): Document that last argument can't
15840 have enumerated or boolean type.
15841
15842 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15843 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15844
15845 * config/rs6000/predicates.md (splat_input_operand): Rework.
15846 Don't allow constants, since the insns that use this predicate
15847 don't support constants. Constants are handled by other insns
15848 that are created via combine. During and after register
15849 allocation, only allow indexed or indirect addresses, and not
15850 general addresses. Only allow modes supported by the hardware.
15851 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
15852 comment. Move check for using VSPLTIS<x> to a common location,
15853 instead of doing it in two different places.
15854
15855 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
15856
15857 * config/i386/driver-i386.c (host_detect_local_cpu): Set
15858 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
15859 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
15860 signature_CENTAUR_ebx.
15861
15862 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
15863
15864 PR target/66232
15865 PR target/67400
15866 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
15867 (as_ix86_gas_32_opt): This.
15868 (ld_ix86_tls_ldm_opt): Renamed to ...
15869 (ld_ix86_gld_32_opt): This.
15870 (R_386_TLS_LDM reloc): Updated.
15871 (R_386_GOT32X reloc): New assembler/linker check.
15872 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
15873 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
15874 defined to 0.
15875 * config.in: Regenerated.
15876 * configure: Likewise.
15877 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
15878 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
15879 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
15880 if ix86_force_load_from_GOT_p returns true.
15881 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
15882 ix86_force_load_from_GOT_p returns true.
15883 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
15884 the external function address via the GOT slot.
15885 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
15886 HAVE_AS_IX86_GOT32X before returning false.
15887 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
15888 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
15889
15890 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
15891
15892 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
15893
15894 2016-06-23 Andi Kleen <ak@linux.intel.com>
15895
15896 * Makefile.in: Regenerate.
15897 * doc/install.texi: Document autoprofiledbootstrap.
15898
15899 2016-06-23 Andi Kleen <ak@linux.intel.com>
15900
15901 * config/i386/gcc-auto-profile: New file.
15902
15903 2016-06-23 Martin Liska <mliska@suse.cz>
15904
15905 PR middle-end/71619
15906 * predict.c (predict_loops): Revert the hunk that was removed
15907 in r237103.
15908
15909 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
15910
15911 * config.gcc: Add support for arm*-*-phoenix* targets.
15912 * config/arm/t-phoenix: New.
15913 * config/phoenix.h: New.
15914
15915 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
15916 H.J. Lu <hongjiu.lu@intel.com>
15917
15918 PR target/67400
15919 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
15920 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
15921 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
15922 ix86_force_load_from_GOT_p returns true.
15923 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
15924 ix86_force_load_from_GOT_p returns true.
15925 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
15926 ix86_force_load_from_GOT_p returns true.
15927 (ix86_expand_move): Load the external function address via the
15928 GOT slot if ix86_force_load_from_GOT_p returns true.
15929 * config/i386/predicates.md (x86_64_immediate_operand): Return
15930 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
15931 (x86_64_zext_immediate_operand): Ditto.
15932
15933 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
15934
15935 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
15936
15937 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15938
15939 PR c/70339
15940 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
15941 * diagnostic.c (pedwarn_at_rich_loc): New function.
15942 * spellcheck.h (best_match::best_match): Add a
15943 "best_distance_so_far" optional parameter.
15944 (best_match::set_best_so_far): New method.
15945 (best_match::get_best_distance): New accessor.
15946 (best_match::get_best_candidate_length): New accessor.
15947
15948 2016-06-22 Nick Clifton <nickc@redhat.com>
15949
15950 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
15951 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
15952 modes are accepted as well.
15953 (ucompare_loc_descriptor): Likewise.
15954 (minmax_loc_descriptor): Likewise.
15955 (clz_loc_descriptor): Likewise.
15956 (popcount_loc_descriptor): Likewise.
15957 (bswap_loc_descriptor): Likewise.
15958 (rotate_loc_descriptor): Likewise.
15959 (mem_loc_descriptor): Likewise.
15960 (loc_descriptor): Likewise.
15961
15962 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15963
15964 * common.opt (fdiagnostics-parseable-fixits): New option.
15965 * diagnostic.c: Include "selftest.h".
15966 (print_escaped_string): New function.
15967 (print_parseable_fixits): New function.
15968 (diagnostic_report_diagnostic): Call print_parseable_fixits.
15969 (selftest::assert_print_escaped_string): New function.
15970 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
15971 (selftest::test_print_escaped_string): New function.
15972 (selftest::test_print_parseable_fixits_none): New function.
15973 (selftest::test_print_parseable_fixits_insert): New function.
15974 (selftest::test_print_parseable_fixits_remove): New function.
15975 (selftest::test_print_parseable_fixits_replace): New function.
15976 (selftest::diagnostic_c_tests): New function.
15977 * diagnostic.h (struct diagnostic_context): Add field
15978 "parseable_fixits_p".
15979 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
15980 -fdiagnostics-parseable-fixits.
15981 (-fdiagnostics-parseable-fixits): New option.
15982 * opts.c (common_handle_option): Handle
15983 -fdiagnostics-parseable-fixits.
15984 * selftest-run-tests.c (selftest::run_tests): Call
15985 selftest::diagnostic_c_tests.
15986 * selftest.h (selftest::diagnostic_c_tests): New prototype.
15987
15988 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
15989
15990 PR tree-optimization/71488
15991 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
15992 comparison of boolean vectors.
15993 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
15994 of boolean vectors using bitwise operations.
15995
15996 2016-06-22 Andreas Schwab <schwab@suse.de>
15997
15998 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
15999 Remove declaration.
16000
16001 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
16002
16003 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
16004
16005 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
16006
16007 * config/i386/i386.c (print_reg): Emit an error message on attempt to
16008 print FLAGS_REG.
16009
16010 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16011
16012 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
16013 * config/arm/arm-cores.def (cortex-a73): New entry.
16014 (cortex-a73.cortex-a35): Likewise.
16015 (cortex-a73.cortex-a53): Likewise.
16016 * config/arm/arm-tables.opt: Regenerate.
16017 * config/arm/arm-tune.md: Likewise.
16018 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
16019 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16020 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
16021 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
16022 * doc/invoke.texi (ARM Options): Document cortex-a73,
16023 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
16024
16025 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16026
16027 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
16028 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
16029 (cortex-a73.cortex-a35): Likewise.
16030 (cortex-a73.cortex-a53): Likewise.
16031 * config/aarch64/aarch64-tune.md: Regenerate.
16032 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
16033 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
16034 -mcpu and -mtune.
16035
16036 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16037
16038 * configure.ac (gcc_cv_as_compress_debug): Remove
16039 --compress-debug-sections as extra as switch.
16040 Handle gas --compress-debug-sections=type.
16041 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
16042 Handle gld --compress-debug-sections=type.
16043 * configure: Regenerate.
16044
16045 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
16046
16047 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
16048
16049 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
16050
16051 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
16052 (do_rewrite): likewise.
16053
16054 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16055
16056 * common/config/mep/mep-common.c: Remove.
16057 * config.gcc: Remove mep-* support.
16058 * config/mep/constraints.md: Remove.
16059 * config/mep/default.h: Remove.
16060 * config/mep/intrinsics.h: Remove.
16061 * config/mep/intrinsics.md: Remove.
16062 * config/mep/ivc2-template.h: Remove.
16063 * config/mep/mep-c5.cpu: Remove.
16064 * config/mep/mep-core.cpu: Remove.
16065 * config/mep/mep-default.cpu: Remove.
16066 * config/mep/mep-ext-cop.cpu: Remove.
16067 * config/mep/mep-intrin.h: Remove.
16068 * config/mep/mep-ivc2.cpu: Remove.
16069 * config/mep/mep-pragma.c: Remove.
16070 * config/mep/mep-protos.h: Remove.
16071 * config/mep/mep.c: Remove.
16072 * config/mep/mep.cpu: Remove.
16073 * config/mep/mep.h: Remove.
16074 * config/mep/mep.md: Remove.
16075 * config/mep/mep.opt: Remove.
16076 * config/mep/predicates.md: Remove.
16077 * config/mep/t-mep: Remove.
16078 * doc/install.texi: Remove mep-* documentation.
16079 * doc/md.texi: Likewise.
16080
16081 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16082
16083 * config.gcc: Remove support for avr-rtems.
16084 * config/avr/gen-avr-mmcu-specs.c: Likewise.
16085 * config/avr/rtems.h: Remove.
16086 * config/avr/t-rtems: Remove.
16087
16088 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16089
16090 * config.gcc: Remove m32r-rtems support.
16091 * config/m32r/rtems.h: Remove.
16092
16093 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16094
16095 * config.gcc: Remove h8300-rtems support.
16096 * config/h8300/rtems.h: Remove.
16097 * config/h8300/t-rtems: Remove.
16098
16099 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16100
16101 * config.gcc: Remove support for knetbsd.
16102 * configure.ac: Likewise.
16103 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
16104 * config/knetbsd-gnu.h: Remove.
16105 * configure: Regenerate.
16106
16107 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16108
16109 * config.gcc: Remove support for openbsd 2 and 3.
16110 * config/openbsd-oldgas.h: Remove.
16111
16112 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16113
16114 * config.gcc: Remove interix support.
16115 * config/i386/i386-interix.h: Remove.
16116 * config/i386/interix.opt: Remove.
16117 * config/i386/t-interix: Remove.
16118 * configure: Regenerate.
16119 * configure.ac: Remove interix support.
16120 * doc/install.texi: Remove interix documentation.
16121
16122 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
16123
16124 * config/rs6000/rs6000.h: Add conditional preprocessing directives
16125 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
16126 not defined.
16127
16128 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16129
16130 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
16131 they are both PLACEHOLDER_EXPRs.
16132
16133 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16134
16135 * stor-layout.c (layout_type): Move setting complex MODE to
16136 layout_type, instead of setting it ahead of time by the caller.
16137 * tree.c (build_complex_type): Likewise.
16138
16139 2016-06-21 Martin Liska <mliska@suse.cz>
16140
16141 * predict.c (force_edge_cold): Replace imposisble with
16142 impossible.
16143
16144 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16145
16146 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
16147 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
16148
16149 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
16150
16151 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
16152
16153 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
16154 Ilya Enkovich <ilya.enkovich@intel.com>
16155
16156 PR target/71549
16157 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16158 New member function to convert V1TImode register to SUBREG
16159 TImode in debug insn.
16160 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
16161 after changing register mode to V1TImode.
16162
16163 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
16164
16165 * config/aarch64/aarch64-cores.def (vulcan): New core.
16166 * config/aarch64/aarch64-tune.md: Regenerate.
16167 * doc/invoke.texi: Document vulcan as an available option.
16168
16169 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
16170
16171 * cse.c (canon_asm_operands): New function extracted from...
16172 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
16173 either standalone or member of a PARALLEL.
16174
16175 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16176
16177 PR target/30417
16178 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
16179 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
16180 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
16181
16182 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
16183
16184 PR target/71103
16185 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
16186 constant addresses if can_create_pseudo_p.
16187
16188 2016-06-21 Jakub Jelinek <jakub@redhat.com>
16189
16190 PR tree-optimization/71588
16191 * tree-ssa-strlen.c (valid_builtin_call): New function.
16192 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
16193 it.
16194
16195 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16196
16197 PR middle-end/71581
16198 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
16199 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
16200 for conversion of scalar user var to complex type and use the
16201 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
16202 punt.
16203
16204 PR rtl-optimization/71591
16205 * toplev.c (toplev::run_self_tests): If no_backend, complain and
16206 don't run any tests.
16207
16208 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
16209
16210 PR target/71571
16211 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
16212 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
16213 space for PIC with non-v32 and the common non-PIC "jump".
16214
16215 2016-06-20 Jakub Jelinek <jakub@redhat.com>
16216
16217 PR target/71559
16218 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
16219 returned values and add UN*/LTGT/*ORDERED cases with values matching
16220 D operand modifier on vcmp for AVX.
16221
16222 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16223
16224 * config/aarch64/aarch64.opt
16225 (mpc-relative-literal-loads): Rename internal option name.
16226 * config/aarch64/aarch64.c
16227 (aarch64_nopcrelative_literal_loads): Rename to
16228 aarch64_pcrelative_literal_loads.
16229 (aarch64_expand_mov_immediate): Likewise.
16230 (aarch64_secondary_reload): Likewise.
16231 (aarch64_can_use_per_function_literal_pools_p): Likewise.
16232 (aarch64_override_options_after_change_1): Rename and simplify logic.
16233 (aarch64_classify_symbol): Merge large model checks into switch,
16234 remove pc-relative load check.
16235
16236 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16237
16238 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
16239 costs relative to the cost of a register move.
16240
16241 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16242
16243 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
16244 (vcvt_n_f64_u64): Likewise.
16245 (vcvt_n_s64_f64): Likewise.
16246 (vcvt_n_u64_f64): Likewise.
16247 (vcvt_f64_s64): Likewise.
16248 (vrecpe_f64): Likewise.
16249 (vcvt_f64_u64): Likewise.
16250 (vrecps_f64): Likewise.
16251
16252 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16253
16254 * config/aarch64/aarch64.md
16255 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
16256 iterators.
16257 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
16258 attributes.
16259 * config/aarch64/aarch64-builtins.c
16260 (aarch64_types_binop_uss_qualifiers): Delete.
16261 (TYPES_BINOP_USS): Likewise.
16262 (aarch64_types_binop_sus_qualifiers): Likewise.
16263 (TYPES_BINOP_SUS): Likewise.
16264 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
16265 (TYPES_FCVTIMM_SUS): Likewise.
16266 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
16267 rather than BINOP.
16268 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
16269 (fcvtzs): Use SHIFTIMM rather than BINOP.
16270 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
16271
16272 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
16273
16274 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
16275 costs relative to the cost of a register move.
16276
16277 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16278
16279 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
16280 Allow scalar/single vector modes to be tieable.
16281
16282 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
16283
16284 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
16285
16286 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16287
16288 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
16289 "alignement".
16290 * tree.h (TYPE_ALIGN): Likewise.
16291
16292 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16293
16294 PR target/71103
16295 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
16296
16297 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
16298
16299 * config/avr/avr.c (avr_print_operand): Fix "format not a string
16300 literal" build warnings.
16301 (avr_print_operand_address): Dito.
16302
16303 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
16304
16305 PR target/71375
16306 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
16307 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
16308
16309 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
16310
16311 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
16312
16313 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
16314
16315 PR bootstrap/71435
16316 * reload1.c (reload): Pass 0 to finish_spills when called because
16317 update_eliminables_and_spill returns true and remove did_spill.
16318 (finish_spills): Adjust comment and document GLOBAL parameter.
16319
16320 2016-06-17 DJ Delorie <dj@redhat.com>
16321
16322 PR target/71338
16323 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
16324 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
16325 (umulqihi3_virt): Likewise.
16326 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
16327 (umulqihi3_real): Likewise.
16328
16329 2016-06-17 Martin Liska <mliska@suse.cz>
16330
16331 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
16332
16333 2016-06-17 Martin Liska <mliska@suse.cz>
16334
16335 * predict.def: PRED_LOOP_EXIT from 92 to 85.
16336
16337 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
16338
16339 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
16340 __FAST_MATH__.
16341 (vaddq_f32): Likewise.
16342 (vmul_f32): Likewise.
16343 (vmulq_f32): Likewise.
16344 (vsub_f32): Likewise.
16345 (vsubq_f32): Likewise.
16346
16347 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16348
16349 PR tree-optimization/71347
16350 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
16351 cost for all uses in group.
16352
16353 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16354
16355 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
16356 insert gimple seq if it's not empty.
16357
16358 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16359
16360 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
16361 member OFFSET.
16362 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
16363 rather than OFFSET.
16364 (comp_dr_with_seg_len_pair): Ditto.
16365 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
16366 struct dr_with_seg_len_pair against DR_OFFSET.
16367 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
16368 DR_OFFSET directly.
16369
16370 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
16371
16372 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
16373
16374 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
16375
16376 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
16377 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
16378 (pa_output_millicode_call): Likewise.
16379 (pa_output_call): Likewise.
16380 (pa_output_indirect_call): Likewise.
16381 (pa_asm_output_mi_thunk): Likewise.
16382
16383 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16384
16385 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
16386
16387 2016-06-16 Martin Liska <mliska@suse.cz>
16388
16389 * predict.c (combine_predictions_for_insn): When we find a first
16390 match predictor, we should consider just predictors with
16391 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
16392 DS theory predictor.
16393 (combine_predictions_for_bb): Likewise.
16394
16395 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16396
16397 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
16398 with base of reference to struct.
16399
16400 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16401
16402 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
16403
16404 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16405
16406 PR target/71151
16407 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
16408 progmem_swtable_section.
16409 (progmem_swtable_section): Remove.
16410 (avr_asm_function_rodata_section): Remove.
16411 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
16412 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
16413
16414 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
16415
16416 * config/i386/driver-i386.c (host_detect_local_cpu): Set
16417 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
16418 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
16419 signature_CENTAUR_ebx.
16420 * config/i386/i386.c (ix86_option_override_internal): Add
16421 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
16422 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
16423 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
16424
16425 2016-06-16 Martin Liska <mliska@suse.cz>
16426
16427 * predict.def: Add fortran loop preheader predictor.
16428 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
16429 fold IFN_BUILTIN_EXPECT with a known constant argument.
16430
16431 2016-06-16 Martin Liska <mliska@suse.cz>
16432
16433 * predict.def: Add 'Fortran' to display text of all
16434 PRED_FORTRAN_* predictors.
16435
16436 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
16437
16438 PR target/71242
16439 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
16440 [IA64_BUILTIN_NANSQ]: Ditto.
16441 (ia64_fold_builtin): New function.
16442 (TARGET_FOLD_BUILTIN): New define.
16443 (ia64_init_builtins) Declare const_string_type node.
16444 Add __builtin_nanq and __builtin_nansq builtin functions.
16445 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
16446
16447 2016-06-16 Nick Clifton <nickc@redhat.com>
16448
16449 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
16450 MSP430_HWMULT_ prefix to enum values.
16451 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
16452 * config/msp430/msp430.c: Update use of enum values.
16453 * config/msp430/msp430.md: Likewise.
16454 * config/msp430/msp430.opt: Likewise.
16455
16456 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
16457
16458 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
16459 of comparsions in the last iteration.
16460
16461 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16462 Joern Rennecke <joern.rennecke@embecosm.com>
16463
16464 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
16465 addresses.
16466 (arc_needs_pcl_p): Add GOTOFFPC.
16467 (arc_legitimate_pic_addr_p): Likewise.
16468 (arc_output_pic_addr_const): Likewise.
16469 (arc_legitimize_pic_address): Generate a pc-relative address using
16470 GOTOFFPC.
16471 (arc_output_libcall): Use @pcl syntax.
16472 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
16473 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
16474 (*movsi_insn): Use @pcl syntax.
16475 (doloop_begin_i): Likewise.
16476
16477 2016-06-16 Martin Liska <mliska@suse.cz>
16478
16479 * predict.def: Define a new predictor.
16480
16481 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
16482
16483 * config/arc/arc.opt (mtp-regno): Update text.
16484
16485 2016-06-16 Renlin Li <renlin.li@arm.com>
16486
16487 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
16488
16489 2016-06-16 Jakub Jelinek <jakub@redhat.com>
16490
16491 PR target/71554
16492 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
16493 (setcc + and peephole2): Likewise.
16494
16495 PR rtl-optimization/71532
16496 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
16497 memory slots.
16498
16499 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16500
16501 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
16502 DImode constants with XXSPLTIB in vector registers.
16503 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
16504 vsx_extract_<mode>_internal{1,2} into a single insn that handles
16505 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
16506 extraction of the element at the top of the register as a scalar
16507 value.
16508 (vsx_extract_<mode>_internal1): Likewise.
16509 (vsx_extract_<mode>_internal2): Likewise.
16510 * config/rs6000/constraints.md (wi constraint): Remove a comment
16511 about DImode not being allowed in Altivec registers.
16512 (wB constraint): New constraint for constants that can be
16513 generated in Altivec registers with VSPLTISW/VUPKHSW.
16514 * config/rs6000/predicates.md (xxspltib_constant_split): Update
16515 comments.
16516 (xxspltib_constant_nosplit): Likewise.
16517 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
16518 support for -mupper-regs-di to enable DImode to go into Altivec
16519 registers.
16520 (POWERPC_MASKS): Likewise.
16521 (power7 cpu): Likewise.
16522 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
16523 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
16524 for DImode being allowed in Altivec registers. Update wi/wj
16525 constraints. Set scalar_in_vmx_p flag.
16526 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
16527 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
16528 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
16529 (rs6000_opt_masks): Add -mupper-regs-di.
16530 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
16531 direct move to use wi and not wj.
16532 (lfiwzx): Likewise.
16533 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
16534 alternative.
16535 (floatunssi<mode>2_lfiwzx_mem): Likewise.
16536 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
16537 any VSX register, instead of just Altivec registers, to allow
16538 either operand to be an Altivec register or both.
16539 (fixuns_trunc<mode>di2_fctiduz): Likewise.
16540 (movdi_internal32): Add support for -mupper-regs-di. Add support
16541 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
16542 the alternatives and attributes to be lined up to be easier to
16543 read.
16544 (movdi_internal64): Likewise.
16545 (64-bit DImode splitters): Change predicates to only split loading
16546 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
16547 load constants in ISA 3.0 or ISA 2.07 respectively.
16548 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16549 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
16550 mention -mcpu=power9 sets these options.
16551 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
16552 wB constraint.
16553
16554 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16555
16556 PR target/67353
16557 * config/avr/avr.c (avr_set_current_function): Warn misspelled
16558 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
16559 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
16560 by default to warn misspelled interrupt/ signal handler.
16561 * doc/invoke.texi (AVR Options): Document it. Update description
16562 for -nodevicelib option.
16563
16564 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16565
16566 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
16567 up parentheses. Use GET_MODE_UNIT_BITSIZE.
16568 (aarch64_<sur>shll2_n<mode>): Likewise.
16569
16570 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
16571
16572 PR middle-end/71529
16573 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
16574 DECL_CONTEXT for copied arguments.
16575
16576 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16577
16578 PR tree-optimization/71483
16579 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
16580 for slp
16581
16582 2016-06-15 Martin Liska <mliska@suse.cz>
16583
16584 * predict.c (tree_predict_by_opcode): Call predict_edge_def
16585 instead of predict_edge w/o a probability.
16586
16587 2016-06-15 Alan Hayward <alan.hayward@arm.com>
16588
16589 PR tree-optimization/71439
16590 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
16591 live PHIs.
16592
16593 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16594
16595 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
16596 register subregs in SET_SRC.
16597
16598 2016-06-15 Richard Biener <rguenther@suse.de>
16599
16600 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
16601 store restrictions.
16602
16603 2016-06-15 Richard Biener <rguenther@suse.de>
16604
16605 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
16606 not consider dependences between accesses that belong to the
16607 same group.
16608 (vect_analyze_data_ref_dependences): Do not analyze read-read
16609 or self-dependences.
16610
16611 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16612
16613 * spellcheck-tree.c: Include spellcheck-tree.h rather than
16614 spellcheck.h.
16615 (find_closest_identifier): Reimplement in terms of
16616 best_match<tree,tree>.
16617 * spellcheck-tree.h: New file.
16618 * spellcheck.c (struct edit_distance_traits<const char *>): New
16619 struct.
16620 (find_closest_string): Reimplement in terms of
16621 best_match<const char *, const char *>.
16622 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
16623 overload to spellcheck-tree.h.
16624 (find_closest_identifier): Likewise.
16625 (struct edit_distance_traits<T>): New template.
16626 (class best_match): New class.
16627
16628 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16629
16630 * selftest-run-tests.c (selftest::run_tests): Call
16631 selftest::spellcheck_tree_c_tests.
16632 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
16633 * spellcheck-tree.c: Include selftest.h and stringpool.h.
16634 (selftest::test_find_closest_identifier): New function.
16635 (selftest::spellcheck_tree_c_tests): New function.
16636 * spellcheck.c (selftest::test_find_closest_string): Verify that
16637 the order of the vec does not affect the results for this case.
16638 (selftest::test_data): New array.
16639 (selftest::test_metric_conditions): New function.
16640 (selftest::spellcheck_c_tests): Add a test of case-comparison.
16641 Call selftest::test_metric_conditions.
16642
16643 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16644
16645 * config/rs6000/rs6000-builtin.def (commentary): Typo.
16646 (BU_P9_MISC_1): Likewise.
16647 (BU_P9_64BIT_MISC_0): Likewise.
16648 (BU_P9_MISC_0): Likewise.
16649
16650 2016-06-14 David Malcolm <dmalcolm@redhat.com>
16651
16652 * gcc-rich-location.c
16653 (gcc_rich_location::add_fixit_misspelled_id): New method.
16654 * gcc-rich-location.h
16655 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
16656
16657 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
16658
16659 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
16660 FreeBSD 11 and above.
16661
16662 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
16663
16664 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
16665
16666 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16667
16668 * expmed.h: Close parenthesis in "at your option" in copyright
16669 boilerplate.
16670 * lower-subreg.h: Likewise.
16671
16672 2016-06-14 Richard Biener <rguenther@suse.de>
16673
16674 PR middle-end/71526
16675 * genmatch.c (expr::gen_transform): Use in_type for comparisons
16676 if available.
16677
16678 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16679
16680 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
16681 New function.
16682 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
16683 mask+shift version.
16684 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
16685 New prototype.
16686 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
16687 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
16688
16689 2016-06-14 Richard Biener <rguenther@suse.de>
16690
16691 PR tree-optimization/71522
16692 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
16693 copying into float copying.
16694
16695 2016-06-14 Jakub Jelinek <jakub@redhat.com>
16696
16697 PR tree-optimization/71520
16698 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
16699 (replace_block_by): Move user labels from bb1 to bb2.
16700
16701 2016-06-14 Richard Biener <rguenther@suse.de>
16702
16703 PR middle-end/71310
16704 PR bootstrap/71510
16705 * expr.h (get_bit_range): Declare.
16706 * expr.c (get_bit_range): Export.
16707 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
16708 word_mode again to constrain the bitfield access.
16709
16710 2016-06-14 Richard Biener <rguenther@suse.de>
16711
16712 PR tree-optimization/71521
16713 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
16714 division int_const_binop against zero divisor.
16715
16716 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16717
16718 * config/i386/i386.md (signbittf2): New expander.
16719 * config/i386/sse.md (ptesttf2): New insn pattern.
16720
16721 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16722
16723 PR bootstrap/71481
16724 * input.c (selftest::test_reading_source_line): Avoid reading from
16725 __FILE__ by creating a tempfile with known content and reading
16726 from that instead.
16727
16728 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16729
16730 * pretty-print.c (assert_pp_format_colored): Skip the test if
16731 GCC_COLORS is set.
16732 (test_pp_format): Remove comment about GCC_COLORS.
16733
16734 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16735
16736 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
16737 * pretty-print.c (assert_pp_format_va): Add location param and use
16738 it with ASSERT_STREQ_AT.
16739 (assert_pp_format): Add location param and pass it to
16740 assert_pp_format_va.
16741 (assert_pp_format_colored): Likewise.
16742 (ASSERT_PP_FORMAT_1): New.
16743 (ASSERT_PP_FORMAT_2): New.
16744 (ASSERT_PP_FORMAT_3): New.
16745 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
16746 explicitly, or implicitly via the above macros.
16747 * selftest.c (selftest::pass): Use a selftest::location rather
16748 than file and line.
16749 (selftest::fail): Likewise. Print the function name.
16750 (selftest::fail_formatted): Likewise.
16751 (selftest::assert_streq): Use a selftest::location rather than
16752 file and line.
16753 * selftest.h (selftest::location): New struct.
16754 (SELFTEST_LOCATION): New macro.
16755 (selftest::pass): Accept a const location & rather than file
16756 and line.
16757 (selftest::fail): Likewise.
16758 (selftest::fail_formatted): Likewise.
16759 (selftest::assert_streq): Likewise.
16760 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
16761 (ASSERT_FALSE): Likewise.
16762 (ASSERT_EQ): Likewise.
16763 (ASSERT_NE): Likewise.
16764 (ASSERT_STREQ): Likewise.
16765 (ASSERT_PRED1): Likewise.
16766 (ASSERT_STREQ_AT): New macro.
16767
16768 2016-06-13 David Malcolm <dmalcolm@redhat.com>
16769
16770 * selftest.c (selftest::fail_formatted): New function.
16771 (selftest::assert_streq): New function.
16772 * selftest.h (selftests::fail_formatted): New decl.
16773 (selftest::assert_streq): New decl.
16774 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
16775
16776 2016-06-13 Jeff Law <law@redhat.com>
16777
16778 PR tree-optimization/71403
16779 * tree-ssa-threadbackward.c
16780 (convert_and_register_jump_thread_path): No longer accept reference
16781 to path. Do not pop items off the path anymore.
16782 (fsm_find_control_statement_thread_paths): Do not allow threading
16783 to a deeper loop nest. Pop the last item off the path here rather
16784 than in convert_and_register_jump_thread_path.
16785
16786 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16787 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
16788
16789 [AArch64] Emit division using the Newton series
16790
16791 * config/aarch64/aarch64-protos.h
16792 (cpu_approx_modes): Add new member "division".
16793 (aarch64_emit_approx_div): Declare new function.
16794 * config/aarch64/aarch64.c
16795 (generic_approx_modes): New member "division".
16796 (exynosm1_approx_modes): Likewise.
16797 (xgene1_approx_modes): Likewise.
16798 (aarch64_emit_approx_div): Define new function.
16799 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
16800 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
16801 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
16802 * doc/invoke.texi (-mlow-precision-div): Describe new option.
16803
16804 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16805 Wilco Dijkstra <wilco.dijkstra@arm.com>
16806
16807 [AArch64] Emit square root using the Newton series
16808
16809 * config/aarch64/aarch64-protos.h
16810 (aarch64_emit_approx_rsqrt): Replace with new function
16811 "aarch64_emit_approx_sqrt".
16812 (cpu_approx_modes): New member "sqrt".
16813 * config/aarch64/aarch64.c
16814 (generic_approx_modes): New member "sqrt".
16815 (exynosm1_approx_modes): Likewise.
16816 (xgene1_approx_modes): Likewise.
16817 (aarch64_emit_approx_rsqrt): Replace with new function
16818 "aarch64_emit_approx_sqrt".
16819 (aarch64_override_options_after_change_1): Handle new option.
16820 * config/aarch64/aarch64-simd.md
16821 (rsqrt<mode>2): Use new function instead.
16822 (sqrt<mode>2): New expansion and insn definitions.
16823 * config/aarch64/aarch64.md: Likewise.
16824 * config/aarch64/aarch64.opt
16825 (mlow-precision-sqrt): Add new option description.
16826 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
16827
16828 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
16829
16830 [AArch64] Add more choices for the reciprocal square root approximation
16831
16832 Allow a target to prefer such operation depending on the operation mode.
16833
16834 * config/aarch64/aarch64-protos.h
16835 (AARCH64_APPROX_MODE): New macro.
16836 (AARCH64_APPROX_{NONE,ALL}): Likewise.
16837 (cpu_approx_modes): New structure.
16838 (tune_params): New member "approx_modes".
16839 * config/aarch64/aarch64-tuning-flags.def
16840 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
16841 * config/aarch64/aarch64.c
16842 (generic_approx_modes): New core "cpu_approx_modes" structure.
16843 (exynosm1_approx_modes): Likewise.
16844 (xgene1_approx_modes): Likewise.
16845 (generic_tunings): New member "approx_modes".
16846 (cortexa35_tunings): Likewise.
16847 (cortexa53_tunings): Likewise.
16848 (cortexa57_tunings): Likewise.
16849 (cortexa72_tunings): Likewise.
16850 (exynosm1_tunings): Likewise.
16851 (thunderx_tunings): Likewise.
16852 (xgene1_tunings): Likewise.
16853 (use_rsqrt_p): New argument for the mode and use new member from
16854 "tune_params".
16855 (aarch64_builtin_reciprocal): Devise mode from builtin.
16856 (aarch64_optab_supported_p): New argument for the mode.
16857 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
16858
16859 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16860
16861 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
16862 RS6000_BTM_MODULO flag into the set of flags that are considered
16863 to be part of the common configuration.
16864
16865 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16866
16867 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
16868 difference unsigned.
16869 (vec_absdb): New macro for vector absolute difference unsigned
16870 byte.
16871 (vec_absdh): New macro for vector absolute difference unsigned
16872 half-word.
16873 (vec_absdw): New macro for vector absolute difference unsigned word.
16874 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
16875 (vadu<mode>3): New insn.
16876 (*p9_vadu<mode>3): New insn.
16877 * config/rs6000/rs6000-builtin.def (vadub): New built-in
16878 definition.
16879 (vaduh): New built-in definition.
16880 (vaduw): New built-in definition.
16881 (vadu): New overloaded built-in definition.
16882 (vadub): New overloaded built-in definition.
16883 (vaduh): New overloaded built-in definition.
16884 (vaduw): New overloaded built-in definition.
16885 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16886 overloaded vector absolute difference unsigned functions.
16887 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
16888 the ISA 3.0 vector absolute difference unsigned built-in functions.
16889
16890 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
16891
16892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
16893 update shared_lookup_references only once after changing operands.
16894
16895 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
16896
16897 PR middle-end/71373
16898 * tree-nested.c (convert_nonlocal_omp_clauses)
16899 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
16900
16901 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
16902 * tree.def (CASE_LABEL_EXPR): Likewise.
16903
16904 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
16905
16906 PR bootstrap/71481
16907 * input.c (test_builtins): Fix an assertion.
16908
16909 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16910
16911 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
16912 (paritysi2): Ditto.
16913 (isinfxf2): Ditto.
16914 (isinf<mode>2): Ditto.
16915
16916 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16917
16918 * ggc-tests.c (test_finalization): Only test need_finalization_p
16919 for GCC_VERSION >= 4003.
16920
16921 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16922
16923 * config/s390/vecintrin.h: Fix file description in comment.
16924
16925 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16926
16927 * config/s390/s390-builtin-types.def: Change builtin type naming
16928 scheme to match builtin-types.def.
16929
16930 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
16931
16932 * fold-const.c (optimize_minmax_comparison): Remove.
16933 (fold_comparison): Remove call to the above.
16934 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
16935 New transformations.
16936
16937 2016-06-13 Alan Hayward <alan.hayward@arm.com>
16938
16939 PR tree-optimization/71416
16940 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
16941 multiple entries
16942
16943 2016-06-13 Martin Liska <mliska@suse.cz>
16944
16945 * predict.c (enum predictor_reason): Prefix enum with REASON_.
16946 (combine_predictions_for_insn): Likewise.
16947 (prune_predictions_for_bb): Likewise.
16948 (combine_predictions_for_bb): Likewise.
16949
16950 2016-06-13 Richard Biener <rguenther@suse.de>
16951
16952 PR tree-optimization/71505
16953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
16954 assert match comment.
16955
16956 2016-06-13 Marek Polacek <polacek@redhat.com>
16957
16958 PR middle-end/71476
16959 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
16960 gimplify_switch_expr.
16961 (warn_switch_unreachable_r): New function.
16962
16963 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16964
16965 PR target/71379
16966 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
16967 one.
16968
16969 2016-06-13 Richard Biener <rguenther@suse.de>
16970
16971 PR middle-end/64516
16972 * fold-const.c (fold_unary_loc): Preserve alignment when
16973 folding a VIEW_CONVERT_EXPR into a MEM_REF.
16974
16975 2016-06-13 Martin Liska <mliska@suse.cz>
16976
16977 PR sanitizer/71458
16978 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
16979 w/ -fsanitize=bounds.
16980
16981 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16982
16983 * config/i386/i386.c (ix86_init_builtins): Calculate
16984 FLOAT128_FTYPE_CONST_STRING function type only once.
16985 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
16986 built-in functions are available for x86-32 and x86-64 targets.
16987
16988 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16989
16990 PR target/71241
16991 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
16992 New primitive type.
16993 (FLOAT128_FTYPE_CONST_STRING): New function type.
16994 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
16995 [IX86_BUILTIN_NANSQ]: Ditto.
16996 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16997 (ix86_init_builtin_types): Declare const_string_type_node.
16998 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
16999 builtin functions.
17000 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
17001 * doc/extend.texi (x86 Built-in Functions): Document
17002 __builtin_nanq and __builtin_nansq.
17003
17004 2016-06-11 Jiong Wang <jiong.wang@arm.com>
17005
17006 PR target/71061
17007 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
17008 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
17009 length for pop patterns.
17010 (arm_attr_length_push_multi): Update comments.
17011 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
17012 attribute.
17013 (*pop_multiple_with_writeback_and_return): Likewise.
17014 (*pop_multiple_with_return): Likewise.
17015
17016 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
17017
17018 PR middle-end/71310
17019 * fold-const.c (optimize_bit_field_compare): Don't try to use
17020 word_mode unconditionally for reading the bit field, look at
17021 DECL_BIT_FIELD_REPRESENTATIVE instead.
17022
17023 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
17024
17025 PR middle-end/71478
17026 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
17027 vector integer type.
17028
17029 2016-06-10 Jakub Jelinek <jakub@redhat.com>
17030
17031 PR middle-end/71494
17032 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
17033 without LABEL_DECL, set *handled_ops_p to false instead of true.
17034
17035 2016-06-10 Martin Sebor <msebor@redhat.com>
17036
17037 PR c/71392
17038 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
17039 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
17040 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
17041 them.
17042 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
17043 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
17044 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
17045 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
17046 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
17047 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
17048 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
17049 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
17050
17051 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17052
17053 * config/arm/arm.h (pool_vector_label,
17054 return_used_this_function): Remove.
17055
17056 2016-06-10 Jeff Law <law@redhat.com>
17057
17058 PR tree-optimization/71335
17059 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
17060 zero length paths here.
17061 (convert_and_register_jump_thread_path): Remove hacks related to
17062 duplicated blocks in the jump thread path.
17063 (fsm_find_control_statement_thread_paths): Avoid putting the same
17064 block on the thread path twice, but ensure the thread path is
17065 unchanged from the caller's point of view.
17066
17067 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17068
17069 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
17070 * predict.def (PRED_LOOP_BRANCH): Remove.
17071
17072 2016-06-10 David Malcolm <dmalcolm@redhat.com>
17073
17074 * Makefile.in (OBJS): Add ggc-tests.o.
17075 (GTFILES): Add ggc-tests.c.
17076 * ggc-tests.c: New file.
17077 * selftest-run-tests.c (selftest::run_tests): Call
17078 selftest::ggc_tests_c_tests.
17079 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
17080
17081 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
17082
17083 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
17084
17085 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
17086
17087 PR sanitizer/71480
17088 * varasm.c (place_block_symbol): Adjust alignment for asan protected
17089 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
17090
17091 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
17092
17093 * profile.c: Include cfgloop.h.
17094 (branch_prob): Compute estimated number of iterations.
17095 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
17096 recompute estimate number of iterations from profile.
17097
17098 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
17099
17100 PR inline-asm/68843
17101 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
17102 must be grouped on top of stack. Don't force early clobber
17103 on ordinary reg outputs.
17104
17105 2016-06-10 Richard Biener <rguenther@suse.de>
17106
17107 * targhooks.c (default_builtin_vectorization_cost): Adjust
17108 vec_construct cost.
17109
17110 2016-06-10 Richard Biener <rguenther@suse.de>
17111
17112 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
17113 to fold the RHS to a constant if possible.
17114
17115 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
17116
17117 PR middle-end/71373
17118 * tree-nested.c (convert_nonlocal_omp_clauses)
17119 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
17120 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
17121 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
17122
17123 * gimplify.c (gimplify_adjust_omp_clauses): Discard
17124 OMP_CLAUSE_TILE.
17125 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
17126
17127 * omp-low.c (scan_sharing_clauses): Don't expect
17128 OMP_CLAUSE__CACHE_.
17129
17130 2016-06-10 Alan Hayward <alan.hayward@arm.com>
17131
17132 PR tree-optimization/71407
17133 PR tree-optimization/71416
17134 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
17135 BIT_FIELD_REF type.
17136
17137 2016-06-10 Richard Biener <rguenther@suse.de>
17138
17139 PR middle-end/71477
17140 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
17141
17142 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
17143
17144 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
17145
17146 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
17147 Jiong Wang <jiong.wang@arm.com>
17148
17149 PR rtl-optimization/70751
17150 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
17151 spilled into memory.
17152
17153 2016-06-09 Jonathan Yong <10walls@gmail.com>
17154
17155 Revert:
17156 2015-09-21 Jonathan Yong <10walls@gmail.com>
17157
17158 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
17159 sysroot/usr/lib/32api for additional win32 libraries,
17160 fixes failing Cygwin bootstrapping.
17161
17162 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
17163
17164 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
17165 Delete.
17166
17167 2016-06-09 David Malcolm <dmalcolm@redhat.com>
17168
17169 PR bootstrap/71471
17170 * pretty-print.c (pp_indent): Specify that %p is printed in a
17171 host-dependent manner.
17172 (test_pp_format): Remove the test for %p.
17173
17174 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
17175
17176 * config/mips/mips.c (mips_output_jump): Fix formatting.
17177
17178 2016-06-09 Richard Biener <rguenther@suse.de>
17179
17180 PR tree-optimization/71462
17181 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
17182 removed blocks.
17183
17184 2016-06-09 Martin Liska <mliska@suse.cz>
17185
17186 * predict.c (dump_prediction): Add new argument.
17187 (enum predictor_reason): New enum.
17188 (struct predictor_hash): New struct.
17189 (predictor_hash::hash): New function.
17190 (predictor_hash::equal): Likewise.
17191 (not_removed_prediction_p): New function.
17192 (prune_predictions_for_bb): Likewise.
17193 (combine_predictions_for_bb): Prune predictions.
17194
17195 2016-06-09 Martin Liska <mliska@suse.cz>
17196
17197 * predict.c (filter_predictions): New function.
17198 (remove_predictions_associated_with_edge): Use the filter
17199 function.
17200 (equal_edge_p): New function.
17201
17202 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
17203
17204 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
17205 Correct usage of @samp vs @option, add @samp where appropriate.
17206 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
17207 Add armv6s-m and document it, as it is no official ARM name.
17208
17209 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17210
17211 * ifcvt.c (struct noce_if_info): Add transform_name field.
17212 (noce_try_move): Set if_info->transform_name to the function name.
17213 (noce_try_ifelse_collapse): Likewise.
17214 (noce_try_store_flag): Likewise.
17215 (noce_try_inverse_constants): Likewise.
17216 (noce_try_store_flag_constants): Likewise.
17217 (noce_try_addcc): Likewise.
17218 (noce_try_store_flag_mask): Likewise.
17219 (noce_try_cmove): Likewise.
17220 (noce_try_cmove_arith): Likewise.
17221 (noce_try_minmax): Likewise.
17222 (noce_try_abs): Likewise.
17223 (noce_try_sign_mask): Likewise.
17224 (noce_try_bitop): Likewise.
17225 (noce_convert_multiple_sets): Likewise.
17226 (noce_process_if_block): Print if_info->transform_name to
17227 dump_file if transformation succeeded.
17228
17229 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17230
17231 * config/arm/cortex-a57.md (cortex_a57_alu):
17232 Handle csel type.
17233
17234 2016-06-08 Martin Sebor <msebor@redhat.com>
17235 Jakub Jelinek <jakub@redhat.com>
17236
17237 PR c++/70507
17238 PR c/68120
17239 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
17240 BUILT_IN_MUL_OVERFLOW_P): New builtins.
17241 * builtins.c: Include gimple-fold.h.
17242 (fold_builtin_arith_overflow): Handle
17243 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
17244 (fold_builtin_3): Likewise.
17245 * doc/extend.texi (Integer Overflow Builtins): Document
17246 __builtin_{add,sub,mul}_overflow_p.
17247
17248 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
17249
17250 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
17251 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
17252
17253 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
17254
17255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
17256 Rewrite, looking one level down for records and arrays.
17257
17258 2016-06-08 David Malcolm <dmalcolm@redhat.com>
17259
17260 * pretty-print.c: Include "selftest.h".
17261 (pp_format): Fix comment.
17262 (identifier_to_locale): Likewise.
17263 (selftest::test_basic_printing): New function.
17264 (selftest::assert_pp_format): New function.
17265 (selftest::test_pp_format): New function.
17266 (selftest::pretty_print_c_tests): New function.
17267 * selftest-run-tests.c (selftest::run_tests): Call
17268 selftest::pretty_print_c_tests.
17269 * selftest.h (pretty_print_c_tests): New declaration.
17270
17271 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17272
17273 * invoke.texi (max-loop-headers-insns): Document.
17274 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
17275 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
17276 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
17277
17278 2016-06-08 Richard Biener <rguenther@suse.de>
17279
17280 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
17281 on strided SLP loads and fall back to scalar loads in case
17282 we can't chunk them.
17283
17284 2016-06-08 Richard Biener <rguenther@suse.de>
17285
17286 PR tree-optimization/71452
17287 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
17288 type used for the SSA rewrite has enough precision to cover
17289 the dynamic type of the location.
17290
17291 2016-06-08 Jakub Jelinek <jakub@redhat.com>
17292 Richard Biener <rguenther@suse.de>
17293
17294 PR c++/71448
17295 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
17296 the same as DECL_P (base0) for indirect_base0. Use equality_code
17297 in one further place.
17298
17299 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
17300
17301 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
17302 to one word if the field is known to overlap other words.
17303 (extract_bit_field_1): Likewise.
17304 (store_split_bit_field): Remove compensating code.
17305 (extract_split_bit_field): Likewise.
17306
17307 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
17308
17309 PR debug/71432
17310 PR ada/71413
17311 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
17312
17313 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17314
17315 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
17316 VDQF.
17317 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
17318 (arch64_addpv4sf): Delete.
17319 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
17320 "gen_aarch64_addpv4sf".
17321 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
17322 builtin.
17323 (vpadds_f32): Likewise.
17324 (vpaddq_f32): Likewise.
17325 (vpaddq_f64): Likewise.
17326
17327 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17328
17329 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
17330 VALLF.
17331 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
17332 to VALLF. Rename to "fabd<mode>3".
17333 "*fabd_scalar<mode>3): Delete.
17334 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
17335 Use builtin.
17336 (vabdd_f64): Likewise.
17337 (vabd_f32): Likewise.
17338 (vabd_f64): Likewise.
17339 (vabdq_f32): Likewise.
17340 (vabdq_f64): Likewise.
17341
17342 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17343
17344 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
17345 VALLF.
17346 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
17347 "aarch64_rsqrts<mode>".
17348 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
17349 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
17350 builtin.
17351 (vrsqrtsd_f64): Likewise.
17352 (vrsqrts_f32): Likewise.
17353 (vrsqrts_f64): Likewise.
17354 (vrsqrtsq_f32): Likewise.
17355 (vrsqrtsq_f64): Likewise.
17356
17357 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17358
17359 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
17360 VALLF.
17361 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
17362 "aarch64_rsqrte<mode>".
17363 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
17364 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
17365 builtin.
17366 (vrsqrted_f64): Likewise.
17367 (vrsqrte_f32): Likewise.
17368 (vrsqrte_f64): Likewise.
17369 (vrsqrteq_f32): Likewise.
17370 (vrsqrteq_f64): Likewise.
17371
17372 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17373
17374 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
17375 (ucvtf): Likewise.
17376 (fcvtzs): Likewise.
17377 (fcvtzu): Likewise.
17378 * config/aarch64/aarch64-simd.md
17379 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
17380 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
17381 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
17382 Use builtin.
17383 (vcvt_n_f32_u32): Likewise.
17384 (vcvt_n_s32_f32): Likewise.
17385 (vcvt_n_u32_f32): Likewise.
17386 (vcvtq_n_f32_s32): Likewise.
17387 (vcvtq_n_f32_u32): Likewise.
17388 (vcvtq_n_f64_s64): Likewise.
17389 (vcvtq_n_f64_u64): Likewise.
17390 (vcvtq_n_s32_f32): Likewise.
17391 (vcvtq_n_s64_f64): Likewise.
17392 (vcvtq_n_u32_f32): Likewise.
17393 (vcvtq_n_u64_f64): Likewise.
17394 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
17395 (VSDQ_SDI): Likewise.
17396 (fcvt_target): Support V4DI, V4SI and V2SI.
17397 (FCVT_TARGET): Likewise.
17398
17399 2016-06-08 Jiong Wang <jiong.wang@arm.com>
17400
17401 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
17402 (TYPES_BINOP_SUS): Likewise.
17403 (aarch64_simd_builtin_data): Update include file name.
17404 (aarch64_builtins): Likewise.
17405 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
17406 for conversion between scalar float-point and fixed-point.
17407 (ucvtf): Likewise.
17408 (fcvtzs): Likewise.
17409 (fcvtzu): Likewise.
17410 * config/aarch64/aarch64.md
17411 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
17412 pattern for conversion between scalar float to fixed-pointer.
17413 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
17414 (UNSPEC_FCVTZS): New UNSPEC enumeration.
17415 (UNSPEC_FCVTZU): Likewise.
17416 (UNSPEC_SCVTF): Likewise.
17417 (UNSPEC_UCVTF): Likewise.
17418 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
17419 Use builtin.
17420 (vcvtd_n_f64_u64): Likewise.
17421 (vcvtd_n_s64_f64): Likewise.
17422 (vcvtd_n_u64_f64): Likewise.
17423 (vcvtd_n_f32_s32): Likewise.
17424 (vcvts_n_f32_u32): Likewise.
17425 (vcvtd_n_s32_f32): Likewise.
17426 (vcvts_n_u32_f32): Likewise.
17427 * config/aarch64/iterators.md (fcvt_target): Support integer to float
17428 mapping.
17429 (FCVT_TARGET): Likewise.
17430 (FCVT_FIXED2F): New iterator.
17431 (FCVT_F2FIXED): Likewise.
17432 (fcvt_fixed_insn): New define_int_attr.
17433
17434 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17435
17436 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
17437 some statements was removed.
17438
17439 2016-06-08 Alan Hayward <alan.hayward@arm.com>
17440
17441 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
17442 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
17443 (vect_can_advance_ivs_p): likewise.
17444 (vect_update_ivs_after_vectorizer): likewise.
17445 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
17446 (vect_analyze_scalar_cycles_1): likewise.
17447 (vect_analyze_loop_operations): likewise.
17448 (report_vect_op): likewise.
17449 (vect_is_slp_reduction): likewise.
17450 (vect_is_simple_reduction): likewise.
17451 (get_initial_def_for_induction): likewise.
17452 (vect_transform_loop): likewise.
17453 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
17454 (vect_recog_sad_pattern): likewise.
17455 (vect_recog_widen_sum_pattern): likewise.
17456 (vect_recog_widening_pattern): likewise.
17457 (vect_recog_divmod_pattern): likewise.
17458 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
17459 (vect_analyze_slp_instance): likewise.
17460 (vect_transform_slp_perm_load): likewise.
17461 (vect_schedule_slp_instance): likewise.
17462
17463 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17464
17465 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
17466 (return_prediction): PRED_CONST_RETURN predict return as not taken.
17467 * predict.def (PRED_CONTINUE): Change hitrate 50->67
17468 (PRED_LOOP_BRANCH): Document predictor as broken.
17469 (PRED_LOOP_EXIT): Change hitrate 91->92.
17470 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
17471 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
17472 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
17473 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
17474 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
17475 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
17476 (PRED_CALL): Chane hitrate 71->67.
17477 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
17478 (PRED_GOTO): Document as unused right now.
17479 (PRED_CONST_RETURN): Change hitrate 67->69
17480 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
17481 (PRED_NULL_RETURN): Change hitrate 91->90.
17482 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
17483 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
17484 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
17485
17486 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
17487
17488 * config/rs6000/altivec.h: Add __builtin_vec_mul.
17489 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
17490 special case Altivec builtin.
17491 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17492 VSX_BUILTIN_VEC_MUL (replaced with special case code).
17493 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17494 code for ALTIVEC_BUILTIN_VEC_MUL.
17495 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17496 for __builtin_vec_mul.
17497
17498 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
17499
17500 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
17501 -mno-htm.
17502
17503 2016-06-07 David Malcolm <dmalcolm@redhat.com>
17504
17505 * spellcheck.c (selftest::test_find_closest_string): New function.
17506 (spellcheck_c_tests): Call the above.
17507
17508 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17509
17510 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
17511
17512 2016-06-07 Jakub Jelinek <jakub@redhat.com>
17513
17514 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
17515 Yv=Yv,C alternatives.
17516
17517 2016-06-07 Richard Biener <rguenther@suse.de>
17518
17519 PR c/61564
17520 * common.opt (ffast-math): Make Optimization.
17521
17522 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
17523 Prachi Godbole <prachi.godbole@imgtec.com>
17524
17525 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
17526 `fabs' and `fneg' type attributes.
17527 (p5600_fpu_fabs): Add `fmove' to the comment.
17528
17529 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
17530
17531 * gimple.c: Include builtins.h
17532 (gimple_inexpensive_call_p): New function.
17533 * gimple.h (gimple_inexpensive_call_p): Declare.
17534 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
17535 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
17536 fix formatting.
17537
17538 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
17539
17540 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
17541 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
17542 warning_at_rich_loc, warning_n, pedwarn, permerror,
17543 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
17544 sorry, fatal_error, internal_error, internal_error_no_backtrace):
17545 Use the above.
17546
17547 2016-06-07 Richard Biener <rguenther@suse.de>
17548
17549 PR tree-optimization/71428
17550 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
17551 BIT_FIELD_REF op vs. load.
17552
17553 2016-06-07 Richard Biener <rguenther@suse.de>
17554
17555 PR middle-end/71423
17556 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
17557 for signed ops.
17558
17559 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17560
17561 * config/pa/pa.md (call): Generate indirect long calls to non-local
17562 functions on TARGET_64BIT.
17563 (call_value): Likewise.
17564
17565 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
17566
17567 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
17568 pattern and subsequent splitters.
17569 (call_val_reg_64bit_post_reload): Likewise.
17570
17571 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17572
17573 PR middle-end/71408
17574 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
17575 propagate_op_to_single_use.
17576
17577 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
17578
17579 PR middle-end/71281
17580 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
17581
17582 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
17583
17584 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
17585 (enum x86_dirflag_state): New enum.
17586 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
17587 (machine_function): Remove needs_cld.
17588 (ix86_current_function_needs_cld): Remove.
17589 * config/i386/i386.c (ix86_set_func_type): Set
17590 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
17591 (ix86_expand_prologue): Do not emit CLD here.
17592 (ix86_dirflag_mode_needed): New function.
17593 (ix86_dirflag_mode_entry): Ditto.
17594 (ix86_mode_needed): Handle X86_DIRFLAG entity.
17595 (ix86_mode_after): Ditto.
17596 (ix86_mode_entry): Ditto.
17597 (ix86_mode_exit): Ditto.
17598 (ix86_emit_mode_set): Ditto.
17599 * config/i386/i386.md (strmov_singleop): Set
17600 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
17601 Do not set ix86_current_function_needs_cld.
17602 (rep_mov): Ditto.
17603 (strset_singleop): Ditto.
17604 (rep_stos): Ditto.
17605 (cmpstrnqi_nz_1): Ditto.
17606 (cmpstrnqi_1): Ditto.
17607 (strlenqi_1): Ditto.
17608
17609 2016-06-06 Jakub Jelinek <jakub@redhat.com>
17610
17611 PR tree-optimization/71259
17612 * tree-vect-slp.c (vect_get_constant_vectors): For
17613 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
17614 one for constant op, and use COND_EXPR for non-constant.
17615
17616 2016-06-06 David Malcolm <dmalcolm@redhat.com>
17617
17618 * Makefile.in (OBJS): Add function-tests.o,
17619 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
17620 selftest-run-tests.o.
17621 (OBJS-libcommon): Add selftest.o.
17622 (OBJS-libcommon-target): Add selftest.o.
17623 (all.internal): Add "selftest".
17624 (all.cross): Likewise.
17625 (selftest): New phony target.
17626 (s-selftest): New target.
17627 (selftest-gdb): New phony target.
17628 (COLLECT2_OBJS): Add selftest.o.
17629 * bitmap.c: Include "selftest.h".
17630 (selftest::test_gc_alloc): New function.
17631 (selftest::test_set_range): New function.
17632 (selftest::test_clear_bit_in_middle): New function.
17633 (selftest::test_copying): New function.
17634 (selftest::test_bitmap_single_bit_set_p): New function.
17635 (selftest::bitmap_c_tests): New function.
17636 * common.opt (fself-test): New.
17637 * diagnostic-show-locus.c: Include "selftest.h".
17638 (make_range): New function.
17639 (test_range_contains_point_for_single_point): New function.
17640 (test_range_contains_point_for_single_line): New function.
17641 (test_range_contains_point_for_multiple_lines): New function.
17642 (assert_eq): New function.
17643 (test_get_line_width_without_trailing_whitespace): New function.
17644 (selftest::diagnostic_show_locus_c_tests): New function.
17645 * et-forest.c: Include "selftest.h".
17646 (selftest::test_single_node): New function.
17647 (selftest::test_simple_tree): New function.
17648 (selftest::test_disconnected_nodes): New function.
17649 (selftest::et_forest_c_tests): New function.
17650 * fold-const.c: Include "selftest.h".
17651 (selftest::assert_binop_folds_to_const): New function.
17652 (selftest::assert_binop_folds_to_nonlvalue): New function.
17653 (selftest::test_arithmetic_folding): New function.
17654 (selftest::fold_const_c_tests): New function.
17655 * function-tests.c: New file.
17656 * gimple.c: Include "selftest.h".
17657 Include "gimple-pretty-print.h".
17658 (selftest::verify_gimple_pp): New function.
17659 (selftest::test_assign_single): New function.
17660 (selftest::test_assign_binop): New function.
17661 (selftest::test_nop_stmt): New function.
17662 (selftest::test_return_stmt): New function.
17663 (selftest::test_return_without_value): New function.
17664 (selftest::gimple_c_tests): New function.
17665 * hash-map-tests.c: New file.
17666 * hash-set-tests.c: New file.
17667 * input.c: Include "selftest.h".
17668 (selftest::assert_loceq): New function.
17669 (selftest::test_accessing_ordinary_linemaps): New function.
17670 (selftest::test_unknown_location): New function.
17671 (selftest::test_builtins): New function.
17672 (selftest::test_reading_source_line): New function.
17673 (selftest::input_c_tests): New function.
17674 * rtl-tests.c: New file.
17675 * selftest-run-tests.c: New file.
17676 * selftest.c: New file.
17677 * selftest.h: New file.
17678 * spellcheck.c: Include "selftest.h".
17679 (selftest::levenshtein_distance_unit_test_oneway): New function,
17680 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
17681 (selftest::levenshtein_distance_unit_test): Likewise.
17682 (selftest::spellcheck_c_tests): Likewise.
17683 * toplev.c: Include selftest.h.
17684 (toplev::run_self_tests): New.
17685 (toplev::main): Handle -fself-test.
17686 * toplev.h (toplev::run_self_tests): New.
17687 * tree.c: Include "selftest.h".
17688 (selftest::test_integer_constants): New function.
17689 (selftest::test_identifiers): New function.
17690 (selftest::test_labels): New function.
17691 (selftest::tree_c_tests): New function.
17692 * tree-cfg.c: Include "selftest.h".
17693 (selftest::push_fndecl): New function.
17694 (selftest::test_linear_chain): New function.
17695 (selftest::test_diamond): New function.
17696 (selftest::test_fully_connected): New function.
17697 (selftest::tree_cfg_c_tests): New function.
17698 * vec.c: Include "selftest.h".
17699 (selftest::safe_push_range): New function.
17700 (selftest::test_quick_push): New function.
17701 (selftest::test_safe_push): New function.
17702 (selftest::test_truncate): New function.
17703 (selftest::test_safe_grow_cleared): New function.
17704 (selftest::test_pop): New function.
17705 (selftest::test_safe_insert): New function.
17706 (selftest::test_ordered_remove): New function.
17707 (selftest::test_unordered_remove): New function.
17708 (selftest::test_block_remove): New function.
17709 (selftest::reverse_cmp): New function.
17710 (selftest::test_qsort): New function.
17711 (selftest::vec_c_tests): New function.c.
17712 * wide-int.cc: Include selftest.h and wide-int-print.h.
17713 (selftest::from_int <wide_int>): New function.
17714 (selftest::from_int <offset_int>): New function.
17715 (selftest::from_int <widest_int>): New function.
17716 (selftest::assert_deceq): New function.
17717 (selftest::assert_hexeq): New function.
17718 (selftest::test_printing <VALUE_TYPE>): New function template.
17719 (selftest::test_ops <VALUE_TYPE>): New function template.
17720 (selftest::test_comparisons <VALUE_TYPE>): New function template.
17721 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
17722 template.
17723 (selftest::wide_int_cc_tests): New function.
17724
17725 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17726
17727 PR middle-end/37780
17728 * ifcvt.c (noce_try_ifelse_collapse): New function.
17729 Declare prototype.
17730 (noce_process_if_block): Call noce_try_ifelse_collapse.
17731 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
17732 (simplify_ternary_operation): Use the above to simplify
17733 conditional CLZ/CTZ expressions.
17734
17735 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17736
17737 PR middle-end/37780
17738 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
17739 define_insn_and_split.
17740
17741 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17742
17743 PR middle-end/37780
17744 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
17745
17746 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
17747
17748 PR c/24414
17749 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
17750 Implicitly clobber memory for basic asm with non-empty assembler
17751 string. Use targetm.md_asm_adjust also here.
17752 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
17753 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
17754 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
17755 non-empty assembler string.
17756 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
17757 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
17758 (decode_asm_operands): Handle basic asm in PARALLEL block.
17759 (extract_insn): Handle basic asm in PARALLEL block.
17760 * doc/extend.texi: Mention new behavior of basic asm.
17761 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
17762 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
17763 branch_needs_nop_p): Use asm_noperands.
17764
17765 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
17766
17767 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
17768 Include the M7 SPARC DFA scheduler.
17769 New attribute v3pipe.
17770 Annotate insns with v3pipe where appropriate.
17771 Define cpu_feature vis4.
17772 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
17773 Add (V8QI "8") to vbits.
17774 Add insns {add,sub}v8qi3
17775 Add insns ss{add,sub}v8qi3
17776 Add insns us{add,sub}{v8qi,v4hi}3
17777 Add insns {min,max}{v8qi,v4hi,v2si}3
17778 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
17779 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
17780 * config/sparc/niagara4.md: Add a comment explaining the
17781 discrepancy between the documented latenty numbers and the
17782 implemented ones.
17783 * config/sparc/niagara7.md: New file.
17784 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
17785 supports SPARC5 and VIS 4.0 instructions.
17786 * configure: Regenerate.
17787 * config.in: Likewise.
17788 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
17789 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
17790 TARGET_CPU_niagara7.
17791 (ASM_CPU64_DEFAULT_SPEC): Likewise.
17792 (CPP_CPU_SPEC): Handle niagara7.
17793 (ASM_CPU_SPEC): Likewise.
17794 * config/sparc/sparc-opts.h (processor_type): Add
17795 PROCESSOR_NIAGARA7.
17796 (mvis4): New option.
17797 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
17798 (AS_NIAGARA7_FLAG): Define.
17799 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
17800 (CPP_CPU64_DEFAULT_SPEC): Likewise.
17801 (CPP_CPU_SPEC): Handle niagara7.
17802 (ASM_CPU_SPEC): Likewise.
17803 * config/sparc/sparc.c (niagara7_costs): Define.
17804 (sparc_option_override): Handle niagara7 and adjust cache-related
17805 parameters with better values for niagara cpus. Also support VIS4.
17806 (sparc32_initialize_trampoline): Likewise.
17807 (sparc_use_sched_lookahead): Likewise.
17808 (sparc_issue_rate): Likewise.
17809 (sparc_register_move_cost): Likewise.
17810 (dump_target_flag_bits): Support VIS4.
17811 (sparc_vis_init_builtins): Likewise.
17812 (sparc_builtins): Likewise.
17813 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
17814 VIS4 4.0.
17815 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
17816 UltraSparc M7.
17817 * config/sparc/sparc.opt (sparc_processor_type): New value
17818 niagara7.
17819 * config/sparc/visintrin.h (__attribute__): Prototypes for the
17820 VIS4 builtins.
17821 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
17822 -mvis4.
17823 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
17824 VIS4 builtins.
17825
17826 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
17827
17828 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
17829
17830 2016-06-06 Richard Biener <rguenther@suse.de>
17831
17832 PR tree-optimization/71398
17833 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
17834 remove edges.
17835
17836 2016-06-05 James Bowman <james.bowman@ftdichip.com>
17837
17838 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
17839 ft32_expand_prolog, ft32_expand_epilogue):
17840 Handle pretend_args.
17841 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
17842 * config/ft32/ft32.md: Add pretend_returner.
17843
17844 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
17845
17846 PR target/71389
17847 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17848 Copy op1 RTX to avoid invalid sharing.
17849 (ix86_expand_vector_move_misalign): Ditto.
17850
17851 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
17852
17853 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
17854 ATTRIBUTE_UNUSED.
17855
17856 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17857
17858 * predict.c (predicted_by_loop_heuristics_p): New function.
17859 (predict_iv_comparison): Use it.
17860 (predict_loops): Walk from innermost loops; do not predict edges
17861 leaving multiple loops multiple times; implement
17862 PRED_LOOP_ITERATIONS_MAX heuristics.
17863 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
17864
17865 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
17866
17867 * cfg.c (check_bb_profile): Do not report mismatched profiles when
17868 only edges out of BB are EH edges.
17869
17870 2016-06-04 Martin Sebor <msebor@redhat.com>
17871 Marcin Baczyński <marbacz@gmail.com>
17872
17873 PR c/48116
17874 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
17875 a void expression in a void function.
17876
17877 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17878
17879 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
17880 aux; dump reasons of decisions.
17881 (should_duplicate_loop_header_p): Likewise.
17882 (do_while_loop_p): Likewise.
17883 (ch_base::copy_headers): Dump asi num insns duplicated.
17884
17885 2016-06-04 Jakub Jelinek <jakub@redhat.com>
17886
17887 PR tree-optimization/71405
17888 * tree-ssa.c (execute_update_addresses_taken): For clobber with
17889 incompatible type, build a new clobber with the right type instead
17890 of building a VIEW_CONVERT_EXPR around it.
17891
17892 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17893
17894 PR tree-optimization/52171
17895 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
17896 by_pieces_ninsns instead of move_by_pieces_ninsns.
17897
17898 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
17899
17900 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
17901 for reg+reg addressing mode.
17902
17903 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17904
17905 * rs6000-c.c (c/c-tree.h): Add #include.
17906 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
17907 in C++ when found in the base position of vec_ld or vec_st.
17908
17909 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17910
17911 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
17912 use of profile unless profile status is PROFILE_READ.
17913 * profile.c (compute_branch_probabilities): Set profile status
17914 only after reporting predictor hitrates.
17915
17916 2016-06-03 Joseph Myers <joseph@codesourcery.com>
17917
17918 PR target/71276
17919 PR target/71277
17920 * common.opt (ffp-int-builtin-inexact): New option.
17921 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
17922 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
17923 (ceil@var{m}2): Document dependence on this option.
17924 * ipa-inline-transform.c (inline_call): Handle
17925 flag_fp_int_builtin_inexact.
17926 * ipa-inline.c (can_inline_edge_p): Likewise.
17927 * config/i386/i386.md (rintxf2): Do not test
17928 flag_unsafe_math_optimizations.
17929 (rint<mode>2_frndint): New define_insn.
17930 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
17931 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
17932 for 387 instead of extending and truncating.
17933 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
17934 !flag_trapping_math instead of flag_unsafe_math_optimizations.
17935 Change to frndint<mode>2_<rounding>.
17936 (frndintxf2_<rounding>_i387): Likewise. Change to
17937 frndint<mode>2_<rounding>_i387.
17938 (<rounding_insn>xf2): Likewise.
17939 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
17940 !flag_trapping_math instead of flag_unsafe_math_optimizations for
17941 x87. Test TARGET_ROUND || !flag_trapping_math ||
17942 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
17943 SSE. Use ROUND_NO_EXC in constant operand of
17944 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
17945 for 387 instead of extending and truncating.
17946
17947 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
17948 Julia Koval <julia.koval@intel.com>
17949
17950 PR target/66960
17951 PR target/67630
17952 PR target/67634
17953 PR target/67841
17954 PR target/68037
17955 PR target/68618
17956 PR target/68661
17957 PR target/69575
17958 PR target/69596
17959 PR target/69734
17960 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
17961 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
17962 all registers, except for function return registers if there are
17963 no caller-saved registers.
17964 (ix86_set_func_type): New function.
17965 (ix86_set_current_function): Call ix86_set_func_type to set
17966 no_caller_saved_registers and func_type. Call reinit_regs if
17967 caller-saved registers are changed. Don't allow MPX, SSE, MMX
17968 nor x87 instructions in interrupt handler nor function with
17969 no_caller_saved_registers attribute.
17970 (ix86_function_ok_for_sibcall): Return false if there are no
17971 caller-saved registers.
17972 (type_natural_mode): Don't warn ABI change for MMX in interrupt
17973 handler.
17974 (ix86_function_arg_advance): Skip for callee in interrupt handler.
17975 (ix86_function_arg): Return special arguments in interrupt handler.
17976 (ix86_promote_function_mode): Promote pointer to word_mode only
17977 for normal functions.
17978 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
17979 interrupt handler.
17980 (ix86_epilogue_uses): New function.
17981 (ix86_hard_regno_scratch_ok): Likewise.
17982 (ix86_save_reg): Preserve all registers in interrupt handler
17983 after reload. Preserve all registers, except for function return
17984 registers, if there are no caller-saved registers after reload.
17985 (find_drap_reg): Always use callee-saved register if there are
17986 no caller-saved registers.
17987 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
17988 for interrupt handler.
17989 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
17990 Emit cld instruction if stringops are used in interrupt handler
17991 or interrupt handler isn't a leaf function.
17992 (ix86_expand_epilogue): Generate interrupt return for interrupt
17993 handler and pop the 'ERROR_CODE' off the stack before interrupt
17994 return in exception handler.
17995 (ix86_expand_call): Disallow calling interrupt handler directly.
17996 If there are no caller-saved registers, mark all registers that
17997 are clobbered by the call which returns as clobbered.
17998 (ix86_handle_no_caller_saved_registers_attribute): New function.
17999 (ix86_handle_interrupt_attribute): Likewise.
18000 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
18001 attributes.
18002 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
18003 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
18004 accumulation in interrupt function if stack may be realigned to
18005 avoid DRAP.
18006 (EPILOGUE_USES): New.
18007 (function_type): New enum.
18008 (machine_function): Add func_type and no_caller_saved_registers.
18009 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
18010 (interrupt_return): New pattern.
18011 * doc/extend.texi: Document x86 interrupt and
18012 no_caller_saved_registers attributes.
18013
18014 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
18015
18016 PR tree-optimization/52171
18017 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
18018 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
18019 Look for constant strings. Move some code to emit_block_cmp_hints
18020 and use it.
18021 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
18022 * defaults.h (COMPARE_MAX_PIECES): New macro.
18023 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
18024 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
18025 (clear_by_pieces_1): Don't declare. Move definition before use.
18026 (can_do_by_pieces): New static function.
18027 (can_move_by_pieces): Use it. Return bool.
18028 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
18029 OP. All callers changed. Handle COMPARE_BY_PIECES.
18030 (class pieces_addr); New.
18031 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
18032 pieces_addr::adjust, pieces_addr::increment_address,
18033 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
18034 functions for it.
18035 (class op_by_pieces_d): New.
18036 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
18037 functions for it.
18038 (class move_by_pieces_d, class compare_by_pieces_d,
18039 class store_by_pieces_d): New subclasses of op_by_pieces_d.
18040 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
18041 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
18042 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
18043 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
18044 compare_by_pieces_d::finish_mode): New member functions.
18045 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
18046 functions.
18047 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
18048 (emit_block_cmp_hints): New function.
18049 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
18050 use the newly defined classes.
18051 * expr.h (by_pieces_constfn): New typedef.
18052 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
18053 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
18054 (move_by_pieces_ninsns): Don't declare.
18055 (can_move_by_pieces): Change return value to bool.
18056 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
18057 (compare_by_pieces_branch_ratio): New hook.
18058 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
18059 (by_pieces_ninsns): Declare.
18060 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
18061 COMPARE_BY_PIECES.
18062 (default_compare_by_pieces_branch_ratio): New function.
18063 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
18064 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
18065 * doc/tm.texi: Regenerate.
18066 * tree-ssa-strlen.c: Include "builtins.h".
18067 (handle_builtin_memcmp): New static function.
18068 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
18069 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
18070
18071 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18072
18073 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
18074 relevant stmts which are simple and invariant.
18075 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
18076 instead of simple and invariant
18077
18078 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18079
18080 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
18081 (vectorizable_reduction): Check for new relevant state.
18082 (vectorizable_live_operation): vectorize live stmts using
18083 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
18084 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
18085 (vect_stmt_relevant_p): Check for stmts which are only used live.
18086 (process_use): Use of a stmt does not inherit it's live value.
18087 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
18088 (vect_analyze_stmt): Check for new relevant state.
18089 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
18090 outside the loop, but not inside it.
18091
18092 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18093
18094 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
18095 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
18096 (vect_get_vec_def_for_operand): Split out code.
18097
18098 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
18099
18100 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
18101
18102 2016-06-03 Alan Hayward <alan.hayward@arm.com>
18103
18104 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
18105
18106 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18107
18108 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
18109
18110 2016-06-03 Jakub Jelinek <jakub@redhat.com>
18111
18112 PR middle-end/71387
18113 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
18114 to noreturn e->callee->decl that has void return type and void
18115 arguments, adjust gimple_call_fntype and remove lhs even if it had
18116 previously addressable type.
18117
18118 2016-06-02 Jeff Law <law@redhat.com>
18119
18120 PR tree-optimization/71328
18121 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
18122 error when checking for a jump back onto the copied path.
18123
18124 2016-06-02 David Malcolm <dmalcolm@redhat.com>
18125
18126 * config/microblaze/microblaze.c (get_branch_target): Add return
18127 NULL_RTX for the non-CALL_P case.
18128 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
18129 (insert_wic): Remove unused local "j".
18130
18131 2016-06-02 Martin Liska <mliska@suse.cz>
18132
18133 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
18134
18135 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
18136 Julia Koval <julia.koval@intel.com>
18137
18138 * function.c (assign_parm_setup_stack): Force source into a
18139 register if needed.
18140 * target.def (function_incoming_arg): Update documentation to
18141 allow arbitrary address computation based on hard register.
18142 * doc/tm.texi: Regenerated.
18143
18144 2016-06-02 Martin Liska <mliska@suse.cz>
18145
18146 * predict.c (combine_predictions_for_bb): Fix first match in
18147 cases where a first predictor contains more than one occurence
18148 in list of predictors. Take the best value in such case.
18149
18150 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18151
18152 PR rtl-optimization/71295
18153 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
18154 offset would go over the size of the inner mode reject it.
18155
18156 2016-06-02 Jakub Jelinek <jakub@redhat.com>
18157
18158 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
18159 x=x,x and v=v,m instead of x=x,m.
18160
18161 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
18162 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
18163 alternative to v=rm,C.
18164
18165 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
18166 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
18167 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
18168 instead of vex for the last two above mentioned alternatives.
18169
18170 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18171
18172 PR target/70830
18173 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
18174
18175 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
18176
18177 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
18178
18179 2016-06-01 David Malcolm <dmalcolm@redhat.com>
18180
18181 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
18182 from int to unsigned.
18183
18184 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18185
18186 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
18187 alternatives, eliminating preferred register class. Add support
18188 for the MTVSRDD instruction in ISA 3.0.
18189 (vsx_splat_v4si_internal): Use splat_input_operand instead of
18190 reg_or_indexed_operand.
18191 (vsx_splat_v4sf_internal): Likewise.
18192
18193 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
18194
18195 PR target/71186
18196 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
18197 for loading up all 0's or all 1's.
18198
18199 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
18200
18201 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
18202
18203 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
18204
18205 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
18206 extension.
18207 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
18208 * gcc.c (set_source_date_epoch_envvar): New function, sets
18209 the SOURCE_DATE_EPOCH environment variable to the current time.
18210
18211 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18212
18213 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
18214 the factor for live Phi nodes.
18215
18216 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18217
18218 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
18219 * tree-parloops.c (parallelize_loops): likewise.
18220 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
18221 tree_unswitch_outer_loop): likewise.
18222
18223 2016-06-01 Jakub Jelinek <jakub@redhat.com>
18224
18225 PR middle-end/71371
18226 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
18227 around creation of the temporary.
18228
18229 2016-06-01 Richard Biener <rguenther@suse.de>
18230
18231 PR tree-optimization/71366
18232 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
18233 (unloop_loops): Move removing edges here ...
18234 (try_unroll_loop_completely): ... from here.
18235 (try_peel_loop): ... and here.
18236 (tree_unroll_loops_completely_1): Track parent loops via
18237 bitmap of header BBs.
18238 (tree_unroll_loops_completely): Adjust for that.
18239
18240 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18241
18242 * config/rs6000/altivec.h (vec_slv): New macro.
18243 (vec_srv): New macro.
18244 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
18245 (UNSPEC_VSRV): New value.
18246 (vslv): New insn.
18247 (vsrv): New insn.
18248 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
18249 (vsrv): New builtin definition.
18250 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
18251 define argument types for new builtin.
18252 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
18253 new builtin.
18254 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
18255 functions.
18256
18257 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
18258 Jocelyn Mayer <l_indien@magic.fr>
18259
18260 PR target/67310
18261 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
18262 detect processor family for signature_CENTAUR_ebx.
18263 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
18264 signature_CENTAUR_ebx.
18265 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
18266 <default>: Pass x86-64 for has_longmode.
18267
18268 2016-06-01 Nathan Sidwell <nathan@acm.org>
18269
18270 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
18271 undefined weak.
18272
18273 2016-06-01 Richard Biener <rguenther@suse.de>
18274
18275 PR tree-optimization/71261
18276 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
18277 of stmts successfully put in the bool pattern. Remove
18278 single-use restriction.
18279 (adjust_bool_pattern_cast): Add cast at the use site via the
18280 pattern def sequence.
18281 (adjust_bool_pattern): Remove recursion, maintain a hash-map
18282 of patterned defs. Use the pattern def seqence instead of
18283 multiple independent patterns.
18284 (sort_after_uid): New qsort compare function.
18285 (adjust_bool_stmts): New function to process stmts in the bool
18286 pattern in IL order.
18287 (vect_recog_bool_pattern): Adjust.
18288 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
18289 (ifcvt_walk_pattern_tree): Likewise.
18290 (stmt_is_root_of_bool_pattern): Likewise.
18291 (ifcvt_repair_bool_pattern): Likewise.
18292 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
18293
18294 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
18295
18296 * loop-unroll.c (decide_unroll_constant_iterations,
18297 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
18298 likely upper bounds.
18299 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
18300
18301 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
18302
18303 * tree-core.h (enum omp_clause_code): Remove
18304 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
18305
18306 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18307
18308 * config/arm/sync.md (arm_store_exclusive<mode>):
18309 Use 'H' output modifier on operands[2] rather than creating a new
18310 entry in out-of-bounds memory of the operands array.
18311 (arm_store_release_exclusivedi): Likewise.
18312
18313 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18314
18315 * config/arm/arm.c (arm_fusion_enabled_p): New function.
18316 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
18317 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
18318 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18319
18320 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
18321
18322 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
18323 into account live statements for mask producers.
18324
18325 2016-06-01 Richard Biener <rguenther@suse.de>
18326
18327 PR tree-optimization/71311
18328 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
18329 restrict to non-INTEGER_CST @0.
18330
18331 2016-06-01 Richard Biener <rguenther@suse.de>
18332
18333 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
18334 (relational patterns): Use :c to avoid pattern duplications.
18335
18336 2016-06-01 Richard Biener <rguenther@suse.de>
18337
18338 * genmatch.c (comparison_code_p): New predicate.
18339 (swap_tree_comparison): New function.
18340 (commutate): Add for_vec parameter to append new for entries.
18341 Support commutating relational operators by swapping it alongside
18342 operands.
18343 (lower_commutative): Adjust.
18344 (dt_simplify::gen): Do not pass artificial operators to gen
18345 functions.
18346 (decision_tree::gen): Do not add artificial operators as parameters.
18347 (parser::parse_expr): Verify operator commutativity when :c is
18348 applied. Allow :C to override this.
18349 * match.pd: Adjust patterns to use :C instead of :c where required.
18350
18351 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
18352
18353 PR tree-optimization/71077
18354 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
18355 the combining step, use boolean_false_node and boolean_true_node
18356 as the designated false/true return values.
18357
18358 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18359
18360 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
18361 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
18362 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
18363 PRED_LOOP_EXIT.
18364
18365 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18366
18367 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
18368 of flags impliying the register renaming.
18369 * toplev.c (process_options): Do not imply flag_rename_registers with
18370 loop peeling.
18371
18372 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18373
18374 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
18375 default implementation.
18376
18377 2016-05-31 Nathan Sidwell <nathan@acm.org>
18378
18379 * dwarf2out.c (cur_line_info_table): Add GTY marker.
18380
18381 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18382
18383 * config/sh/constraints.md (b): Remove constraint.
18384 * config/sh/predicates.md (arith_reg_operand): Remove
18385 TARGET_REGISTER_P.
18386 * config/sh/sh-modes.def (PDI): Remove.
18387 * config/sh/sh.c (sh_target_reg_class,
18388 sh_optimize_target_register_callee_saved): Remove functions.
18389 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
18390 (sh_expand_epilogue): Update comment.
18391 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
18392 sh_secondary_reload): Remove TARGET_REGS related code.
18393 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
18394 TARGET_REGISTER_P): Remove macros.
18395 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
18396 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
18397 TR1_REG, TR2_REG): Remove constants.
18398 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
18399
18400 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18401
18402 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
18403 define_expand patterns.
18404 (adddi3_compact): Rename to adddi3.
18405 (subdi3_compact): Rename to subdi3.
18406 (*negdi2): Rename to negdi2.
18407 (*abs<mode>2): Rename to abs<mode>2.
18408
18409 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
18410
18411 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
18412 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
18413 (atomic_sub_fetchsi): ... this new pattern.
18414 (mvtc): Add CC_REG clobber.
18415
18416 2016-05-31 Marek Polacek <polacek@redhat.com>
18417
18418 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
18419
18420 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18421
18422 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
18423 aarch64_fusion_enabled_p to check for fusion capabilities.
18424
18425 2016-05-31 Richard Biener <rguenther@suse.de>
18426
18427 PR tree-optimization/71352
18428 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
18429 minus one and a negate.
18430
18431 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18432
18433 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
18434 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
18435 Delete prototype.
18436 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
18437 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
18438 Remove use of aarch64_simd_attr_length_move, set length attribute
18439 directly.
18440 (*aarch64_be_movoi): Likewise.
18441 (*aarch64_be_movci): Likewise.
18442 (*aarch64_be_movxi): Likewise.
18443
18444 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
18445
18446 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
18447 It no longer does that.
18448 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
18449
18450 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
18451
18452 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
18453 attribute __unused__.
18454
18455 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
18456
18457 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
18458 * config/arm/arm.c (arm_arch_thumb1): Define.
18459 (arm_option_override): Initialize arm_arch_thumb1.
18460 * config/arm/arm.h (arm_arch_thumb1): Declare.
18461 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
18462 support Thumb-1 ISA.
18463
18464 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
18465
18466 PR target/71346
18467 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
18468 `Yv' for scalar operand.
18469
18470 2016-05-31 Tom de Vries <tom@codesourcery.com>
18471
18472 PR tree-optimization/69068
18473 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
18474 phis with more than two args.
18475
18476 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
18477
18478 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
18479 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
18480 target.
18481
18482 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
18483
18484 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
18485 tune_64.
18486 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18487 support on SPARC.
18488 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
18489 cpu_32, cpu_64, tune_32 and tune_64.
18490 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
18491
18492 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
18493
18494 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
18495
18496 2016-05-30 Andi Kleen <ak@linux.intel.com>
18497
18498 * auto-profile.c (read_profile): Replace asserts with errors
18499 when file does not exist.
18500 * gcov-io.c (gcov_read_words): Dito.
18501
18502 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18503
18504 * tree-cfg.c (print_loop): Print likely upper bounds.
18505
18506 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18507
18508 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
18509 * opts.c (default_options): Enable peel loops at -O3.
18510 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
18511 (try_peel_loop): Do not re-peel already peeled loops;
18512 use likely upper bounds; fix profile updating.
18513 (pass_complete_unroll::execute): Initialize peeled_loops.
18514
18515 2016-05-30 Martin Liska <mliska@suse.cz>
18516
18517 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
18518 computed costs by frequency of BB they belong to.
18519 (get_scaled_computation_cost_at): New function.
18520
18521 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
18522 Marc Glisse <marc.glisse@inria.fr>
18523
18524 PR tree-optimization/71289
18525 * match.pd (-1 / B < A, A > -1 / B): New transformations.
18526
18527 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18528
18529 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
18530
18531 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18532
18533 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
18534 for peeled copies; avoid underflow when updating estimates; correctly
18535 scale loop profile.
18536
18537 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18538
18539 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
18540 r236875. Corrected oe3 to oe2 as obvious.
18541
18542 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18543
18544 PR middle-end/71269
18545 PR middle-end/71252
18546 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
18547 that inserted stmt will not dominate stmts that defines its operand.
18548 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
18549 (rewrite_expr_tree_parallel): Likewise.
18550
18551 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
18552
18553 PR middle-end/71252
18554 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
18555 all fields including stmt_to_insert are swapped.
18556
18557 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18558
18559 * predict.h (force_edge_cold): Declare.
18560 * predict.c (force_edge_cold): New function.
18561 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
18562 updating.
18563 (canonicalize_loop_induction_variables): Fix formating.
18564
18565 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
18566
18567 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
18568 (visium_expand_copysign): Use gen_int_mode directly.
18569 (visium_compute_frame_size): Minor tweaks.
18570
18571 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
18572
18573 * tree-vect-loop.c (vect_analyze_loop_2): Use
18574 likely_max_stmt_executions_int.
18575
18576 2016-05-30 Tom de Vries <tom@codesourcery.com>
18577
18578 PR tree-optimization/69067
18579 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
18580
18581 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
18582
18583 PR target/71245
18584 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18585 New peepholes to remove unneeded fild/fistp pairs.
18586 (define_peephole2 atomic_loaddi_fpu): Ditto.
18587
18588 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18589
18590 * predict.c (maybe_hot_frequency_p): Avoid division.
18591
18592 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
18593
18594 * doc/install.texi: Use https for shop.fsf.org.
18595
18596 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18597
18598 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
18599 likely_max_stmt_executions_int.
18600
18601 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18602
18603 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
18604 likely_max_stmt_executions_int.
18605
18606 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18607
18608 * profile.c (compute_branch_probabilities): Do not report hitrates
18609 here.
18610 (branch_prob): Report hitrates here.
18611 * predict.c (gimple_predict_edge): Do not assert profile status;
18612 fix formatting issues.
18613
18614 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18615
18616 * predict.c (edge_predicted_by_p): New function.
18617 (predict_paths_for_bb): Do not put multiple predictions of the same type
18618 on one edge.
18619
18620 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18621
18622 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
18623 commit.
18624
18625 2016-05-28 Alan Modra <amodra@gmail.com>
18626
18627 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
18628
18629 2016-05-28 Alan Modra <amodra@gmail.com>
18630
18631 PR rtl-optimization/71275
18632 * ira.c (ira): Free dominance info.
18633
18634 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
18635
18636 * doc/sourcebuild.texi: New address for upstream Go repository.
18637
18638 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
18639
18640 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
18641 (TARGET_ARM_V7M): Likewise.
18642
18643 2016-05-26 Jeff Law <law@redhat.com>
18644
18645 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
18646 (thread_across_edge): Remove calls to find_jump_threads_backwards.
18647 * passes.def: Add jump threading passes before DOM/VRP.
18648 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
18649 argument to a basic block from an edge. Remove tests which are
18650 handled elsewhere.
18651 (pass_data_thread_jumps, class pass_thread_jumps): New.
18652 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
18653 (make_pass_thread_jumps): Likewise.
18654 * tree-pass.h (make_pass_thread_jumps): Declare.
18655
18656 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
18657
18658 * config/visium/visium-protos.h (split_double_move): Rename into...
18659 (visium_split_double_move): ...this.
18660 (visium_split_double_add): Declare.
18661 * config/visium/visium.c (split_double_move): Rename into...
18662 (visium_split_double_move): ...this.
18663 (visium_split_double_add): New function.
18664 (visium_expand_copysign): Renumber operands for consistency.
18665 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
18666 (DFmode move splitter): Likewise.
18667 (*addi3_insn): Split by means of visium_split_double_add.
18668 (*adddi3_insn_flags): Delete.
18669 (*plus_plus_sltu<subst_arith>): New insn.
18670 (*subdi3_insn): Split by means of visium_split_double_add.
18671 (subdi3_insn_flags): Delete.
18672 (*minus_minus_sltu<subst_arith>): New insn.
18673 (*negdi2_insn): Split by means of visium_split_double_add.
18674 (*negdi2_insn_flags): Delete.
18675
18676 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
18677
18678 * configure.ac: Treat a --with-headers option without argument
18679 the same as the default (i.e. consult sys-include directory).
18680 * configure: Regenerate.
18681
18682 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18683
18684 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
18685 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
18686 prototype.
18687 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
18688 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
18689
18690 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18691
18692 PR target/63596
18693 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
18694 tree-stdarg analysis results.
18695 (aarch64_setup_incoming_varargs): Likewise.
18696
18697 2016-05-27 Jiong Wang <jiong.wang@arm.com>
18698
18699 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
18700 va_list_gpr_counter_field and va_list_fpr_counter_field.
18701
18702 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
18703
18704 PR67609
18705 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
18706 * config/aarch64/aarch64.c
18707 (aarch64_cannot_change_mode_class): Remove function.
18708 * config/aarch64/aarch64-protos.h
18709 (aarch64_cannot_change_mode_class): Remove.
18710
18711 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
18712
18713 * cfgloop.c (record_niter_bound): Record likely upper bounds.
18714 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
18715 get_likely_max_loop_iterations_int): New.
18716 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
18717 any_likely_upper_bound.
18718 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
18719 Declare.
18720 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
18721 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
18722 upper bound.
18723 (unroll_loop_constant_iterations): Likewise.
18724 (unroll_loop_runtime_iterations): Likewise.
18725 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
18726 * lto-streamer-out.c (output_cfg): Likewise.
18727 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
18728 bounds.
18729 (canonicalize_loop_induction_variables): Dump likely upper bounds.
18730 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
18731 (likely_max_loop_iterations): New.
18732 (likely_max_loop_iterations_int): New.
18733 (likely_max_stmt_executions): New.
18734 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
18735 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
18736 likely_max_stmt_executions): Declare.
18737
18738 2016-05-27 Marek Polacek <polacek@redhat.com>
18739
18740 PR middle-end/71308
18741 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
18742
18743 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18744
18745 * config/s390/s390.md (2x risbg splitters): Use
18746 reg_overlap_mentioned_p instead of rtx_equal_p.
18747
18748 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18749
18750 * combine.c (make_compound_operation): Take known zero bits into
18751 account when checking for possible zero_extend.
18752
18753 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18754
18755 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
18756 Use const_int_operand for operand 2 predicate. Simplify expand code
18757 as a result.
18758
18759 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
18760
18761 PR middle-end/71279
18762 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
18763 into comparison.
18764
18765 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18766
18767 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
18768 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
18769 that returns CC_SESWPmode and CC_ZESWPmode.
18770 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
18771 and CC_SESWPmode.
18772 (aarch64_rtx_costs): Likewise.
18773
18774 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18775
18776 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
18777 for ISA 3.0 min/max support.
18778 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
18779 conditional move support.
18780 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
18781 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
18782 available.
18783 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
18784 conditional moves where the comparison type is different from move
18785 type.
18786 (fp_minmax): New code iterator for smin/smax.
18787 (minmax): New code attributes for min/max.
18788 (SMINMAX): Likewise.
18789 (smax<mode>3): Combine min, max insns into one insn using the
18790 fp_minmax code iterator. Add support for ISA 3.0 min/max
18791 instructions that don't need -ffast-math.
18792 (s<minmax><mode>3): Likewise.
18793 (smax<mode>3_vsx): Likewise.
18794 (smin<mode>3): Likewise.
18795 (s<minmax><mode>3_vsx): Likewise.
18796 (smin<mode>3_vsx): Likewise.
18797 (pre-VSX min/max splitters): Likewise.
18798 (s<minmax><mode>3_fpr): Likewise.
18799 (movsfcc): Rewrite floating point conditional moves to combine
18800 SFmode/DFmode into a single insn.
18801 (mov<mode>cc): Likewise.
18802 (movdfcc): Likewise.
18803 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
18804 SFDF2 iterators to handle all combinations.
18805 (fseldfsf4): Likewise.
18806 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
18807 (fseldfdf4): Likewise.
18808 (fselsfdf4): Likewise.
18809 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
18810 comparison instructions that set a 0/-1 mask, and use it for
18811 floating point conditional move via XXSEL.
18812 (fpmask<mode>): Likewise.
18813 (xxsel<mode>): Likewise.
18814 * config/rs6000/predicates.md (min_max_operator): Delete, no
18815 longer used.
18816 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
18817 instructions that generate a 0/-1 mask for use with XXSEL.
18818 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
18819 say whether floating point min/max is available, either through
18820 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
18821 (TARGET_MINMAX_DF): Likewise.
18822
18823 2016-05-27 Alan Modra <amodra@gmail.com>
18824
18825 PR rtl-optimization/71275
18826 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
18827 for update_equiv_regs and combine_and_move_insns.
18828
18829 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
18830
18831 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
18832 if_then_else or cond RTXes to calculate attribute value.
18833 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
18834 <attr "length_immediate>: Ditto.
18835 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
18836 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
18837 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
18838 <attr "type">: Ditto.
18839 <attr "prefix_data16">: Ditto.
18840 <attr "prefix_extra">: Ditto.
18841 <attr "length_immediate">: Ditto.
18842 <attr "prefix">: Ditto.
18843 (vec_set<mode>_0) <attr "isa">: Ditto.
18844 <attr "prefix_extra">: Ditto.
18845 <attr "length_immediate">: Ditto.
18846 <attr "prefix">: Ditto.
18847 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
18848 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
18849 (sse2_storelpd) <attr "prefix_data16">: Ditto.
18850 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
18851 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
18852 <attr "length_immediate">: Ditto.
18853 <attr "prefix">: Ditto.
18854 (sse2_movsd) <attr "length_immediate">: Ditto.
18855 <attr "prefix">: Ditto.
18856 (vec_concatv2df) <attr "isa">: Ditto.
18857 <attr "prefix">: Ditto.
18858 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
18859 (*vec_extractv2di_1) <attr "isa">: Ditto.
18860 <attr "type">: Ditto.
18861 <attr "length_immediate">: Ditto.
18862 <attr "prefix_rex">: Ditto.
18863 <attr "prefix_extra">: Ditto.
18864 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
18865 <attr "prefix_extra">: Ditto.
18866 <attr "length_immediate">: Ditto.
18867 (vec_concatv2di) <attr "isa">: Ditto.
18868 <attr "prefix_extra">: Ditto.
18869 <attr "length_immediate">: Ditto.
18870 <attr "prefix">: Ditto.
18871
18872 2016-05-26 Martin Liska <mliska@suse.cz>
18873
18874 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
18875 function.
18876 (operator+): Likewise.
18877 (operator-): Likewise.
18878 (comp_cost::operator+=): Likewise.
18879 (comp_cost::operator-=): Likewise.
18880 (comp_cost::operator/=): Likewise.
18881 (comp_cost::operator*=): Likewise.
18882 (operator<): Likewise.
18883 (operator==): Likewise.
18884 (operator<=): Likewise.
18885 (new_cost): Remove.
18886 (infinite_cost_p): Likewise.
18887 (add_costs): Likewise.
18888 (sub_costs): Likewise.
18889 (compare_costs): Likewise.
18890 (set_group_iv_cost): Use the newly introduced functions.
18891 (get_address_cost): Likewise.
18892 (get_shiftadd_cost): Likewise.
18893 (force_expr_to_var_cost): Likewise.
18894 (split_address_cost): Likewise.
18895 (ptr_difference_cost): Likewise.
18896 (difference_cost): Likewise.
18897 (get_computation_cost_at): Likewise.
18898 (determine_group_iv_cost_generic): Likewise.
18899 (determine_group_iv_cost_address): Likewise.
18900 (determine_group_iv_cost_cond): Likewise.
18901 (autoinc_possible_for_pair): Likewise.
18902 (determine_group_iv_costs): Likewise.
18903 (cheaper_cost_pair): Likewise.
18904 (iv_ca_recount_cost): Likewise.
18905 (iv_ca_set_no_cp): Likewise.
18906 (iv_ca_set_cp): Likewise.
18907 (iv_ca_cost): Likewise.
18908 (iv_ca_new): Likewise.
18909 (iv_ca_dump): Likewise.
18910 (iv_ca_narrow): Likewise.
18911 (iv_ca_prune): Likewise.
18912 (iv_ca_replace): Likewise.
18913 (try_add_cand_for): Likewise.
18914 (try_improve_iv_set): Likewise.
18915 (find_optimal_iv_set): Likewise.
18916
18917 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
18918
18919 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
18920 that internal functions will clobber all caller-saved registers.
18921
18922 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18923
18924 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
18925 Return a better case_values_threshold when optimizing.
18926
18927 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18928
18929 * config/aarch64/aarch64-simd.md (aarch64_combinez):
18930 Add ? to integer variant.
18931 (aarch64_combinez_be): Likewise.
18932
18933 2016-05-26 Jakub Jelinek <jakub@redhat.com>
18934
18935 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
18936 instead of x constraint.
18937 (vcvtps2ph256<mask_name>): Likewise.
18938
18939 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
18940 alternative. Formatting fix.
18941
18942 * config/i386/sse.md
18943 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
18944 to ...
18945 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
18946 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
18947 maybe_evex prefix instead of vex.
18948 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
18949 EXT_REX_SSE_REG_P (op0) case in the splitter.
18950
18951 2016-05-25 Jeff Law <law@redhat.com>
18952
18953 PR tree-optimization/71272
18954 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
18955 Update comments. Add test for empty path.
18956
18957 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
18958
18959 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
18960 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
18961 special case builtin.
18962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18963 code for ALTIVEC_BUILTIN_VEC_CMPNE.
18964 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18965 for __builtin_vec_cmpne.
18966
18967 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
18968
18969 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
18970 redundant test and bail out if the type of the new operand is not
18971 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
18972
18973 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18974
18975 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
18976 (x_ix86_target_flags_explicit): Remove.
18977 * config/i386/i386.c (ix86_function_specific_save): Do not copy
18978 x_ix86_target_flags_explicit.
18979 (ix86_function_specific_restore): Ditto.
18980
18981 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18982 H.J. Lu <hongjiu.lu@intel.com>
18983
18984 PR target/70738
18985 * common/config/i386/i386-common.c
18986 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
18987 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
18988 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
18989 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
18990 (-mgeneral-regs-only): Add new option.
18991 * config/i386/i386.c (ix86_option_override_internal): Don't enable
18992 x87 instructions if only general registers are allowed.
18993 (ix86_target_string): Add ix86_flags argument. Handle additional
18994 flags options through ix86_flags argument. Update all callers.
18995 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
18996
18997 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18998
18999 PR rtl-optimization/66940
19000 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
19001 decrementing desired_val will not overflow before performing these
19002 operations.
19003
19004 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
19005
19006 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
19007 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
19008 * config/i386/i386.c (enum ix86_builtins): Add
19009 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
19010 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
19011 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
19012 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
19013 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
19014 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
19015 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
19016 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
19017 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
19018 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
19019 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
19020 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
19021 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
19022 __builtin_ia32_cvtps2dq512_mask.
19023 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
19024 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
19025 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
19026 * config/i386/sse.md
19027 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
19028 Rename to ...
19029 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
19030 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
19031 to ...
19032 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
19033 (avx512f_vec_pack_sfix_v8df): New define_expand.
19034 (avx512f_roundpd512): Rename to ...
19035 (avx512f_round<castmode>512): ... this. Change iterator.
19036 (avx512f_roundps512_sfix): New define_expand.
19037 (round<mode>2_sfix): Change iterator.
19038
19039 2016-05-25 Nick Clifton <nickc@redhat.com>
19040
19041 * config/msp430/msp430.c (msp430_attr): Produce an error if a
19042 static interrupt handler is detected.
19043 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
19044 default linker script.
19045 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
19046 the low part of a symbolic pointer.
19047
19048 2016-05-25 Richard Biener <rguenther@suse.de>
19049
19050 PR tree-optimization/71261
19051 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
19052 interesting stmt instead of immediate uses when looking
19053 for the use operand to replace.
19054
19055 2016-05-25 Martin Liska <mliska@suse.cz>
19056
19057 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
19058
19059 2016-05-25 Richard Biener <rguenther@suse.de>
19060
19061 PR tree-optimization/71264
19062 * tree-vect-stmts.c (vect_init_vector): Properly deal with
19063 vector type val.
19064
19065 2016-05-25 Martin Liska <mliska@suse.cz>
19066
19067 PR tree-optimization/71239
19068 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
19069 if DECL_SIZE is NULL.
19070
19071 2016-05-25 Richard Biener <rguenther@suse.de>
19072
19073 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
19074 * tree-if-conv.c (pass_data_if_conversion): Use it.
19075
19076 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19077
19078 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
19079 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
19080 * varpool.c (varpool_node::get_availability): Likewise.
19081
19082 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19083
19084 * config/rs6000/altivec.md (VNEG iterator): New iterator for
19085 VNEGW/VNEGD instructions.
19086 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
19087 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
19088 support for ISA 3.0 VNEGW/VNEGD instructions.
19089
19090 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
19091
19092 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
19093 pointers inside OACC_DATA regions.
19094 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
19095 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
19096 (gimplify_adjust_omp_clauses): Fix typo in comment.
19097
19098 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19099
19100 * config/rs6000/altivec.md (VParity): New mode iterator for vector
19101 parity built-in functions.
19102 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
19103 zeros.
19104 (p9v_parity<mode>2): Likewise.
19105 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
19106 parity.
19107 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
19108 (parity<mode>2): ISA 3.0 expander for vector parity.
19109 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
19110 power9 built-ins.
19111 (BU_P9_64BIT_MISC_0): Likewise.
19112 (BU_P9_MISC_0): Likewise.
19113 (BU_P9V_AV_1): Likewise.
19114 (BU_P9V_AV_2): Likewise.
19115 (BU_P9V_AV_3): Likewise.
19116 (BU_P9V_AV_P): Likewise.
19117 (BU_P9V_VSX_1): Likewise.
19118 (BU_P9V_OVERLOAD_1): Likewise.
19119 (BU_P9V_OVERLOAD_2): Likewise.
19120 (BU_P9V_OVERLOAD_3): Likewise.
19121 (VCTZB): Add vector count trailing zeros support.
19122 (VCTZH): Likewise.
19123 (VCTZW): Likewise.
19124 (VCTZD): Likewise.
19125 (VPRTYBD): Add vector parity support.
19126 (VPRTYBQ): Likewise.
19127 (VPRTYBW): Likewise.
19128 (VCTZ): Add overloaded vector count trailing zeros support.
19129 (VPRTYB): Add overloaded vector parity support.
19130 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19131 overloaded vector count trailing zeros and parity instructions.
19132 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
19133 vector parity support.
19134 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
19135 trailing zeros support.
19136 (vec_cntlz): Likewise.
19137 (vec_vctzb): Likewise.
19138 (vec_vctzd): Likewise.
19139 (vec_vctzh): Likewise.
19140 (vec_vctzw): Likewise.
19141 (vec_vprtyb): Add ISA 3.0 vector parity support.
19142 (vec_vprtybd): Likewise.
19143 (vec_vprtybw): Likewise.
19144 (vec_vprtybq): Likewise.
19145 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19146 the ISA 3.0 vector count trailing zeros and vector parity built-in
19147 functions.
19148
19149 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19150
19151 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
19152 when there is stmt_to_insert.
19153
19154 2016-05-24 Martin Sebor <msebor@redhat.com>
19155
19156 PR c++/71147
19157 * tree.h (complete_or_array_type_p): New inline function.
19158
19159 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19160
19161 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
19162 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
19163 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
19164
19165 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
19166 Limit 1st alternative to noavx isa, split 2nd alternative into one
19167 noavx and one avx alternative, use *x and Bm in the former and
19168 x and m in the latter.
19169
19170 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
19171 of sse4 for the first alternative, drop %v from the template
19172 and d operand modifier. Split second alternative into one sse4_noavx
19173 and one avx alternative, use *x instead of *v in the former and v
19174 instead of *v in the latter.
19175 (*sse4_1_extractps): Use noavx isa instead of * for the first
19176 alternative, drop %v from the template. Split second alternative into
19177 one noavx and one avx alternative, use *x instead of *v in the
19178 former and v instead of *v in the latter.
19179 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
19180 with noavx and the last one with avx.
19181 (sse4_1_phminposuw): Guard first alternative with noavx isa,
19182 split the second one into one noavx and one avx alternative,
19183 use *x and Bm in the former and x and m in the latter one.
19184 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
19185 alternatives.
19186
19187 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
19188 first two alternatives to noavx, use *x instead of *v in the second
19189 one, add avx alternative without *.
19190 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
19191 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
19192 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
19193
19194 2016-05-24 Jeff Law <law@redhat.com>
19195
19196 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
19197 New function, extracted from...
19198 (fsm_find_control_statement_thread_paths): Here. Use the new function.
19199 Allow simple copies and constant initializations in the SSA chain.
19200
19201 2016-05-24 Marek Polacek <polacek@redhat.com>
19202
19203 PR c/71249
19204 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
19205 scope.
19206
19207 2016-05-24 Jakub Jelinek <jakub@redhat.com>
19208
19209 PR c++/71257
19210 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
19211 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
19212 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
19213 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
19214 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
19215
19216 2016-05-24 Richard Biener <rguenther@suse.de>
19217
19218 PR tree-optimization/71240
19219 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
19220 has integral type.
19221
19222 2016-05-24 Richard Biener <rguenther@suse.de>
19223
19224 PR tree-optimization/71230
19225 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
19226
19227 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19228
19229 * tree-vectorizer.h (vectorizable_comparison): Delete.
19230 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
19231 PURE_SLP_STMT check.
19232 * tree-vect-stmts.c (vectorizable_call): Likewise.
19233 (vectorizable_simd_clone_call): Likewise.
19234 (vectorizable_conversion): Likewise.
19235 (vectorizable_assignment): Likewise.
19236 (vectorizable_shift): Likewise.
19237 (vectorizable_operation): Likewise.
19238 (vectorizable_load): Likewise.
19239 (vectorizable_condition): Likewise.
19240 (vectorizable_store): Likewise. Assert that we don't have
19241 hybrid SLP.
19242 (vectorizable_comparison): Make static. Remove redundant
19243 PURE_SLP_STMT check.
19244 (vect_transform_stmt): Assert that we always have an slp_node
19245 if PURE_SLP_STMT.
19246
19247 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19248
19249 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
19250 operands[2] against 1 with comparison against CONST1_RTX.
19251 (<shift>di3_neon): Likewise.
19252 * config/arm/predicates.md (const0_operand): Replace with comparison
19253 against CONST0_RTX.
19254
19255 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19256
19257 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
19258 operands[2] against 1 with comparison against CONST1_RTX.
19259 (ashrdi3): Likewise.
19260 (lshrdi3): Likewise.
19261 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
19262 UINTVAL.
19263 (ashrsi3): Likewise.
19264 (lshrsi3): Likewise.
19265 (rotrsi3): Likewise.
19266 (define_split above *compareqi_eq0): Likewise.
19267 (define_split above "prologue"): Likewise.
19268 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
19269 * config/arm/predicates.md (shift_operator): Likewise.
19270 (shift_nomul_operator): Likewise.
19271 (sat_shift_operator): Likewise.
19272 (thumb1_cmp_operand): Likewise.
19273 (const_neon_scalar_shift_amount_operand): Replace manual range
19274 check with IN_RANGE.
19275 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
19276 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
19277
19278 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19279
19280 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
19281 with HOST_WIDE_INT_1.
19282 (insv): Likewise.
19283 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
19284 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
19285 (arm_canonicalize_comparison): Likewise.
19286 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
19287 HOST_WIDE_INT_1.
19288 (thumb1_size_rtx_costs): Likewise.
19289 (vfp_const_double_index): Replace cast of 1 to unsigned
19290 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19291 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
19292 HOST_WIDE_INT_1.
19293 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
19294 HOST_WIDE_INT with HOST_WIDE_INT_1U.
19295 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
19296 HOST_WIDE_INT with HOST_WIDE_INT_1.
19297
19298 2016-05-24 Marek Polacek <polacek@redhat.com>
19299
19300 * tree-cfg.h (should_remove_lhs_p): New predicate.
19301 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19302 * gimplify.c (gimplify_modify_expr): Likewise.
19303 * tree-cfg.c (verify_gimple_call): Likewise.
19304 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19305 * gimple-fold.c: Include "tree-cfg.h".
19306 (gimple_fold_call): Use should_remove_lhs_p.
19307
19308 2016-05-24 Richard Biener <rguenther@suse.de>
19309
19310 PR tree-optimization/71253
19311 * cfganal.h (control_dependences): Make robust against edge
19312 and BB removal.
19313 (control_dependences::control_dependences): Remove edge_list argument.
19314 (control_dependences::get_edge): Remove.
19315 (control_dependences::get_edge_src): Add.
19316 (control_dependences::get_edge_dest): Likewise.
19317 (control_dependences::m_el): Make a vector of edge src/dest index.
19318 * cfganal.c (control_dependences::find_control_dependence): Adjust.
19319 (control_dependences::control_dependences): Likewise.
19320 (control_dependences::~control_dependence): Likewise.
19321 (control_dependences::get_edge): Remove.
19322 (control_dependences::get_edge_src): Add.
19323 (control_dependences::get_edge_dest): Likewise.
19324 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
19325 get_edge_src.
19326 (perform_tree_ssa_dce): Adjust.
19327 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
19328 get_edge_src.
19329 (pass_loop_distribution::execute): Adjust. Do loop destroying
19330 conditional on changed.
19331
19332 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19333
19334 PR target/69857
19335 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
19336 return. Reindent transformation comment and mention the ARM state
19337 behavior.
19338
19339 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19340
19341 PR middle-end/71252
19342 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
19343 after build_and_add_sum creates new use stmt.
19344
19345 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19346
19347 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
19348 load_lanes/grouped_load classification comes first. Don't check
19349 whether the vectorization factor is a multiple of the group size
19350 for load_lanes.
19351
19352 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
19353
19354 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
19355 GROUP_GAP for single-element interleaving.
19356 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
19357 variable.
19358
19359 2016-05-24 Richard Biener <rguenther@suse.de>
19360
19361 PR middle-end/70434
19362 PR c/69504
19363 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
19364 bases which are accessed with non-invariant indices.
19365 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
19366 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
19367
19368 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
19369
19370 PR middle-end/71170
19371 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
19372 (add_to_ops_vec): Add stmt_to_insert.
19373 (add_repeat_to_ops_vec): Init stmt_to_insert.
19374 (insert_stmt_before_use): New.
19375 (transform_add_to_multiply): Remove mult_stmt insertion and add it
19376 to ops vector.
19377 (get_ops): Init stmt_to_insert.
19378 (maybe_optimize_range_tests): Likewise.
19379 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
19380 (rewrite_expr_tree_parallel): Likewise.
19381 (reassociate_bb): Likewise.
19382
19383 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19384
19385 PR target/71201
19386 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
19387 ISA 3.0 xxperm fusion alternative.
19388 (altivec_vperm_v8hiv16qi): Likewise.
19389 (altivec_vperm_<mode>_uns_internal): Likewise.
19390 (vperm_v8hiv4si): Likewise.
19391 (vperm_v16qiv8hi): Likewise.
19392
19393 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19394 Kelvin Nilsen <kelvin@gcc.gnu.org>
19395
19396 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
19397 vpermr/xxpermr on ISA 3.0.
19398 (altivec_expand_vec_perm_le): Likewise.
19399 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
19400 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
19401 ISA 3.0.
19402
19403 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
19404
19405 * config/i386/i386.h (IS_STACK_MODE): Enable for
19406 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
19407 SSE_FLOAT_MODE_P macros.
19408 * config/i386/i386.c (ix86_preferred_reload_class): Use
19409 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
19410 Cleanup regclass processing for CONST_DOUBLE_P.
19411 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
19412 (ix86_rtx_costs): Remove redundant TARGET_80387 check
19413 with IS_STACK_MODE macro.
19414 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
19415 with TARGET_SSE2.
19416 (*movdf_internal): Use IS_STACK_MODE macro.
19417 (*movsf_internal): Ditto.
19418
19419 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
19420
19421 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
19422 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
19423
19424 2016-05-23 Jeff Law <law@redhat.com>
19425
19426 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
19427 extracted from ...
19428 (fsm_find_control_statement_thread_paths): Call it.
19429
19430 2016-05-23 Martin Jambor <mjambor@suse.cz>
19431
19432 PR ipa/71234
19433 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
19434 from_global_constant if t is not NULL.
19435
19436 2016-05-23 Marek Polacek <polacek@redhat.com>
19437
19438 PR c/49859
19439 * common.opt (Wswitch-unreachable): New option.
19440 * doc/invoke.texi: Document -Wswitch-unreachable.
19441 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
19442 warning.
19443
19444 2016-05-23 Bin Cheng <bin.cheng@arm.com>
19445
19446 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
19447 TMR_INDEX is non-NULL.
19448
19449 2016-05-23 Richard Biener <rguenther@suse.de>
19450
19451 PR tree-optimization/71230
19452 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
19453 (try_special_add_to_ops): ... here. Always test for single-use.
19454
19455 2016-05-23 Martin Jambor <mjambor@suse.cz>
19456
19457 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
19458 default block if a PHI node in the original one would be resized.
19459
19460 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19461
19462 PR tree-optimization/58135
19463 * tree-vect-slp.c: When group size is not multiple
19464 of vector size, allow splitting of store group at
19465 vector boundary.
19466
19467 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
19468
19469 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
19470
19471 2016-05-22 Jakub Jelinek <jakub@redhat.com>
19472
19473 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19474 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
19475 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
19476 of 64x2.
19477
19478 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
19479 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
19480 v constraint instead of x and vinserti32x4 insn.
19481
19482 * config/i386/sse.md (i128vldq): New mode iterator.
19483 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
19484 avx512dq and avx512vl alternatives.
19485
19486 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
19487 constraint, use maybe_evex prefix instead of vex.
19488 (vec_dupv4sf): Use v constraint instead of x for output
19489 operand except for noavx alternative, use Yv constraint
19490 instead of x for input. Use maybe_evex prefix instead of vex.
19491 (*vec_dupv4si): Likewise.
19492 (*vec_dupv2di): Likewise.
19493
19494 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19495
19496 PR middle-end/40921
19497 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
19498 (linearize_expr_tree): Call try_special_add_to_ops.
19499 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
19500
19501 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19502
19503 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
19504 to computed stack_usage.
19505
19506 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19507
19508 PR target/71103
19509 * config/avr/avr.md (define_expand "mov<mode>"): If the source
19510 operand is subreg (symbol_ref) then move the symbol ref to register.
19511
19512 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
19513
19514 * tree.c (array_at_struct_end_p): Look through MEM_REF.
19515
19516 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
19517
19518 PR middle-end/71179
19519 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
19520 VECTOR type.
19521
19522 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19523
19524 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
19525 ranges by calling get_single_symbol and tidy up. Look more closely
19526 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
19527
19528 2016-05-20 Jeff Law <law@redhat.com>
19529
19530 * bitmap.c (bitmap_find_bit): Remove useless test.
19531
19532 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
19533
19534 * function.c (thread_prologue_and_epilogue_insns): Commit the
19535 insertion of the epilogue.
19536
19537 2016-05-20 Martin Jambor <mjambor@suse.cz>
19538
19539 PR tree-optimization/70884
19540 * tree-sra.c (initialize_constant_pool_replacements): Do not check
19541 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
19542 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
19543 of constant pool data as a reason for scalarization.
19544
19545 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
19546
19547 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
19548 for naked functions.
19549 (thumb1_expand_prologue): Likewise.
19550
19551 2016-05-20 Nathan Sidwell <nathan@acm.org>
19552
19553 * config/nvptx/nptx.c (nvptx_option_override): Only set
19554 flag_toplevel_reorder, if not explicitly specified. Set
19555 flag_no_common, unless explicitly specified.
19556
19557 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19558
19559 * calls.c (can_implement_as_sibling_call_p): Mark param
19560 reg_parm_stack_space with ATTRIBUTE_UNUSED.
19561
19562 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
19563
19564 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
19565 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
19566 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
19567 constants.
19568 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
19569 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
19570 and CASE_CONST_ANY.
19571
19572 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
19573
19574 * config/nvptx/nvptx.md (sincossf3): New pattern.
19575
19576 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19577
19578 * calls.c (maybe_complain_about_tail_call): New function.
19579 (initialize_argument_information): Call
19580 maybe_complain_about_tail_call when clearing *may_tailcall.
19581 (can_implement_as_sibling_call_p): Call
19582 maybe_complain_about_tail_call when returning false.
19583 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
19584 ensure try_tail_call is set. Call maybe_complain_about_tail_call
19585 if tail-call optimization fails.
19586 * cfgexpand.c (expand_call_stmt): Initialize
19587 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
19588 * gimple-pretty-print.c (dump_gimple_call): Dump
19589 gimple_call_must_tail_p.
19590 * gimple.c (gimple_build_call_from_tree): Call
19591 gimple_call_set_must_tail with the value of
19592 CALL_EXPR_MUST_TAIL_CALL.
19593 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
19594 (gimple_call_set_must_tail): New function.
19595 (gimple_call_must_tail_p): New function.
19596 * print-tree.c (print_node): Update printing of TREE_STATIC
19597 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
19598 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
19599 trailing comment listing applicable flags.
19600 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
19601
19602 2016-05-20 David Malcolm <dmalcolm@redhat.com>
19603
19604 * calls.c (expand_call): Move "Rest of purposes for tail call
19605 optimizations to fail" to...
19606 (can_implement_as_sibling_call_p): ...this new function, and
19607 split into multiple "if" statements.
19608
19609 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19610
19611 * cfgloop.h (expected_loop_iterations_unbounded,
19612 expected_loop_iterations): Unconstify.
19613 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
19614 profile with known upper bound; return 3 when profile is absent.
19615 (expected_loop_iterations): Update.
19616
19617 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19618
19619 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
19620 and get_max_loop_iterations_int.
19621
19622 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
19623
19624 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
19625 realistic upper bounds here.
19626
19627 2016-05-20 Jakub Jelinek <jakub@redhat.com>
19628
19629 PR c++/71210
19630 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
19631 calls if the LHS is variable length or has addressable type.
19632 If targets[0]->decl is a noreturn call with void return type and
19633 zero arguments, adjust fntype and remove lhs in that case.
19634
19635 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
19636
19637 PR tree-optimization/71079
19638 PR tree-optimization/71206
19639 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
19640
19641 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19642
19643 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
19644 (get_vec_alignment_for_array_decl): Likewise.
19645 (get_vec_alignment_for_record_decl): Likewise.
19646 (increase_alignment::execute): Move code to find alignment to
19647 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
19648 (type_align_map): New hash_map.
19649
19650 2016-05-20 Richard Guenther <rguenther@suse.de>
19651
19652 PR tree-optimization/29756
19653 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
19654 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
19655 * fold-const.c (operand_equal_p): Likewise.
19656 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
19657 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
19658 * tree-inline.c (estimate_operator_cost): Likewise.
19659 * tree-pretty-print.c (dump_generic_node): Likewise.
19660 * tree-ssa-operands.c (get_expr_operands): Likewise.
19661 * cfgexpand.c (expand_debug_expr): Likewise.
19662 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19663 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
19664 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
19665 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
19666 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
19667 (execute_update_addresses_taken): Do it.
19668
19669 2016-05-20 Richard Biener <rguenther@suse.de>
19670
19671 PR tree-optimization/71185
19672 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
19673 register operations.
19674
19675 2016-05-20 Richard Biener <rguenther@suse.de>
19676
19677 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
19678 gimple_seq_add_seq_without_update.
19679 (release_bb_predicate): Assert we have no operands to free.
19680 (if_convertible_loop_p_1): Calculate post dominators later.
19681 Do not free BB predicates here.
19682 (combine_blocks): Do not recompute BB predicates.
19683 (version_loop_for_if_conversion): Save BB predicates around
19684 loop versioning.
19685
19686 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19687
19688 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
19689 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
19690 code. Ignore sibcalls on EDGE_IGNORE edges.
19691 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
19692 on edges for sibcalls that run without prologue. The rest of the
19693 function is combined from...
19694 (fix_fake_fallthrough_edge): ... this, and ...
19695 (try_shrink_wrapping): ... a part of this. Remove the bb_with
19696 function argument, make it a local variable.
19697
19698 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
19699
19700 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
19701 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
19702 for 32-bit mode and SEH for 64-bit.
19703 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
19704 TARGET_64BIT_DEFAULT.
19705
19706 2016-05-19 Ryan Burn <contact@rnburn.com>
19707
19708 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
19709 * gengtype.c (open_base_files): Add cilk.h to ifiles.
19710
19711 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
19712
19713 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
19714 force pending loads from memory.
19715
19716 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
19717
19718 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
19719 (UNSPEC_DARN_32): New unspec constant.
19720 (UNSPEC_DARN_RAW): New unspec constant.
19721 (darn_32): New instruction.
19722 (darn_raw): New instruction.
19723 (darn): New instruction.
19724 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
19725 support and documentation for this macro.
19726 (BU_P9_MISC_1): New macro definition.
19727 (BU_P9_64BIT_MISC_0): New macro definition.
19728 (BU_P9_MISC_0): New macro definition.
19729 (darn_32): New builtin definition.
19730 (darn_raw): New builtin definition.
19731 (darn): New builtin definition.
19732 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
19733 RS6000_BUILTIN_0 directives to surround each occurrence of
19734 #include "rs6000-builtin.def".
19735 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
19736 RS6000_BTM_64BIT flags to the returned mask, depending on
19737 configuration.
19738 (def_builtin): Correct an error in the assignments made to the
19739 debugging variable attr_string.
19740 (rs6000_expand_builtin): Add support for no-operand built-in
19741 functions.
19742 (builtin_function_type): Remove fatal_error assertion that is no
19743 longer valid.
19744 (rs6000_common_init_builtins): Add support for no-operand built-in
19745 functions.
19746 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
19747 definition.
19748 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
19749 definition.
19750 (RS6000_BTM_64BIT): New macro definition.
19751 * doc/extend.texi: Document __builtin_darn (void),
19752 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
19753 functions.
19754
19755 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
19756
19757 * tree-vect-loop.c (vect_analyze_loop_2): Use also
19758 max_loop_iterations_int.
19759
19760 2016-05-19 Marek Polacek <polacek@redhat.com>
19761
19762 PR tree-optimization/71031
19763 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
19764 condition and adjust the code a bit.
19765
19766 2016-05-19 Martin Liska <mliska@suse.cz>
19767
19768 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
19769 auto_vec instead of vec.
19770
19771 2016-05-19 Martin Liska <mliska@suse.cz>
19772
19773 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
19774
19775 2016-05-19 Martin Liska <mliska@suse.cz>
19776
19777 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
19778
19779 2016-05-19 Martin Liska <mliska@suse.cz>
19780
19781 * ipa-pure-const.c (set_function_state): Remove an existing
19782 funct_state.
19783 (remove_node_data): Do not free it as it's released
19784 in set_function_state.
19785
19786 2016-05-19 Martin Liska <mliska@suse.cz>
19787
19788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
19789 bitmap.
19790
19791 2016-05-19 Martin Liska <mliska@suse.cz>
19792
19793 * omp-simd-clone.c (simd_clone_adjust): Release vector.
19794
19795 2016-05-19 Martin Liska <mliska@suse.cz>
19796
19797 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
19798 an auto_vec instead of re-creating it.
19799
19800 2016-05-19 Martin Liska <mliska@suse.cz>
19801
19802 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
19803 auto_vec instead of vec.
19804
19805 2016-05-19 Martin Liska <mliska@suse.cz>
19806
19807 * lto-section-in.c (lto_get_section_data): Call
19808 lto_check_version with additional argument.
19809 * lto-streamer.c (lto_check_version): Add new argument.
19810 * lto-streamer.h (lto_check_version): Likewise.
19811
19812 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19813
19814 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
19815 Don't add cost of inner memory when handling sign-extended loads.
19816
19817 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
19818
19819 PR rtl-optimization/71148
19820 * cse.c (cse_main): Free dominance info.
19821 (rest_of_handle_cse): Don't free dominance info.
19822 (rest_of_handle_cse2): Likewise.
19823 (rest_of_handle_cse_after_global_opts): Likewise.
19824
19825 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19826
19827 PR target/71056
19828 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
19829 NULL_TREE early if NEON is not available. Remove now redundant check
19830 in ARM_CHECK_BUILTIN_MODE.
19831
19832 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
19833
19834 PR sanitizer/64354
19835 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
19836 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
19837 * doc/cpp.texi: Document new macros.
19838
19839 2016-05-19 Bin Cheng <bin.cheng@arm.com>
19840
19841 PR tree-optimization/69848
19842 * tree-vect-loop.c (vectorizable_reduction): Don't factor
19843 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
19844
19845 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
19846
19847 * function.c (thread_prologue_and_epilogue_insn): Move the
19848 "goto epilogue_done" one block later.
19849
19850 2016-05-19 Richard Biener <rguenther@suse.de>
19851
19852 PR tree-optimization/70729
19853 * passes.def: Move LIM pass before PRE. Remove no longer
19854 required copyprop and move first DCE out of the loop pipeline.
19855
19856 2016-05-18 David Malcolm <dmalcolm@redhat.com>
19857
19858 PR driver/69265
19859 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
19860 (OBJS-libcommon-target): ...here.
19861 * opts-common.c: Include spellcheck.h.
19862 (cmdline_handle_error): Build a vec of valid options and use it
19863 to suggest provide hints for misspelled arguments.
19864
19865 2016-05-18 Jakub Jelinek <jakub@redhat.com>
19866
19867 PR c++/71100
19868 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
19869 lhs if it has TREE_ADDRESSABLE type.
19870
19871 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
19872
19873 PR target/71145
19874 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
19875 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
19876
19877 2016-05-18 Martin Jambor <mjambor@suse.cz>
19878
19879 PR ipa/69708
19880 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
19881 input for NOP_EXPR pass-through functions.
19882 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
19883 aggregate global constant VAR_DECLs in constant jump functions.
19884
19885 2016-05-18 Martin Jambor <mjambor@suse.cz>
19886
19887 PR ipa/69708
19888 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
19889 from TREE_READONLY parameters.
19890
19891 2016-05-18 Martin Jambor <mjambor@suse.cz>
19892
19893 PR ipa/69708
19894 * cgraph.h (cgraph_indirect_call_info): New field
19895 guaranteed_unmodified.
19896 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
19897 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19898 appropriate.
19899 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
19900 pass the parameter value to ipa_find_agg_cst_for_param.
19901 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
19902 guaranteed_unmodified, store AA results there instead of bailing out
19903 if present.
19904 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
19905 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
19906 (find_constructor_constant_at_offset): New function.
19907 (ipa_find_agg_cst_from_init): Likewise.
19908 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
19909 static initializers of contants, report back through a new paameter
19910 from_global_constant if that was the case.
19911 (try_make_edge_direct_simple_call): Also pass parameter value to
19912 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19913 appropriate.
19914 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
19915 (ipa_read_indirect_edge_info): Likewise.
19916 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
19917 (ipa_load_from_parm_agg): Likewise.
19918
19919 2016-05-18 Jiong Wang <jiong.wang@arm.com>
19920
19921 PR rtl-optimization/71150
19922 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
19923 check.
19924
19925 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19926
19927 PR target/70915
19928 * config/rs6000/constraints.md (wE constraint): New constraint
19929 for a vector constant that can be loaded with XXSPLTIB.
19930 (wM constraint): New constraint for a vector constant of a 1's.
19931 (wS constraint): New constraint for a vector constant that can be
19932 loaded with XXSPLTIB and a vector sign extend instruction.
19933 * config/rs6000/predicates.md (xxspltib_constant_split): New
19934 predicates for wE/wS constraints.
19935 (xxspltib_constant_nosplit): Likewise.
19936 (easy_vector_constant): Add support for constants that can be
19937 loaded via XXSPLTIB.
19938 (all_ones_constant): New predicate for vector constant with all
19939 1's set.
19940 (splat_input_operand): Add support for ISA 3.0 word splat operations.
19941 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
19942 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
19943 instruction and possibly with a sign extension.
19944 (output_vec_const_move): Add support for XXSPLTIB. If we are
19945 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
19946 instead of XXLXOR/XXLORC.
19947 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
19948 operations.
19949 (rs6000_legitimize_reload_address): Likewise.
19950 (rs6000_output_move_128bit): Use output_vec_const_move to emit
19951 constants.
19952 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
19953 combine VSX_M and VSX_M2 into one iterator.
19954 (VSX_M2): Likewise.
19955 (VSINT_84): New iterators for loading constants with XXSPLTIB.
19956 (VSINT_842): Likewise.
19957 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
19958 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
19959 XXSPLTIB instruction.
19960 (xxspltib_<mode>_nosplit): Likewise.
19961 (xxspltib_<mode>_split): New insn to load up constants with
19962 XXSPLTIB and a sign extend instruction.
19963 (vsx_mov<mode>): Replace single move that handled all vector types
19964 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
19965 moves (when -mvsx-timode is in effect) into the main vector
19966 moves. Eliminate separate moves for <VSr> <VSa>, where the
19967 preferred register class (<VSr>) is listed first, and the
19968 secondary register class (<VSa>) is listed second with a '?' to
19969 discourage use. Prefer loading 0/-1 in any VSX register for ISA
19970 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
19971 that if the register was involved in a slow operation, the
19972 clear/set operation does not wait for the slow operation to
19973 finish. Adjust the length attributes for 32-bit mode. Use
19974 rs6000_output_move_128bit and drop the use of the string
19975 instructions for 32-bit movti when -mvsx-timode is in effect. Use
19976 spacing so that the alternatives and attributes don't generate
19977 long lines, and put things in columns, so that it is easier to
19978 match up the operands and attributes with the insn alternatives.
19979 (vsx_mov<mode>_64bit): Likewise.
19980 (vsx_mov<mode>_32bit): Likewise.
19981 (vsx_movti_64bit): Fold movti into normal vector moves.
19982 (vsx_movti_32bit): Likewise.
19983 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
19984 splat instructions.
19985 (vsx_splat_v4si_internal): Likewise.
19986 (vsx_splat_v4sf_internal): Likewise.
19987 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
19988 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
19989 extend vector elements.
19990 (vsx_sign_extend_hi_<mode>): Likewise.
19991 (vsx_sign_extend_si_v2di): Likewise.
19992 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
19993 declaration.
19994 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
19995 constraints. Add trailing period to wL documentation.
19996
19997 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
19998
19999 PR middle-end/71020
20000 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
20001 * tree-dfa.c (replace_abnormal_ssa_names): New function.
20002 * tree-call-cdce.c: Include tree-dfa.h.
20003 (can_guard_call_p): New function, extracted from...
20004 (can_use_internal_fn): ...here.
20005 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
20006 and return void.
20007 (shrink_wrap_one_built_in_call): Likewise.
20008 (use_internal_fn): Likewise.
20009 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
20010 and return void. Call replace_abnormal_ssa_names.
20011 (pass_call_cdce::execute): Check can_guard_call_p during the
20012 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
20013 will always change something.
20014
20015 2016-05-18 Martin Jambor <mjambor@suse.cz>
20016
20017 PR ipa/70646
20018 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
20019 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
20020
20021 2016-05-18 Martin Jambor <mjambor@suse.cz>
20022
20023 PR ipa/70646
20024 * ipa-inline.h (condition): New field size.
20025 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
20026 for comaprison and store it into the new condition.
20027 (evaluate_conditions_for_known_args): Use condition size to check
20028 access sizes for all but CHANGED conditions.
20029 (unmodified_parm_1): New parameter size_p, store access size into it.
20030 (unmodified_parm): Likewise.
20031 (unmodified_parm_or_parm_agg_item): Likewise.
20032 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
20033 (set_cond_stmt_execution_predicate): Extract access sizes and store
20034 them to conditions.
20035 (set_switch_stmt_execution_predicate): Likewise.
20036 (will_be_nonconstant_expr_predicate): Likewise.
20037 (will_be_nonconstant_predicate): Likewise.
20038 (inline_read_section): Stream condition size.
20039 (inline_write_summary): Likewise.
20040
20041 2016-05-18 Richard Biener <rguenther@suse.de>
20042
20043 * tree-ssa-loop-im.c (determine_max_movement): Properly add
20044 condition cost to PHI cost instead of total_cost.
20045
20046 2016-05-18 Martin Liska <mliska@suse.cz>
20047
20048 PR fortran/70856
20049 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
20050 merged variables.
20051
20052 2016-05-18 Richard Biener <rguenther@suse.de>
20053
20054 * lto-streamer.h (LTO_major_version): Bump to 6.
20055
20056 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20057
20058 * function.c (make_split_prologue_seq, make_prologue_seq,
20059 make_epilogue_seq): New functions, factored out from...
20060 (thread_prologue_and_epilogue_insns): Here.
20061
20062 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20063
20064 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
20065 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
20066 of before. Add a comment.
20067
20068 2016-05-18 Bin Cheng <bin.cheng@arm.com>
20069
20070 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
20071 expression pointer, not pointer to the pointer.
20072
20073 2016-05-18 Jakub Jelinek <jakub@redhat.com>
20074
20075 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
20076 (avx2_pbroadcast<mode>): Add another alternative with v instead
20077 of x constraints in it, using <pbroadcast_evex_isa> isa.
20078 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
20079
20080 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
20081 constraint x instead of v in second alternative, add avx512bw
20082 alternative.
20083
20084 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
20085 constraint x instead of v in second alternative, add avx512bw
20086 alternative.
20087
20088 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
20089 constraint x instead of v in second alternative, add avx512bw
20090 alternative.
20091
20092 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
20093 avx512bw alternative.
20094
20095 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20096
20097 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
20098 array to 128 chars.
20099 (define_insn "*andnottf3"): Ditto.
20100 (define_insn "*<code><mode>3"/any_logic): Ditto.
20101 (define_insn "*<code>tf3"/any_logic): Ditto.
20102 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
20103 operand to block AVX-512VL insn variant emit when it is not enabled.
20104
20105 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
20106
20107 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
20108 constraint fot SF mode.
20109
20110 2016-05-18 Petr Murzin <petr.murzin@intel.com>
20111 Kirill Yukhin <kirill.yukhin@intel.com>
20112
20113 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
20114 modifiers.
20115 (define_insn "rsqrt14<mode>"): Ditto.
20116 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
20117 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
20118 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
20119 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
20120 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
20121 Ditto.
20122 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
20123 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
20124 * config/i386/i386.c (ix86_print_operand): Expand check for size
20125 override codes for Intel syntax.
20126
20127 2016-05-18 Richard Biener <rguenther@suse.de>
20128
20129 PR tree-optimization/71168
20130 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
20131 initialization earlier.
20132
20133 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
20134
20135 * config/aarch64/aarch64-simd.md
20136 (aarch64_reduc_plus_internal<mode>): Rename to...
20137 (reduc_plus_scal): ...This, and remove previous implementation.
20138
20139 2016-05-18 Richard Biener <rguenther@suse.de>
20140
20141 * passes.def: Put late dse and cd_dce in canonical order.
20142
20143 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
20144
20145 * ipa-inline-transform.c (preserve_function_body_p): Look for
20146 first non-thunk clone.
20147 (save_function_body): Save into first non-thunk.
20148 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
20149 up call stmt id.
20150 (lto_output_node): Inline thunks don't need body in every
20151 partition.
20152 * lto-streamer-in.c: Do not fixup thunk clones.
20153 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
20154 thunks.
20155 * tree-inline.c (copy_bb): Be prepared for target node to be new after
20156 folding suceeds.
20157
20158 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20159
20160 PR middle-end/63586
20161 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
20162 (reassociate_bb): Call transform_add_to_multiply.
20163
20164 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20165
20166 * config/aarch64/aarch64.c (all_extensions): Removed unused
20167 static variable.
20168
20169 2016-05-17 Nathan Sidwell <nathan@acm.org>
20170
20171 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
20172 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
20173
20174 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
20175
20176 PR tree-optimization/54579
20177 PR middle-end/55299
20178 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
20179
20180 2016-05-17 Marek Polacek <polacek@redhat.com>
20181
20182 PR ipa/71146
20183 * tree-inline.c (expand_call_inline): Call
20184 maybe_remove_unused_call_args.
20185
20186 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
20187
20188 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
20189 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
20190 * doc/md.texi (fmin@var{m}3): Likewise.
20191
20192 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20193
20194 * match.pd (X & C): New transformation.
20195
20196 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20197
20198 * match.pd (~X & Y): New transformation.
20199
20200 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
20201
20202 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
20203 information for new SSA_NAME.
20204 (simplify_conversion_using_ranges): Get range through get_range_info
20205 instead of get_value_range.
20206
20207 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20208
20209 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
20210 Remove inline assembly.
20211 (vmvn_s16): Likewise.
20212 (vmvn_s32): Likewise.
20213 (vmvn_u8): Likewise.
20214 (vmvn_u16): Likewise.
20215 (vmvn_u32): Likewise.
20216 (vmvnq_s8): Likewise.
20217 (vmvnq_s16): Likewise.
20218 (vmvnq_s32): Likewise.
20219 (vmvnq_u8): Likewise.
20220 (vmvnq_u16): Likewise.
20221 (vmvnq_u32): Likewise.
20222 (vmvn_p8): Likewise.
20223 (vmvnq_p16): Likewise.
20224
20225 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20226
20227 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
20228 Use builtin.
20229 (vmul_n_s16): Likewise.
20230 (vmul_n_s32): Likewise.
20231 (vmul_n_u16): Likewise.
20232 (vmul_n_u32): Likewise.
20233 (vmulq_n_f32): Likewise.
20234 (vmulq_n_f64): Likewise.
20235 (vmulq_n_s16): Likewise.
20236 (vmulq_n_s32): Likewise.
20237 (vmulq_n_u16): Likewise.
20238 (vmulq_n_u32): Likewise.
20239
20240 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20241
20242 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
20243 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
20244
20245 2016-05-17 Jiong Wang <jiong.wang@arm.com>
20246
20247 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
20248 to *aarch64_fma4_elt_from_dup<mode>.
20249 (*aarch64_fnma4_elt_to_128df): Rename to
20250 *aarch64_fnma4_elt_from_dup<mode>.
20251 * config/aarch64/arm_neon.h (vfma_n_f64): New.
20252 (vfms_n_f32): Likewise.
20253 (vfms_n_f64): Likewise.
20254 (vfmsq_n_f32): Likewise.
20255 (vfmsq_n_f64): Likewise.
20256
20257 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
20258
20259 * wide-int.h: Change fixed_wide_int_storage from class to struct.
20260
20261 2016-05-17 Richard Biener <rguenther@suse.de>
20262
20263 PR tree-optimization/71132
20264 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
20265 Only add control dependences for blocks in the loop.
20266 (build_rdg): Adjust.
20267 (generate_code_for_partition): Return whether loop should
20268 be destroyed and delay that.
20269 (distribute_loop): Likewise.
20270 (pass_loop_distribution::execute): Record loops to be destroyed
20271 and perform delayed destroying of loops.
20272
20273 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20274
20275 PR target/70809
20276 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
20277
20278 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20279
20280 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
20281
20282 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
20283
20284 PR target/71114
20285 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
20286 insertion point for instructions generated by validize_mem.
20287
20288 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20289
20290 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
20291 in brackets.
20292
20293 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
20294
20295 * config/aarch64/aarch64.c
20296 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
20297 rather than a macro.
20298
20299 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20300
20301 * doc/invoke.texi (AArch64 Options): Various updates.
20302
20303 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20304
20305 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
20306 into instrumentation thunks.
20307 * cif-code.def (CIF_CHKP): New.
20308
20309 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
20310
20311 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
20312
20313 2016-05-16 Martin Jambor <mjambor@suse.cz>
20314
20315 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
20316 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
20317
20318 2016-05-16 Marek Polacek <polacek@redhat.com>
20319
20320 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
20321 commentary.
20322
20323 2016-05-16 Martin Jambor <mjambor@suse.cz>
20324
20325 PR hsa/70857
20326 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
20327 the outlined kernel function.
20328
20329 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
20330
20331 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
20332 (ISA_HAS_DLSA): Ditto.
20333
20334 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20335
20336 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
20337
20338 2016-05-16 Nathan Sidwell <nathan@acm.org>
20339
20340 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
20341 (nvptx_name_replacement): Restore. Add comment.
20342 (write_fn_proto, write_fn_proto_from_insn,
20343 nvptx_output_call_insn): Restore
20344 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
20345
20346 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20347
20348 * config/aarch64/aarch64.md
20349 (add<mode>3_compareC_cconly_imm): Remove use of %w.
20350 (add<mode>3_compareC_imm): Likewise.
20351 (<optab>si3_uxtw): Split into register and immediate variants.
20352 (andsi3_compare0_uxtw): Likewise.
20353 (and<mode>3_compare0): Likewise.
20354 (and<mode>3nr_compare0): Likewise.
20355 (stack_protect_test_<mode>): Don't use %x for memory operands.
20356
20357 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
20358
20359 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
20360
20361 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
20362
20363 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20364 Split integer shifts into shift_reg and bfm.
20365 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20366 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20367 (ror<mode>3_insn): Likewise.
20368 (<optab>si3_insn_uxtw): Likewise.
20369 (<optab><mode>3_insn): Change to rotate_imm.
20370 (extr<mode>5_insn_alt): Likewise.
20371 (extrsi5_insn_uxtw): Likewise.
20372 (extrsi5_insn_uxtw_alt): Likewise.
20373
20374 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20375
20376 * doc/tm.texi: Regenerate.
20377 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
20378 (TARGET_INVALID_RETURN_TYPE): Remove.
20379 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
20380 TARGET_INVALID_RETURN_TYPE.
20381 * target.def (invalid_parameter_type): Remove.
20382 (invalid_return_type): Remove.
20383
20384 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20385
20386 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
20387 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
20388 calls from thunk.
20389 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
20390 gimple body.
20391 (preserve_function_body_p): No need to preserve function body
20392 * cif-codes.def (CIF_THUNK): Remove.
20393 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
20394
20395 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20396
20397 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
20398
20399 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20400
20401 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
20402 for thunks.
20403
20404 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20405
20406 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
20407 (inline_small_functions): Do not look for function symbol when
20408 resetting caches.
20409
20410 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
20411
20412 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
20413 of inline thunks
20414
20415 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20417 Jiong Wang <jiong.wang@arm.com>
20418
20419 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
20420 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
20421 Define __ARM_FP16_ARGS when appropriate.
20422 * config/arm/arm.c (arm_invalid_parameter_type): Remove
20423 declaration.
20424 (arm_invalid_return_type): Likewise.
20425 (TARGET_INVALID_PARAMETER_TYPE): Remove.
20426 (TARGET_INVALID_RETURN_TYPE): Remove.
20427 (aapcs_vfp_sub_candidate): Allow HFmode.
20428 (aapcs_vfp_allocate): Add comment. Support HFmode.
20429 (aapcs_vfp_allocate_return_reg): Likewise.
20430 (struct aapcs_cp_arg_layout): Slightly reword comments for
20431 is_return_candidate and allocate_return_reg.
20432 (output_mov_vfp): Update assert.
20433 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
20434 condition.
20435 (arm_invalid_parameter_type): Remove.
20436 (amr_invalid_return_type): Remove.
20437 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
20438 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
20439 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
20440
20441 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
20442
20443 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
20444 * config/aarch64/arch64-protos.h
20445 (aarch64_legitimize_reload_address): Remove.
20446 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
20447 Remove.
20448
20449 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
20450
20451 * configure.ac: Add ACX_NONCANONICAL_HOST.
20452 * configure: Regenerate.
20453 * Makefile.in: Set host_noncanonical.
20454
20455 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
20456
20457 PR target/71097
20458 * config/i386/i386.md (*movtf_internal): Before register allocation,
20459 do not allow FP constants for CM_MEDIUM memory model, allow only
20460 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
20461 (*movxf_internal): Ditto.
20462 (*movdf_internal): Ditto.
20463 (*movsf_internal): Ditto.
20464
20465 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
20466
20467 PR rtl-optimization/67483
20468 * combine.c (make_compound_operation): Don't call extract_left_shift
20469 with negative shift amounts.
20470
20471 2016-05-13 Jakub Jelinek <jakub@redhat.com>
20472
20473 PR bootstrap/71071
20474 * fold-const.c (fold_checksum_tree): Allow modification
20475 of TYPE_ALIAS_SET during folding.
20476
20477 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
20478 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
20479 (ix86_split_to_parts): Likewise. Fix up formatting.
20480
20481 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
20482
20483 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
20484 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
20485 printf format.
20486
20487 2016-05-13 Nathan Sidwell <nathan@acm.org>
20488
20489 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
20490 (nvptx_name_replacement): Delete.
20491 (write_fn_proto, write_fn_proto_from_insn,
20492 nvptx_output_call_insn): Remove nvptx_name_replacement call.
20493 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
20494 * langhooks.c (add_builtin_funcction_common): Call
20495 targetm.mangle_decl_assembler_name.
20496
20497 * config/nvptx/nvptx.c (write_fn_proto): Handle
20498 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
20499
20500 2016-05-13 Martin Liska <mliska@suse.cz>
20501
20502 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
20503 and PRIu64 in printf format.
20504
20505 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20506
20507 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
20508 comment.
20509
20510 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20511
20512 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
20513 Change --param max-completely-peeled-times to
20514 --param max-completely-peel-times in dump file printing.
20515
20516 2016-05-13 Richard Biener <rguenther@suse.de>
20517
20518 PR tree-optimization/42587
20519 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
20520 (find_bswap_or_nop_1): Likewise.
20521 (bswap_replace): Likewise.
20522
20523 2016-05-13 Martin Liska <mliska@suse.cz>
20524
20525 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
20526 Initialize a variable with default value.
20527
20528 2016-05-13 Martin Liska <mliska@suse.cz>
20529
20530 * doc/invoke.texi: Enhance explanation of error recovery
20531 of sanitizers.
20532
20533 2016-05-13 Martin Liska <mliska@suse.cz>
20534
20535 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
20536 (struct cost_pair): Change inv_expr_id (int) to inv_expr
20537 (iv_inv_expr_ent *).
20538 (struct iv_inv_expr_ent): Comment struct fields.
20539 (sort_iv_inv_expr_ent): New function.
20540 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
20541 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
20542 a hash_map between iv_inv_expr_ent and number of usages.
20543 (niter_for_exit): Fix coding style.
20544 (tree_ssa_iv_optimize_init): Use renamed variable.
20545 (determine_base_object): Fix coding style.
20546 (alloc_iv): Likewise.
20547 (find_interesting_uses_outside): Likewise.
20548 (add_candidate_1): Likewise.
20549 (add_standard_iv_candidates): Likewise.
20550 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
20551 (prepare_decl_rtl): Fix coding style.
20552 (get_address_cost): Likewise.
20553 (get_shiftadd_cost): Likewise.
20554 (force_expr_to_var_cost): Likewise.
20555 (compare_aff_trees): Likewise.
20556 (get_expr_id): Restructure the function.
20557 (get_loop_invariant_expr_id): Renamed to
20558 get_loop_invariant_expr.
20559 (get_computation_cost_at): Replace usage of inv_expr_id with
20560 inv_expr.
20561 (get_computation_cost): Likewise.
20562 (determine_group_iv_cost_generic): Likewise.
20563 (determine_group_iv_cost_address): Likewise.
20564 (iv_period): Fix coding style.
20565 (iv_elimination_compare_lt): Likewise.
20566 (may_eliminate_iv): Likewise.
20567 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
20568 inv_expr.
20569 (determine_group_iv_costs): Dump invariant expressions.
20570 (iv_ca_recount_cost): Use the newly added hash_map.
20571 (iv_ca_set_remove_invariants): Fix coding style.
20572 (iv_ca_set_add_invariants): Fix coding style.
20573 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
20574 invariants.
20575 (iv_ca_set_cp): Likewise.
20576 (iv_ca_new): Initialize the newly added hash_map and remove
20577 initialization of fields.
20578 (iv_ca_free): Delete the hash_map.
20579 (iv_ca_dump): Dump invariant expressions.
20580 (iv_ca_extend): Fix coding style.
20581 (try_add_cand_for): Likewise.
20582 (create_new_ivs): Dump information about # of avg iterations and
20583 # of used invariant expressions.
20584 (rewrite_use_compare): Fix coding style.
20585 (free_loop_data): Set default value for max_inv_expr_id.
20586
20587 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
20588
20589 * cse.c (rest_of_handle_cse): Use cleanup_cfg
20590 returned value cse_cfg_altered computation.
20591 (rest_of_handle_cse2): Likewise.
20592 (rest_of_handle_cse_after_global_opts): Likewise.
20593
20594 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20595
20596 PR target/53440
20597 * config/arm/arm.c (arm32_output_mi_thunk): New.
20598 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
20599 to split Thumb1 vs TARGET_32BIT functionality.
20600 (arm_thumb1_mi_thunk): New.
20601
20602 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20603
20604 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
20605 to true.
20606
20607 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20608
20609 PR target/71080
20610 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
20611
20612 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
20613
20614 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
20615 (expand_builtin_trap): Emit a regular call.
20616 (set_builtin_user_assembler_name): Remove obsolete cases.
20617 * dse.c (scan_insn): Adjust.
20618 * except.c: Include calls.h.
20619 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
20620 emit a regular call to setjmp.
20621 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
20622 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
20623 (emit_block_move_via_libcall): Delete.
20624 (block_move_fn): Delete.
20625 (init_block_move_fn): Likewise.
20626 (emit_block_move_libcall_fn): Likewise.
20627 (emit_block_op_via_libcall): New function.
20628 (set_storage_via_libcall): Tidy up and use memset builtin.
20629 (block_clear_fn): Delete.
20630 (init_block_clear_fn): Likewise.
20631 (clear_storage_libcall_fn): Likewise.
20632 (expand_assignment): Call emit_block_move_via_libcall.
20633 Do not include gt-expr.h.
20634 * expr.h (emit_block_op_via_libcall): Declare.
20635 (emit_block_copy_via_libcall): New inline function.
20636 (emit_block_move_via_libcall): Likewise.
20637 (emit_block_comp_via_libcall): Likewise.
20638 (block_clear_fn): Delete.
20639 (init_block_move_fn): Likewise.
20640 (init_block_clear_fn): Likewise.
20641 (emit_block_move_via_libcall): Likewise.
20642 (set_storage_via_libcall): Add default parameter value.
20643 * libfuncs.h (enum libfunc_index): Remove obsolete values.
20644 (abort_libfunc): Delete.
20645 (memcpy_libfunc): Likewise.
20646 (memmove_libfunc): Likewise.
20647 (memcmp_libfunc): Likewise.
20648 (memset_libfunc): Likewise.
20649 (setbits_libfunc): Likewise.
20650 (setjmp_libfunc): Likewise.
20651 (longjmp_libfunc): Likewise.
20652 (profile_function_entry_libfunc): Likewise.
20653 (profile_function_exit_libfunc): Likewise.
20654 (gcov_flush_libfunc): Likewise.
20655 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
20656 and DECL_VISIBILITY on the declaration.
20657 (init_optabs): Do not initialize obsolete libfuncs.
20658 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
20659 * tree-core.h (ECF_RET1): Define.
20660 (ECF_TM_PURE): Adjust.
20661 (ECF_TM_BUILTIN): Likewise.
20662 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
20663 (build_common_builtin_nodes): Initialize abort builtin.
20664 Add ECF_RET1 on memcpy, memmove and memset builtins.
20665 Pass final flags for alloca and alloca_with_align builtins.
20666 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
20667 obsolete builtins.
20668 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
20669 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
20670 set_storage_via_libcall and call emit_block_copy_via_libcall.
20671
20672 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
20673
20674 * config/i386/i386.md (*call_got_x32): Change operand 0 to
20675 DImode before it is passed to ix86_output_call_operand.
20676 (*call_value_got_x32): Ditto for operand 1.
20677
20678 2016-05-12 Jiong Wang <jiong.wang@arm.com>
20679
20680 PR rtl-optimization/70904
20681 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
20682 reload for wide mode.
20683
20684 2016-05-12 Marek Polacek <polacek@redhat.com>
20685
20686 PR c/70756
20687 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
20688 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
20689 * langhooks.h (incomplete_type_error): Likewise.
20690 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
20691 parameter, pass it down to incomplete_type_error.
20692 * tree.h (size_in_bytes): New inline overload.
20693 (size_in_bytes_loc): Renamed from size_in_bytes.
20694
20695 2016-05-12 Richard Biener <rguenther@suse.de>
20696
20697 PR tree-optimization/71059
20698 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
20699 nary before looking up or entering the expression into the VN
20700 hashes.
20701 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
20702 Make sure to re-use NARYs without result as inserted by
20703 phi-translation.
20704
20705 2016-05-12 Richard Biener <rguenther@suse.de>
20706
20707 PR tree-optimization/71062
20708 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
20709 field.
20710 * tree-ssa-structalias.c (set_uids_in_ptset): Set
20711 vars_contains_restrict if the var is a restrict tag.
20712 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
20713 do not disambiguate pointers against it.
20714 (dump_points_to_solution): Re-structure and adjust for new
20715 vars_contains_restrict flag.
20716 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
20717
20718 2016-05-12 Martin Liska <mliska@suse.cz>
20719
20720 * doc/invoke.texi: Explain connection between
20721 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
20722
20723 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
20724
20725 PR tree-optimization/71006
20726 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
20727 consider COND_EXPR as a mask producer.
20728
20729 2016-05-12 Marek Polacek <polacek@redhat.com>
20730
20731 PR driver/71063
20732 * opts.c (common_handle_option): Detect missing argument for --help^.
20733
20734 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20735
20736 PR target/70830
20737 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
20738 when popping the PC and within an interrupt handler routine.
20739 Add missing tab to output of "ldmfd".
20740 (output_return_instruction): Output LDMFD with SP update rather
20741 than POP when returning from interrupt handler.
20742
20743 2016-05-12 Jakub Jelinek <jakub@redhat.com>
20744
20745 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
20746 TARGET_64BIT && TARGET_AVX512DQ.
20747 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
20748 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
20749 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
20750 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
20751 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
20752 (*vec_extractv4si_zext): Add avx512dq alternative.
20753 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
20754 use v instead of x constraint in other alternatives where possible.
20755
20756 * config/i386/sse.md (sse2_loadld): Use v instead of x
20757 constraint in alternatives 0,1,4.
20758
20759 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
20760 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
20761 v constraints instead of x and <pinsr_evex_isa> isa attribute.
20762
20763 PR target/71019
20764 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
20765 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
20766 is not emitted unless TARGET_AVX512BW.
20767 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
20768 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
20769 for the result operand.
20770
20771 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
20772 constraint instead of x in avx alternatives. Use maybe_evex instead
20773 of vex prefix.
20774
20775 * config/i386/constraints.md (Yv): New constraint.
20776 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
20777 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
20778 * config/i386/i386.md (avx512fvecmode): New mode attr.
20779 (*pushtf): Use v constraint instead of x.
20780 (*movtf_internal): Likewise. For TARGET_AVX512VL and
20781 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
20782 (*absneg<mode>2): Use Yv constraint instead of x constraint.
20783 (*absnegtf2_sse): Likewise.
20784 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
20785 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
20786 avx512f alternatives.
20787 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
20788
20789 2016-05-12 Richard Biener <rguenther@suse.de>
20790
20791 PR tree-optimization/71060
20792 * tree-data-ref.c (initialize_data_dependence_relation): Do not
20793 require exact match of DR_BASE_OBJECT but only matching address and
20794 type.
20795
20796 2016-05-12 Richard Biener <rguenther@suse.de>
20797
20798 PR tree-optimization/70986
20799 * cfganal.c: Include cfgloop.h.
20800 (dfs_find_deadend): Prefer to take edges exiting loops.
20801
20802 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20803
20804 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
20805 compile and run time.
20806
20807 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
20808
20809 PR c/43651
20810 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
20811
20812 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
20813
20814 * config/i386/i386.c (legitimize_pic_address): Use
20815 copy_to_suggested_reg instead of gen_movsi.
20816
20817 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20818
20819 * config/rs6000/predicates.md (quad_memory_operand): Move most of
20820 the code into quad_address_p and call it to share code with
20821 vsx_quad_dform_memory_operand.
20822 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
20823 d-form support.
20824 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
20825 bit instead of being a separate word. Split -mpower9-dform into
20826 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20827 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
20828 for the register class supporting 128-bit quad word memory offsets.
20829 (mode_supports_vsx_dform_quad): Helper function to return if the
20830 register class uses quad word memory offsets.
20831 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
20832 (rs6000_debug_reg_global): Always print if we are using LRA or not.
20833 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
20834 instructions are enabled, set up the appropriate addr_masks for
20835 128-bit types.
20836 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
20837 -mpower9-dform-scalar, instead of -mpower9-dform.
20838 (rs6000_option_override_internal): Split -mpower9-dform into two
20839 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
20840 -mpower9-dform switch sets or clears both. If we are not using
20841 the LRA register allocator, do not enable -mpower9-dform-vector by
20842 default. If we are using LRA, enable -mpower9-dform-vector and
20843 -mvsx-timode if it is appropriate. Issue a warning if either
20844 -mpower9-dform-vector or -mvsx-timode are explicitly used without
20845 enabling LRA.
20846 (quad_address_offset_p): New helper function to return if the
20847 offset is legal for quad word memory instructions.
20848 (quad_address_p): New function to determin if GPR or vector
20849 register quad word memory addresses are legal.
20850 (mem_operand_gpr): Validate quad word address offsets.
20851 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
20852 d-form (register + offset) instructions.
20853 (offsettable_ok_by_alignment): Likewise.
20854 (rs6000_legitimate_offset_address_p): Likewise.
20855 (legitimate_lo_sum_address_p): Likewise.
20856 (rs6000_legitimize_address): Likewise.
20857 (rs6000_legitimize_reload_address): Add more debug statements for
20858 -mdebug=addr.
20859 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
20860 d-form instructions.
20861 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
20862 d-form instructions. Distinguish different cases in debug
20863 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
20864 d-form instructions.
20865 (rs6000_preferred_reload_class): Likewise.
20866 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
20867 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
20868 of the ISA 2.06 indexed memory instructions.
20869 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
20870 use them to save/restore the saved vector registers instead of
20871 using Altivec instructions.
20872 (rs6000_emit_epilogue): Likewise.
20873 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
20874 (rs6000_opt_masks): Split -mpower9-dform into
20875 -mpower9-dform-scalar and -mpower9-dform-vector.
20876 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
20877 was not selected.
20878 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
20879 ISA 3.0 vector indexed memory instructions, and fold the code into
20880 the normal mov<mode> patterns.
20881 (p9_vecstore_<mode>): Likewise.
20882 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
20883 instructions.
20884 (vsx_movti_64bit): Likewise.
20885 (vsx_movti_32bit): Likewise.
20886 * config/rs6000/constraints.md (wO constraint): New constraint for
20887 ISA 3.0 vector d-form support.
20888 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
20889 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
20890 include -mpower9-dform-vector until we switch over to LRA.
20891 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
20892 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
20893 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
20894 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20895 for -mpower9-dform and -mlra.
20896 * doc/md.texi (wO constraint): Document wO constraint.
20897
20898 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
20899
20900 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
20901 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
20902 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
20903 Move handling of non-insn arguments inline into the sole user:
20904 (output_trans_func): ...here.
20905 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
20906 in emitted function prototype.
20907 (output_internal_insn_latency_func): Ditto. Simplify.
20908 (output_internal_maximal_insn_latency_func): Ditto. Delete
20909 always-unused argument.
20910 (output_insn_latency_func): Ditto.
20911 (output_maximal_insn_latency_func): Ditto.
20912
20913 2016-05-11 Richard Biener <rguenther@suse.de>
20914
20915 PR tree-optimization/71055
20916 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
20917 sth with precision not equal to access size verify we don't chop
20918 off bits.
20919
20920 2016-05-11 Richard Biener <rguenther@suse.de>
20921
20922 PR debug/71057
20923 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
20924 (dwarf2out_finish): Move retry_incomplete_types call ...
20925 (dwarf2out_early_finish): ... here.
20926
20927 2016-05-11 Richard Biener <rguenther@suse.de>
20928
20929 PR middle-end/71002
20930 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
20931 if the langhook insists on it.
20932 * fold-const.c (make_bit_field_ref): Add arg for the original
20933 reference and preserve its alias-set.
20934 (decode_field_reference): Take exp by reference and adjust it
20935 to the original memory reference.
20936 (optimize_bit_field_compare): Adjust callers.
20937 (fold_truth_andor_1): Likewise.
20938 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
20939
20940 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
20941
20942 PR middle-end/70807
20943 * cfgrtl.h (delete_insn_and_edges): Now return bool.
20944 * cfgrtl.c (delete_insn_and_edges): Likewise.
20945 * config/i386/i386.c (convert_scalars_to_vector): Remove
20946 redundant code.
20947 * cse.c (cse_insn): Compute cse_cfg_altered.
20948 (delete_trivially_dead_insns): Likewise.
20949 (cse_cc_succs): Likewise.
20950 (rest_of_handle_cse): Free dominance info if required.
20951 (rest_of_handle_cse2): Likewise.
20952 (rest_of_handle_cse_after_global_opts): Likewise.
20953
20954 2016-05-11 Alan Modra <amodra@gmail.com>
20955
20956 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
20957 abi_v4_pass_in_fpr): New functions.
20958 (rs6000_function_arg_boundary): Exclude complex IBM long double
20959 from 64-bit alignment when ABI_V4.
20960 (rs6000_function_arg, rs6000_function_arg_advance_1,
20961 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
20962
20963 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
20964
20965 PR rtl-optimization/71028
20966 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
20967 jump with just a return in the fallthrough block if the branch
20968 block contains just a return as well.
20969
20970 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
20971
20972 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
20973 * match.pd ((X & Y) ^ Y): ... this.
20974 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
20975 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
20976
20977 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20978
20979 * read-md.c (require_char_ws): New function.
20980 (read_string): Simplify using require_char_ws.
20981 (handle_constants): Likewise.
20982 (handle_enum): Likewise.
20983 (handle_file): Likewise.
20984 * read-md.h (require_char_ws): New declaration.
20985 * read-rtl.c (read_conditions): Simplify using require_char_ws.
20986 (read_mapping): Likewise.
20987 (read_rtx_code): Likewise.
20988 (read_nested_rtx): Likewise.
20989
20990 2016-05-10 James Norris <jnorris@codesourcery.com>
20991
20992 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
20993 if offloading is enabled and -fopenacc or -fopenmp is specified.
20994 (CRTOFFLOADEND): Likewise.
20995 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
20996 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
20997
20998 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
20999
21000 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
21001 gotoff_operand code paths. Use copy_to_suggested_regs and
21002 expand_simple_binop where appropriate. Cleanup.
21003
21004 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21005
21006 PR target/70799
21007 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
21008 integer constants.
21009 (dimode_scalar_chain::vector_const_cost): New.
21010 (dimode_scalar_chain::compute_convert_gain): Handle constants.
21011 (dimode_scalar_chain::convert_op): Likewise.
21012 (dimode_scalar_chain::convert_insn): Likewise.
21013
21014 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21015
21016 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
21017 unary operation, not a binary one.
21018
21019 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21020
21021 PR middle-end/70877
21022 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
21023 calls with type casted fndecl.
21024
21025 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
21026
21027 PR tree-optimization/70786
21028 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
21029 * calls.c (initialize_argument_information): Bind bounds
21030 with corresponding args passed by reference.
21031
21032 2016-05-10 Jakub Jelinek <jakub@redhat.com>
21033
21034 PR target/70927
21035 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
21036 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
21037 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
21038 accordingly.
21039
21040 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21041
21042 PR target/70963
21043 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
21044 code for a zero scale factor.
21045 (vsx_xvcvdpuxds_scale): Likewise.
21046
21047 2016-05-10 David Malcolm <dmalcolm@redhat.com>
21048
21049 * diagnostic-show-locus.c (layout::layout): Call show_ruler
21050 if show_ruler_p was set on the context.
21051 (layout::show_ruler): New method.
21052 * diagnostic.h (struct diagnostic_context): Add field
21053 "show_ruler_p".
21054
21055 2016-05-10 Richard Biener <rguenther@suse.de>
21056
21057 PR tree-optimization/71039
21058 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
21059 (chk_uses): New function.
21060 (propagate_with_phi): Verify we can safely replicate the lhs of an
21061 aggregate assignment on all incoming edges.
21062
21063 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
21064
21065 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
21066 Forward declare.
21067 (rx_atomic_sequence): New class.
21068 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
21069 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
21070 non-inline.
21071 (rx_atomic_sequence::rx_atomic_sequence,
21072 rx_atomic_sequence::~rx_atomic_sequence): New functions.
21073 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
21074 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
21075 CTRLREG_INTB): New constants.
21076 (FETCHOP): New code iterator.
21077 (fethcop_name, fetchop_name2): New iterator code attributes.
21078 (QIHI): New mode iterator.
21079 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
21080 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
21081 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
21082
21083 2016-05-10 Martin Liska <mliska@suse.cz>
21084
21085 * tree-inline.c (remap_dependence_clique): Do not remap
21086 debugging statements.
21087
21088 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21089
21090 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
21091 ("*fixuns_truncdfdi2_z13")
21092 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
21093 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
21094 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
21095
21096 2016-05-10 Richard Biener <rguenther@suse.de>
21097
21098 PR tree-optimization/70497
21099 PR tree-optimization/28367
21100 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
21101 split out from ...
21102 (visit_reference_op_load): ... here.
21103 (vn_reference_lookup_3): Use it to handle subreg-like accesses
21104 with simplified BIT_FIELD_REFs.
21105 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
21106 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
21107 correctly.
21108
21109 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
21110
21111 * dwarf2out.c (add_abstract_origin_attribute): Adjust
21112 documentation comment. For BLOCK nodes, add a
21113 DW_AT_abstract_origin attribute that points to the DIE generated
21114 for the origin BLOCK.
21115 (gen_lexical_block_die): Call add_abstract_origin_attribute for
21116 blocks from inlined functions.
21117
21118 2016-05-10 Alan Modra <amodra@gmail.com>
21119
21120 PR target/70947
21121 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
21122 regrename modifying insns saving lr before __morestack call.
21123 * config/rs6000/rs6000.md (split_stack_return): Similarly for
21124 insns restoring lr after __morestack call.
21125
21126 2016-05-09 Jakub Jelinek <jakub@redhat.com>
21127
21128 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
21129 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
21130 expanders.
21131 * config/i386/sse.md (vec_interleave_high<mode>,
21132 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
21133 <avx512>_vpermt2var<mode>3_maskz): Likewise.
21134
21135 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
21136
21137 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
21138 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
21139 parallel reassociation for power8 and forward.
21140
21141 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
21142
21143 * config/i386/i386.md (absneg splitters with general regs): Use
21144 general_reg_operand predicate.
21145 (btsq peephole2): Use x86_64_immediate_operand to check if new
21146 value is suitable for immediate operand. Generate emitted insn
21147 using RTL expressions.
21148 (btcq peephole2): Ditto.
21149 (btrq peephole2): Ditto. Generate correct immediate operand
21150 for AND masking.
21151
21152 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21153
21154 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
21155 bitpos.
21156
21157 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
21158
21159 * tree-affine.c (wide_int_constant_multiple_p): Add missing
21160 pointer dereference.
21161
21162 2016-05-09 Richard Biener <rguenther@suse.de>
21163
21164 PR tree-optimization/70985
21165 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
21166 op0 isn't a gimple register.
21167
21168 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
21169
21170 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
21171 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
21172 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
21173 (i6400_fpu_mult): New cpu units.
21174 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
21175 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
21176 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
21177 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
21178 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
21179 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
21180 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
21181 (i6400_msa_long_float4, i6400_msa_long_float5)
21182 (i6400_msa_long_float8, i6400_msa_fdiv_df)
21183 (i6400_msa_fdiv_sf): New reservations.
21184 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
21185 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
21186 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
21187 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
21188 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
21189 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
21190 (msa_short_cmp, msa_short_float2, msa_short_logic3)
21191 (msa_short_store4, msa_long_load, msa_short_store)
21192 (msa_long_logic, msa_long_float2, msa_long_float4)
21193 (msa_long_float5, msa_long_float8, msa_long_mult)
21194 (msa_long_fdiv, msa_long_div): New reservations.
21195
21196 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
21197 Sameera Deshpande <sameera.deshpande@imgtec.com>
21198 Matthew Fortune <matthew.fortune@imgtec.com>
21199 Graham Stott <graham.stott@imgtec.com>
21200 Chao-ying Fu <chao-ying.fu@imgtec.com>
21201
21202 * config.gcc: Add MSA header file for mips*-*-* target.
21203 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
21204 (Ubv8i, Urv8): New constraints.
21205 * config/mips/mips-ftypes.def: Add function types for MSA
21206 builtins.
21207 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
21208 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
21209 * config/mips/mips-msa.md: New file.
21210 * config/mips/mips-protos.h
21211 (mips_split_128bit_const_insns): New prototype.
21212 (mips_msa_idiv_insns): Likewise.
21213 (mips_split_128bit_move): Likewise.
21214 (mips_split_128bit_move_p): Likewise.
21215 (mips_split_msa_copy_d): Likewise.
21216 (mips_split_msa_insert_d): Likewise.
21217 (mips_split_msa_fill_d): Likewise.
21218 (mips_expand_msa_branch): Likewise.
21219 (mips_const_vector_same_val_p): Likewise.
21220 (mips_const_vector_same_bytes_p): Likewise.
21221 (mips_const_vector_same_int_p): Likewise.
21222 (mips_const_vector_shuffle_set_p): Likewise.
21223 (mips_const_vector_bitimm_set_p): Likewise.
21224 (mips_const_vector_bitimm_clr_p): Likewise.
21225 (mips_msa_vec_parallel_const_half): Likewise.
21226 (mips_msa_output_division): Likewise.
21227 (mips_ldst_scaled_shift): Likewise.
21228 (mips_expand_vec_cond_expr): Likewise.
21229 * config/mips/mips.c (enum mips_builtin_type): Add
21230 MIPS_BUILTIN_MSA_TEST_BRANCH.
21231 (mips_gen_const_int_vector_shuffle): New prototype.
21232 (mips_const_vector_bitimm_set_p): New function.
21233 (mips_const_vector_bitimm_clr_p): Likewise.
21234 (mips_const_vector_same_val_p): Likewise.
21235 (mips_const_vector_same_bytes_p): Likewise.
21236 (mips_const_vector_same_int_p): Likewise.
21237 (mips_const_vector_shuffle_set_p): Likewise.
21238 (mips_symbol_insns): Forbid loading symbols via immediate for
21239 MSA.
21240 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
21241 stores.
21242 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
21243 MSA.
21244 (mips_lx_address_p): Add support load indexed address for MSA.
21245 (mips_address_insns): Add calculation of instructions needed for
21246 stores and loads for MSA.
21247 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
21248 CONST_VECTOR for MSA and let it fall through.
21249 (mips_ldst_scaled_shift): New function.
21250 (mips_subword_at_byte): Likewise.
21251 (mips_msa_idiv_insns): Likewise.
21252 (mips_legitimize_move): Validate MSA moves.
21253 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
21254 calculation of costs for MSA division.
21255 (mips_split_move_p): Check if MSA moves need splitting.
21256 (mips_split_move): Split MSA moves if necessary.
21257 (mips_split_128bit_move_p): New function.
21258 (mips_split_128bit_move): Likewise.
21259 (mips_split_msa_copy_d): Likewise.
21260 (mips_split_msa_insert_d): Likewise.
21261 (mips_split_msa_fill_d): Likewise.
21262 (mips_output_move): Handle MSA moves.
21263 (mips_expand_msa_branch): New function.
21264 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
21265 Reinstate 'y' modifier.
21266 (mips_file_start): Add MSA .gnu_attribute.
21267 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
21268 FPRs.
21269 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
21270 (mips_class_max_nregs): Add register size for MSA supported mode.
21271 (mips_cannot_change_mode_class): Allow conversion between MSA
21272 vector modes and TImode.
21273 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
21274 instruction.
21275 (mips_secondary_reload_class): Force MSA loads/stores via memory.
21276 (mips_preferred_simd_mode): Add preffered modes for MSA.
21277 (mips_vector_mode_supported_p): Add MSA supported modes.
21278 (mips_autovectorize_vector_sizes): New function.
21279 (mips_msa_output_division): Likewise.
21280 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
21281 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
21282 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
21283 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
21284 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
21285 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
21286 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
21287 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
21288 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
21289 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
21290 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
21291 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
21292 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
21293 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
21294 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
21295 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
21296 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
21297 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
21298 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
21299 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
21300 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
21301 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
21302 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
21303 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
21304 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
21305 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
21306 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
21307 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
21308 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
21309 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
21310 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
21311 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
21312 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
21313 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
21314 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
21315 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
21316 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
21317 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
21318 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
21319 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
21320 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
21321 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
21322 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
21323 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
21324 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21325 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21326 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21327 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21328 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
21329 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
21330 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
21331 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
21332 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
21333 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
21334 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
21335 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
21336 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
21337 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
21338 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
21339 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
21340 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
21341 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
21342 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
21343 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
21344 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
21345 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
21346 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
21347 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
21348 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
21349 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
21350 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
21351 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
21352 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
21353 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
21354 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
21355 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
21356 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
21357 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
21358 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
21359 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
21360 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
21361 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
21362 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
21363 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
21364 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
21365 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
21366 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
21367 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
21368 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
21369 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
21370 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
21371 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
21372 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
21373 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
21374 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
21375 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
21376 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
21377 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
21378 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
21379 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
21380 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
21381 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
21382 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
21383 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
21384 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
21385 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
21386 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
21387 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
21388 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
21389 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
21390 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
21391 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
21392 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
21393 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
21394 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
21395 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
21396 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
21397 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
21398 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
21399 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
21400 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
21401 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
21402 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
21403 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
21404 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
21405 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
21406 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
21407 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
21408 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
21409 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
21410 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
21411 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
21412 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
21413 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
21414 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
21415 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
21416 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
21417 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
21418 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
21419 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
21420 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
21421 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
21422 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
21423 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
21424 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
21425 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
21426 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
21427 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
21428 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
21429 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
21430 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
21431 move_v builtins.
21432 (mips_get_builtin_decl_index): New array.
21433 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
21434 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
21435 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
21436 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
21437 (mips_init_builtins): Initialize mips_get_builtin_decl_index
21438 array.
21439 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
21440 hook.
21441 (mips_expand_builtin_insn): Prepare operands for
21442 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
21443 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
21444 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
21445 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
21446 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
21447 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
21448 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
21449 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
21450 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
21451 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
21452 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
21453 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
21454 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
21455 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
21456 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
21457 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
21458 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
21459 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
21460 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
21461 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
21462 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
21463 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
21464 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
21465 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
21466 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
21467 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
21468 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
21469 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
21470 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
21471 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
21472 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
21473 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
21474 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
21475 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
21476 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
21477 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
21478 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
21479 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
21480 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
21481 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
21482 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
21483 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
21484 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
21485 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
21486 These are set implicitly and an error is reported if overridden.
21487 (mips_expand_builtin_msa_test_branch): New function.
21488 (mips_expand_msa_shuffle): Likewise.
21489 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
21490 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
21491 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
21492 (mips_expand_vec_unpack): Add support for MSA.
21493 (mips_expand_vector_init): Likewise.
21494 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
21495 instead of const0_rtx.
21496 (mips_msa_vec_parallel_const_half): New function.
21497 (mips_gen_const_int_vector): Likewise.
21498 (mips_gen_const_int_vector_shuffle): Likewise.
21499 (mips_expand_msa_cmp): Likewise.
21500 (mips_expand_vec_cond_expr): Likewise.
21501 * config/mips/mips.h
21502 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
21503 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
21504 specified.
21505 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
21506 (ISA_HAS_MSA): New macro.
21507 (UNITS_PER_MSA_REG): Likewise.
21508 (BITS_PER_MSA_REG): Likewise.
21509 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
21510 (MSA_REG_FIRST): New macro.
21511 (MSA_REG_LAST): Likewise.
21512 (MSA_REG_NUM): Likewise.
21513 (MSA_REG_P): Likewise.
21514 (MSA_REG_RTX_P): Likewise.
21515 (MSA_SUPPORTED_MODE_P): Likewise.
21516 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
21517 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
21518 * config/mips/mips.md: Include mips-msa.md.
21519 (alu_type): Add simd_add.
21520 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
21521 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
21522 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
21523 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
21524 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
21525 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
21526 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
21527 simd_move, simd_load, simd_store. Choose "multi" for moves
21528 for "qword_mode".
21529 (qword_mode): New attribute.
21530 (insn_count): Add instruction count for quad moves.
21531 Increase the count for MIPS SIMD division.
21532 (UNITMODE): Add UNITMODEs for vector types.
21533 (addsub): New code iterator.
21534 * config/mips/mips.opt (mmsa): New option.
21535 * config/mips/msa.h: New file.
21536 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
21537 specified.
21538 * config/mips/mti-linux.h: Likewise.
21539 * config/mips/predicates.md
21540 (const_msa_branch_operand): New constraint.
21541 (const_uimm3_operand): Likewise.
21542 (const_uimm4_operand): Likewise.
21543 (const_uimm5_operand): Likewise.
21544 (const_uimm8_operand): Likewise.
21545 (const_imm5_operand): Likewise.
21546 (aq10b_operand): Likewise.
21547 (aq10h_operand): Likewise.
21548 (aq10w_operand): Likewise.
21549 (aq10d_operand): Likewise.
21550 (const_m1_operand): Likewise.
21551 (reg_or_m1_operand): Likewise.
21552 (const_exp_2_operand): Likewise.
21553 (const_exp_4_operand): Likewise.
21554 (const_exp_8_operand): Likewise.
21555 (const_exp_16_operand): Likewise.
21556 (const_vector_same_val_operand): Likewise.
21557 (const_vector_same_simm5_operand): Likewise.
21558 (const_vector_same_uimm5_operand): Likewise.
21559 (const_vector_same_uimm6_operand): Likewise.
21560 (const_vector_same_uimm8_operand): Likewise.
21561 (par_const_vector_shf_set_operand): Likewise.
21562 (reg_or_vector_same_val_operand): Likewise.
21563 (reg_or_vector_same_simm5_operand): Likewise.
21564 (reg_or_vector_same_uimm6_operand): Likewise.
21565 * doc/extend.texi (MIPS SIMD Architecture Functions): New
21566 section.
21567 * doc/invoke.texi (-mmsa): Document new option.
21568
21569 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21570
21571 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
21572 * configure: Regenerate.
21573 * config.in: Regenerate.
21574 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
21575 on -fvtable-verify.
21576 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
21577 (ENDFILE_VTV_SPEC): Define.
21578
21579 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
21580
21581 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
21582 registers in all interrupt handlers if necessary.
21583 (rl78_option_override): Add warning.
21584 (MUST_SAVE_MDUC_REGISTERS): New macro.
21585 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
21586 * config/rl78/rl78.c (check_mduc_usage): New function.
21587 (mduc_regs): New structure to hold MDUC register data.
21588 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
21589 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
21590 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
21591 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
21592 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
21593 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
21594
21595 2016-05-09 Bin Cheng <bin.cheng@arm.com>
21596
21597 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
21598 (tree-ssa-loop-niter.h): Ditto.
21599 (idx_within_array_bound, ref_within_array_bound): New functions.
21600 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
21601 Factor out check on writable base object to ...
21602 (base_object_writable): ... here.
21603
21604 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21605
21606 * config/arm/arm.md (probe_stack): Add modes to set source
21607 and destination.
21608
21609 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
21610
21611 * regrename.c (base_reg_class_for_rename): New static function.
21612 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
21613
21614 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
21615
21616 * cgraph.c (thunk_adjust): Export.
21617 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
21618 * cgraphunit.c (thunk_adjust): Export.
21619 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
21620 thunks.
21621 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
21622 inlinable.
21623 * tree-inline.c (expand_call_inline): Expand thunks inline.
21624
21625 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
21626
21627 PR target/70998
21628 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
21629 (*sse2_vd_cvtss2sd): Ditto.
21630 * config/i386/i386.md
21631 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
21632 Generate *sse2_vd_cvtsd2ss pattern.
21633 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
21634 Generate *sse2_vd_cvtss2sd pattern.
21635
21636 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21637
21638 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
21639 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
21640 users.
21641
21642 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
21643
21644 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
21645 * config/sh/sh.c: Define and declare variables on first use throughout
21646 the file.
21647 (current_function_interrupt): Change to bool type.
21648 (frame_insn): Rename to emit_frame_insn and update users.
21649 (push_regs): Use bool for 'interrupt_handler' argument.
21650 (save_schedule_s): Remove.
21651 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
21652 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
21653 targetm.asm_out.unaligned_op.di.
21654 (gen_far_branch): Remove redundant forward declaration.
21655 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
21656 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
21657 (sh_set_return_address, sh_function_ok_for_sibcall,
21658 scavenge_reg): Update comments.
21659 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
21660 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
21661 (sh_attr_renesas_p): Remove unnecessary parentheses.
21662 (branch_dest): Simplify.
21663 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
21664 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
21665 (CUMULATIVE_ARGS): Change macro to typedef.
21666 (current_function_interrupt): Change to bool type.
21667 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
21668 Surround with __cplusplus ifdef.
21669 (sh_compare_op0, sh_compare_op1): Remove.
21670 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
21671
21672 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
21673
21674 * config/arm/arm.md (arch): Add neon.
21675 (arch_enabled): Return yes for arch neon when TARGET_NEON.
21676 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
21677 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
21678 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
21679 attributes for alt renumbering. Mark alt 3 as non-predicable.
21680 (thumb2_movdf_vfp): Likewise.
21681
21682 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
21683
21684 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
21685 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
21686 (*andqi_1): Add preferred_for_speed attribute to disparage
21687 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
21688 (*<code>qi_1): Ditto.
21689 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
21690 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
21691 (*ashlqi3_1): Ditto.
21692 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
21693 Add preferred_for_size attribute to disparage alternative 0 and
21694 preferred_for_speed attribute to disparage alternative 1 for
21695 TARGET_PARTIAL_REG_STALL targets.
21696
21697 2016-05-07 Tom de Vries <tom@codesourcery.com>
21698
21699 PR tree-optimization/70956
21700 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
21701 def.
21702
21703 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21704
21705 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
21706 * config/sh/sh.c (sh_cbranch_distance): Implement it.
21707 * config/sh/sh.md (branch_zero): Remove define_attr.
21708 (define_delay): Disable delay slot if branch distance is one insn.
21709
21710 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21711
21712 * config/i386/i386.md (LEAMODE): New mode attribute.
21713 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
21714 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
21715 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
21716 operand 2 predicate.
21717 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
21718 (*lea<mode>_general_3): Ditto.
21719 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
21720
21721 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21722
21723 * genmddump.c (main): Convert argv from char ** to const char **.
21724
21725 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21726
21727 * coretypes.h (OVERRIDE): New macro.
21728 (FINAL): New macro.
21729
21730 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
21731
21732 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
21733 allow coalescing if the types are compatible.
21734
21735 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21736
21737 * pass_manager.h (pass_manager::register_pass_name): New method.
21738 (pass_manager::get_pass_by_name): New method.
21739 (pass_manager::create_pass_tab): New method.
21740 (pass_manager::m_name_to_pass_map): New field.
21741 * passes.c (name_to_pass_map): Delete global in favor of field
21742 "m_name_to_pass_map" of pass_manager.
21743 (register_pass_name): Rename from a function to...
21744 (pass_manager::register_pass_name): ...this method, updating
21745 for renaming of global "name_to_pass_map" to field
21746 "m_name_to_pass_map".
21747 (create_pass_tab): Rename from a function to...
21748 (pass_manager::create_pass_tab): ...this method, updating
21749 for renaming of global "name_to_pass_map" to field.
21750 (get_pass_by_name): Rename from a function to...
21751 (pass_manager::get_pass_by_name): ...this method.
21752 (enable_disable_pass): Convert use of get_pass_by_name to
21753 a method call, locating the pass_manager singleton.
21754
21755 2016-05-06 David Malcolm <dmalcolm@redhat.com>
21756
21757 * genattr-common.c (main): Convert argv from char ** to const char **.
21758 * genattr.c (main): Likewise.
21759 * genattrtab.c (main): Likewise.
21760 * genautomata.c (initiate_automaton_gen): Likewise.
21761 (main): Likewise.
21762 * gencodes.c (main): Likewise.
21763 * genconditions.c (main): Likewise.
21764 * genconfig.c (main): Likewise.
21765 * genconstants.c (main): Likewise.
21766 * genemit.c (main): Likewise.
21767 * genenums.c (main): Likewise.
21768 * genextract.c (main): Likewise.
21769 * genflags.c (main): Likewise.
21770 * genmddeps.c (main): Likewise.
21771 * genopinit.c (main): Likewise.
21772 * genoutput.c (main): Likewise.
21773 * genpeep.c (main): Likewise.
21774 * genpreds.c (main): Likewise.
21775 * genrecog.c (main): Likewise.
21776 * gensupport.c (init_rtx_reader_args_cb): Likewise.
21777 (init_rtx_reader_args): Likewise.
21778 * gensupport.h (init_rtx_reader_args_cb): Likewise.
21779 (init_rtx_reader_args): Likewise.
21780 * gentarget-def.c (main): Likewise.
21781 * read-md.c (read_md_files): Likewise.
21782 * read-md.h (read_md_files): Likewise.
21783
21784 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21785
21786 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
21787 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
21788 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
21789 Remove unused predicate.
21790 (register_and_not_fp_reg_operand): Ditto.
21791
21792 2016-05-06 Martin Liska <mliska@suse.cz>
21793
21794 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
21795 instead of vec as the vector is local to the function.
21796
21797 2016-05-06 Jakub Jelinek <jakub@redhat.com>
21798
21799 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
21800 avx512bw alternative.
21801
21802 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
21803 before the ashr<mode>3 pattern.
21804
21805 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
21806 v instead of x in vex or maybe_vex alternatives, use
21807 maybe_evex instead of vex in prefix.
21808
21809 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
21810 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
21811 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
21812 in vex or maybe_vex alternatives, use maybe_evex instead of vex
21813 in prefix.
21814
21815 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
21816 v instead of x in vex or maybe_vex alternatives, use
21817 maybe_evex instead of vex in prefix.
21818
21819 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
21820 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
21821 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
21822 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
21823 alternatives, use maybe_evex instead of vex in prefix.
21824
21825 * config/i386/sse.md (vec_interleave_lowv4sf,
21826 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
21827 v instead of x in vex or maybe_vex alternatives, use
21828 maybe_evex instead of vex in prefix.
21829
21830 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
21831 v instead of x in vex or maybe_vex alternatives, use
21832 maybe_evex instead of vex in prefix.
21833
21834 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
21835 v constraint instead of x.
21836
21837 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
21838
21839 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
21840 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
21841 equality first.
21842
21843 2016-05-06 Richard Biener <rguenther@suse.de>
21844
21845 PR tree-optimization/70948
21846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21847 Properly clobber all fields of va_list for __builtin_va_start.
21848
21849 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
21850
21851 PR debug/70935
21852 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
21853 loop latch destination.
21854
21855 2016-05-06 Martin Liska <mliska@suse.cz>
21856
21857 * tree-ssa-uninit.c: Apply manual changes
21858 to the GNU coding style.
21859 (prune_uninit_phi_opnds): Rename from
21860 prune_uninit_phi_opnds_in_unrealizable_paths.
21861
21862 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21863
21864 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
21865 mspace): Remove deprecated options.
21866 * doc/invoke.texi (SH options): Remove -mspace.
21867
21868 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21869
21870 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
21871
21872 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21873
21874 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
21875 corresponding combine split pattern.
21876
21877 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21878
21879 PR target/58219
21880 * config/sh/predicates.md (long_displacement_mem_operand): New.
21881 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
21882 Add movi20, movi20s alternatives. Adjust length attribute for
21883 alternatives.
21884 (movsi_ie): Allow for any FPU. Adjust length attribute for
21885 alternatives.
21886 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
21887 attribute for alternatives.
21888 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
21889 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
21890 length attribute for alternatives.
21891
21892 2016-05-06 Richard Biener <rguenther@suse.de>
21893
21894 PR tree-optimization/70960
21895 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
21896
21897 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21898
21899 PR target/52933
21900 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
21901 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
21902
21903 2016-05-06 Marek Polacek <polacek@redhat.com>
21904
21905 PR sanitizer/70875
21906 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
21907
21908 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21909
21910 PR target/54089
21911 * config/sh/sh.md (*rotcr): Add another variant.
21912
21913 2016-05-06 Richard Biener <rguenther@suse.de>
21914
21915 PR middle-end/70931
21916 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
21917
21918 2016-05-06 Richard Biener <rguenther@suse.de>
21919
21920 PR middle-end/70941
21921 * fold-const.c (split_tree): Always convert to the original type
21922 before negating.
21923
21924 2016-05-06 Richard Biener <rguenther@suse.de>
21925
21926 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
21927 (fwprop_addr): Likewise.
21928
21929 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21930
21931 PR target/70873
21932 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
21933 New prototype.
21934 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
21935 * config/i386/i386.md (push mem splitter): Use find_constant_src in
21936 the splitter condition.
21937 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
21938 the splitter condition.
21939 (FP float_extend load splitter): Ditto.
21940
21941 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
21942
21943 * config/i386/i386.md (peehole2 patterns): Change true_regnum
21944 to REGNO in all peephole2 patterns.
21945 (post-reload splitters): Change true_regnum to REGNO in
21946 post-reload splitters.
21947 (zero_extend splitters): Use general_reg_operand and
21948 nonimmediate_gr_operand predicates.
21949
21950 2016-05-05 Jakub Jelinek <jakub@redhat.com>
21951
21952 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
21953 v constraint instead of x.
21954
21955 2016-05-05 Alan Modra <amodra@gmail.com>
21956
21957 PR target/68662
21958 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
21959 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
21960 TARGET_NO_FP_IN_TOC for -mrelocatable.
21961 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
21962 TARGET_RELOCATABLE test.
21963 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21964 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21965 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21966 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21967 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21968 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21969 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21970 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21971 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
21972 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21973 Likewise.
21974 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
21975 (rs6000_stack_info): Likewise.
21976 (rs6000_elf_asm_out_constructor): Likewise.
21977 (rs6000_elf_asm_out_destructor): Likewise.
21978 (rs6000_elf_declare_function_name): Likewise.
21979 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
21980 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
21981 Don't define.
21982
21983 2016-05-05 Alan Modra <amodra@gmail.com>
21984
21985 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
21986
21987 2016-05-05 Alan Modra <amodra@gmail.com>
21988
21989 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
21990 out-of-line gpr restore for one or two regs if that would add
21991 a save of lr.
21992
21993 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
21994
21995 PR target/70873
21996 * config/i386/i386.md
21997 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
21998 Change to post-epilogue_completed late splitter. Use sse_reg_operand
21999 as operand 0 predicate.
22000 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
22001 Ditto.
22002 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
22003 Ditto. Emit the pattern using RTX.
22004
22005 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
22006 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
22007 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
22008 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
22009 Ditto.
22010 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
22011 sse_reg_operand as operand 0 predicate.
22012
22013 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
22014 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
22015 instead of gen_rtx_REG.
22016 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
22017 Ditto.
22018
22019 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22020
22021 * function.c (emit_use_return_register_into_block): Delete.
22022 (gen_return_pattern): Delete.
22023 (emit_return_into_block): Delete.
22024 (active_insn_between): Delete.
22025 (convert_jumps_to_returns): Delete.
22026 (emit_return_for_exit): Delete.
22027 (thread_prologue_and_epilogue_insns): Delete all code dealing with
22028 simple_return for shrink-wrapped blocks.
22029 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
22030 end of blocks that need one.
22031 (get_unconverted_simple_return): Delete.
22032 (convert_to_simple_return): Delete.
22033 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
22034 (convert_to_simple_return): Ditto.
22035
22036 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22037
22038 * cfgcleanup.c (bb_is_just_return): New function.
22039 (try_optimize_cfg): Simplify jumps to return, branches to return,
22040 and branches around return.
22041
22042 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
22043
22044 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
22045 branch to a return.
22046
22047 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22048
22049 PR c++/70906
22050 PR c++/70933
22051 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
22052 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
22053 assert flags & OEP_HASH_CHECK, instead of asserting it
22054 never happens. Handle TARGET_EXPR.
22055 * fold-const.c (operand_equal_p): For hash verification,
22056 or in OEP_HASH_CHECK into flags.
22057
22058 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
22059
22060 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
22061 comment.
22062 (compute_samebase_partition_bases): Fix typo.
22063
22064 2016-05-04 Jakub Jelinek <jakub@redhat.com>
22065
22066 * config/i386/sse.md (vec_interleave_highv8sf,
22067 vec_interleave_lowv8sf, vec_interleave_highv4df,
22068 vec_interleave_lowv4df): Remove constraints from expanders.
22069
22070 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
22071
22072 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22073
22074 * tree-inline.c (expand_call_inline): Fix path dealing with
22075 making lhs of call statement undefined.
22076
22077 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
22078
22079 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
22080 Check availability on NODE, too.
22081 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
22082 (cgraph_node::call_for_symbol_and_aliases): Likewise.
22083 (varpool_node::call_for_symbol_and_aliase): Likewise.
22084 * ipa-pure-const.c (add_new_function): Analyze all bodies.
22085 (propagate_pure_const): Propagate across interposable functions, too.
22086 (skip_function_for_local_pure_const): Do not skip interposable bodies
22087 with aliases.
22088 (pass_local_pure_const::execute): Update.
22089
22090 2016-05-04 Marek Polacek <polacek@redhat.com>
22091
22092 * doc/invoke.texi: Document -Wdangling-else.
22093
22094 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22095
22096 * config.gcc: Error out when conflicting multilib is detected. Do not
22097 loop over multilibs since no combination is legal.
22098
22099 2016-05-04 Alan Modra <amodra@gmail.com>
22100
22101 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
22102 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
22103 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
22104 Align .toc.
22105
22106 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
22107
22108 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
22109 Clean up p5600 comments.
22110
22111 2016-05-04 Richard Biener <rguenther@suse.de>
22112
22113 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
22114 constructor simplifications.
22115 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
22116
22117 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
22118
22119 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
22120 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
22121 result.set_rtx is null instead of aborting.
22122 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
22123 Always enable.
22124 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
22125 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
22126 *mov<mode>_store_postinc): New patterns.
22127
22128 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
22129
22130 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
22131 as commutative. Check both conversions are NOP.
22132 ((A & B) OP (C & B)): Remove.
22133
22134 2016-05-04 Alan Modra <amodra@gmail.com>
22135
22136 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
22137
22138 2016-05-04 Alan Modra <amodra@gmail.com>
22139
22140 PR target/70866
22141 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
22142 when cr2,3,4 are all fixed regs.
22143
22144 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
22145
22146 PR rtl-optimization/57193
22147 * opts.c (default_options_table): Revert OPT_frename_registers change.
22148 * doc/invoke.texi (-frename-registers, -O2): Likewise.
22149
22150 2016-05-03 Martin Sebor <msebor@redhat.com>
22151
22152 PR c++/66561
22153 * builtins.c (fold_builtin_FILE): New function.
22154 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
22155 (fold_builtin_0): Call them.
22156 * gimplify.c (gimplify_call_expr): Remove the handling of
22157 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
22158
22159 PR c++/66561
22160 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
22161 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
22162 constants.
22163
22164 PR c++/66639
22165 * doc/extend.texi (Function Names as Strings): Update __func__,
22166 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
22167 constants.
22168
22169 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22170 Richard Biener <rguenther@suse.de>
22171
22172 PR tree-optimization/70916
22173 * tree-if-conv.c: Include cfganal.h.
22174 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
22175 and remove_fake_exit_edges around the optimization pass.
22176
22177 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
22178
22179 * cgraph.c (symbol_table::create_edge): Set inline_failed.
22180 (cgraph_edge::make_direct): Likewise.
22181 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
22182 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
22183 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
22184 (CIF_THUNK): New code.
22185 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
22186 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
22187 (compute_inline_parameters): Set inline_failed for thunks.
22188 (inline_analyze_function): Cleanup.
22189 * ipa-inline.c (can_inline_edge_p): Do not deal with
22190 call_stmt_cannot_inline_p.
22191 (can_early_inline_edge_p): Likewise.
22192 (early_inliner): Initialize inline_failed.
22193 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
22194
22195 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
22196
22197 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22198 from nonimm_ssenomem_operand.
22199 (nonimm_ssenomem_operand): New predicate.
22200 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
22201 as operand 0 predicate.
22202 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
22203 Disable unsupported alternatives using "enabled" attribute.
22204 Use register_ssemem_operand as operand 0 predicate.
22205 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
22206
22207 2016-05-03 Marek Polacek <polacek@redhat.com>
22208
22209 PR c/70859
22210 * input.c (expansion_point_location): New function.
22211 * input.h (expansion_point_location): Declare.
22212
22213 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
22214
22215 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
22216 occurence with frame_offset_ ones.
22217
22218 2016-05-03 Alan Modra <amodra@gmail.com>
22219
22220 PR rtl-optimization/70890
22221 * ira.c (combine_and_move_insns): When moving def_insn, remove
22222 equivs on use_insn.
22223
22224 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
22225
22226 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
22227 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
22228 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
22229 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
22230
22231 2016-05-03 Alan Modra <amodra@gmail.com>
22232
22233 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
22234 for SAVE_MULTIPLE/STORE_MULTIPLE.
22235
22236 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22237
22238 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
22239 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
22240
22241 2016-05-03 Richard Biener <rguenther@suse.de>
22242
22243 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
22244 default true.
22245 (gimplify_arg): Likewise.
22246 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
22247 re-writing the result to a decl if required.
22248 (internal_get_tmp_var): Add allow_ssa parameter
22249 and override into_ssa with it.
22250 (get_formal_tmp_var): Adjust.
22251 (get_initialized_tmp_var): Add allow_ssa parameter.
22252 (gimplify_arg): Add allow_ssa parameter and avoid generating
22253 SSA names for the result false.
22254 (gimplify_call_expr): If the call may return twice do not
22255 gimplify parameters into SSA.
22256 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
22257 (gimplify_modify_expr): Adjust assert. For noreturn calls
22258 with a SSA name LHS adjust its def.
22259 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
22260 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
22261 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
22262 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
22263 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
22264 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
22265 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
22266 (optimize_target_teams): Do not allow SSA names for clause operands.
22267 (gimplify_expr): Likewise for where we mark the result addressable.
22268 * passes.def (pass_init_datastructures): Remove.
22269 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
22270 (rewrite_stmt): Likewise.
22271 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
22272 (replace_locals_op): Replace SSA names.
22273 (copy_gimple_seq_and_replace_locals): Init src_cfun.
22274 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
22275 * cgraph.c (release_function_body): Free CFG annotations only
22276 when we have a CFG. Simplify.
22277 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
22278 force_gimple_operand instead of get_initialized_tmp_var.
22279 * tree-pass.h (make_pass_init_datastructures): Remove.
22280 * tree-ssa.c (execute_init_datastructures): Remove.
22281 (pass_data_init_datastructures): Likewise.
22282 (class pass_init_datastructures): Likewise.
22283 (make_pass_init_datastructures): Likewise.
22284 * omp-low.c (create_omp_child_function): Init SSA data structures.
22285 (grid_expand_target_grid_body): Likewise.
22286 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
22287 name before adding it to names_to_release.
22288 (remove_bb): Always release SSA defs.
22289 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
22290 before dereferencing it.
22291 * cgraphunit.c (init_lowered_empty_function): Always
22292 int SSA data structures.
22293 * tree-ssanames.c (release_defs): Remove assert that we are in
22294 SSA form.
22295 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
22296
22297 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22298 Uros Bizjak <ubizjak@gmail.com>
22299
22300 PR rtl-optimization/70467
22301 * config/i386/predicates.md (x86_64_hilo_int_operand,
22302 x86_64_hilo_general_operand): New predicates.
22303 * config/i386/constraints.md (Wd): New constraint.
22304 * config/i386/i386.md (mode attr di): Use Wd instead of e.
22305 (general_hilo_operand): New mode attr.
22306 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
22307 instead of <general_operand>.
22308 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
22309 x86_64_hilo_general_operand instead of <general_operand>.
22310
22311 2016-05-03 Jakub Jelinek <jakub@redhat.com>
22312
22313 PR tree-optimization/70916
22314 * tree-if-conv.c (constant_or_ssa_name): Removed.
22315 (fold_build_cond_expr): Use is_gimple_val instead of
22316 constant_or_ssa_name.
22317
22318 PR tree-optimization/70916
22319 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
22320 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
22321
22322 PR target/49244
22323 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
22324 (optimize_atomic_bit_test_and): New function.
22325 (pass_fold_builtins::execute): Use it.
22326 * optabs.def (atomic_bit_test_and_set_optab,
22327 atomic_bit_test_and_complement_optab,
22328 atomic_bit_test_and_reset_optab): New optabs.
22329 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
22330 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
22331 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
22332 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
22333 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
22334 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
22335 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
22336 * doc/md.texi (atomic_bit_test_and_set@var{mode},
22337 atomic_bit_test_and_complement@var{mode},
22338 atomic_bit_test_and_reset@var{mode}): Document.
22339 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
22340 atomic_bit_test_and_complement<mode>,
22341 atomic_bit_test_and_reset<mode>): New expanders.
22342 (atomic_bit_test_and_set<mode>_1,
22343 atomic_bit_test_and_complement<mode>_1,
22344 atomic_bit_test_and_reset<mode>_1): New insns.
22345
22346 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
22347
22348 PR rtl-optimization/70687
22349 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
22350 instead of unsigned HOST_WIDE_INT.
22351
22352 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
22353
22354 PR rtl-optimization/44281
22355 * hard-reg-set.h (struct target_hard_regs): New field
22356 x_fixed_nonglobal_reg_set.
22357 (fixed_nonglobal_reg_set): New macro.
22358 * reginfo.c (init_reg_sets_1): Initialize it.
22359 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
22360 of fixed_reg_set.
22361 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
22362
22363 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22364
22365 PR tree-optimization/56541
22366 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
22367 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
22368 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
22369 (any_complicated_phi): new static variable.
22370 (aggressive_if_conv): delete.
22371 (if_convertible_phi_p): support phis with more than two arguments.
22372 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
22373 critical pred edges.
22374 (ifcvt_split_critical_edges): support phis with more than two
22375 arguments by checking new parameter. only split critical edges
22376 if needed.
22377 (tree_if_conversion): handle simd pragma marked loop using new
22378 local variable aggressive_if_conv. check any_complicated_phi.
22379
22380 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22381
22382 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
22383 before using it.
22384
22385 2016-05-03 Bin Cheng <bin.cheng@arm.com>
22386
22387 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
22388 cbase.
22389
22390 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22391
22392 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
22393 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
22394 define_insn_and_split.
22395 (mulsi3_i): New define_insn_and_split.
22396 (mulsi3_call): Convert to define_insn.
22397 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
22398 Remove constraints.
22399
22400 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22401
22402 * machmode.h (mode_complex): Add support to give the complex mode
22403 for a given mode.
22404 (GET_MODE_COMPLEX_MODE): Likewise.
22405 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
22406 stored by build_complex_type and gfc_build_complex_type instead of
22407 trying to figure out the appropriate mode based on the size. Raise
22408 an assertion error, if the type was not set.
22409 * genmodes.c (struct mode_data): Add field for the complex type of
22410 the given type.
22411 (blank_mode): Likewise.
22412 (make_complex_modes): Remember the complex mode created in the
22413 base type.
22414 (emit_mode_complex): Write out the mode_complex array to map a
22415 type mode to the complex version.
22416 (emit_insn_modes_c): Likewise.
22417 * tree.c (build_complex_type): Set the complex type to use before
22418 calling layout_type.
22419 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
22420 support for __float128 complex datatypes.
22421 (rs6000_hard_regno_mode_ok): Likewise.
22422 (rs6000_setup_reg_addr_masks): Likewise.
22423 (rs6000_complex_function_value): Likewise.
22424 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
22425 __float128 and __ibm128 complex.
22426 (FLOAT128_IBM_P): Likewise.
22427 (ALTIVEC_ARG_MAX_RETURN): Likewise.
22428 * doc/extend.texi (Additional Floating Types): Document that
22429 -mfloat128 must be used to enable __float128. Document complex
22430 __float128 and __ibm128 support.
22431
22432 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22433
22434 PR target/49244
22435 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
22436 char/short arguments promoted to int because of promote_prototypes.
22437
22438 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22439
22440 * config/i386/predicates.md (register_ssemem_operand): New predicate.
22441 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
22442 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
22443 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
22444 alternatives using "enabled" attribute. Use register_ssemem_operand
22445 as operand 1 predicate.
22446 (*cmpi<unord>xf_i387): Split XFmode pattern from
22447 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
22448 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
22449 *absneg<mode>2_i387. Disable unsupported alternatives using
22450 "enabled" attribute.
22451 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
22452
22453 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22454
22455 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
22456 marker.
22457 (oacc_loop_process): Check mask for loop termination.
22458
22459 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22460
22461 * cif-code.def (CIF_THUNK): Add.
22462 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
22463 accidental change.
22464
22465 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
22466
22467 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
22468 (dump_inline_summary): Dump it.
22469 (fp_expression_p): New predicate.
22470 (estimate_function_body_sizes): Use it.
22471 (inline_merge_summary): Merge fp_expressions.
22472 (inline_read_section): Read fp_expressions.
22473 (inline_write_summary): Write fp_expressions.
22474 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
22475 codegen boundary if either caller or callee is !fp_expressions.
22476 * ipa-inline.h (inline_summary): Add fp_expressions.
22477 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
22478 to fp_expressions be sure the fp generation flags are updated.
22479
22480 2016-05-02 Jakub Jelinek <jakub@redhat.com>
22481
22482 PR rtl-optimization/70467
22483 * cse.c (cse_insn): Handle no-op MEM moves after folding.
22484
22485 PR rtl-optimization/70467
22486 * ipa-pure-const.c (check_call): Handle internal calls even in
22487 ipa mode like in local mode.
22488
22489 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22490
22491 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
22492
22493 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22494
22495 * match.pd (X u< X, X u> X): New transformations.
22496
22497 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
22498
22499 * flag-types.h (enum warn_strict_overflow_code): Move ...
22500 * coretypes.h: ... here.
22501 * fold-const.h (fold_overflow_warning): Declare.
22502 * fold-const.c (fold_overflow_warning): Make non-static.
22503 (fold_comparison): Move the transformation of X +- C1 CMP C2
22504 into X CMP C2 -+ C1 ...
22505 * match.pd: ... here.
22506 * gimple-fold.c (fold_stmt_1): Protect with
22507 fold_defer_overflow_warnings.
22508
22509 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
22510
22511 * omp-low.c (struct oacc_loop): Add 'inner' field.
22512 (new_oacc_loop_raw): Initialize it to zero.
22513 (oacc_loop_fixed_partitions): Initialize it.
22514 (oacc_loop_auto_partitions): Partition outermost loop to outermost
22515 available partitioning.
22516
22517 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22518
22519 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
22520 register_operand.
22521 (umulsidi3): Likewise.
22522 (indirect_jump): Fix jump instruction assembly patterns.
22523
22524 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
22525
22526 PR target/70860
22527 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
22528 (nvptx_function_value): Assert non-NULL cfun.
22529
22530 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
22531
22532 PR rtl-optimization/70886
22533 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
22534
22535 * cselib.h (rtx_equal_for_cselib_1): Declare.
22536 (rtx_equal_for_cselib_p: New inline function.
22537 * cselib.c (rtx_equal_for_cselib_p): Delete.
22538 (rtx_equal_for_cselib_1): Make public.
22539
22540 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
22541
22542 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
22543 (register_mixssei387nonimm_operand): Remove predicate.
22544 * config/i386/i386.md (*fop_<mode>_comm): Merge from
22545 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
22546 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
22547 for TARGET_MIX_SSE_I387 alternatives.
22548 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
22549 Disable unsupported alternatives using "enabled" attribute. Use
22550 nonimm_ssenomem_operand as operand 1 predicate. Also check
22551 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
22552
22553 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22554
22555 * tree.c (cst_and_fits_in_hwi): Simplify.
22556
22557 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22558
22559 * tree.h (wi::to_wide): New function.
22560 * expr.c (expand_expr_real_1): Use wi::to_wide.
22561 * fold-const.c (int_const_binop_1): Likewise.
22562 (extract_muldiv_1): Likewise.
22563
22564 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22565
22566 * wide-int.h: Update offset_int and widest_int documentation.
22567 (WI_SIGNED_SHIFT_RESULT): New macro.
22568 (wi::binary_shift): Define signed_shift_result_type for
22569 shifts on offset_int- and widest_int-like types.
22570 (generic_wide_int): Support <<= and >>= if << and >> are supported.
22571 * tree.h (int_bit_position): Use shift operators instead of wi::
22572 shifts.
22573 * alias.c (adjust_offset_for_component_ref): Likewise.
22574 * expr.c (get_inner_reference): Likewise.
22575 * fold-const.c (fold_comparison): Likewise.
22576 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
22577 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
22578 * tree-dfa.c (get_ref_base_and_extent): Likewise.
22579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
22580 (stmt_kills_ref_p): Likewise.
22581 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
22582 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
22583 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22584 (ao_ref_init_from_vn_reference): Likewise.
22585
22586 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
22587
22588 * wide-int.h: Update offset_int and widest_int documentation.
22589 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
22590 (wi::binary_traits): Allow ordered comparisons between offset_int and
22591 offset_int, between widest_int and widest_int, and between either
22592 of these types and basic C types.
22593 (operator <, <=, >, >=): Define for the same combinations.
22594 * tree.h (tree_int_cst_lt): Use comparison operators instead
22595 of wi:: comparisons.
22596 (tree_int_cst_le): Likewise.
22597 * gimple-fold.c (fold_array_ctor_reference): Likewise.
22598 (fold_nonarray_ctor_reference): Likewise.
22599 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
22600 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
22601 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
22602 * tree-sra.c (completely_scalarize): Likewise.
22603 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
22604 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
22605 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
22606 (check_for_binary_op_overflow): Likewise.
22607 (search_for_addr_array): Likewise.
22608 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
22609
22610 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22611
22612 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
22613 (arc_save_restore): Likewise.
22614 (arc_dwarf_register_span): Likewise.
22615 (arc_output_pic_addr_const): Initialize suffix variable.
22616
22617 2016-05-02 Martin Liska <mliska@suse.cz>
22618
22619 * symbol-summary.h (function_summary::function_summary):
22620 Remove checking assert for all cgraph nodes.
22621 (function_summary::get): Check summary_uid.
22622 (symtab_insertion): Check summary_uid.
22623
22624 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
22625
22626 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
22627 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
22628 bmaskn instruction.
22629 (arc_dwarf_register_span): Remove enum keyword.
22630 (compact_memory_operand_p): New function.
22631 * config/arc/arc.h (reg_class): Add code density register classes.
22632 (REG_CLASS_NAMES): Likewise.
22633 (REG_CLASS_CONTENTS): Likewise.
22634 * config/arc/arc.md (*movqi_insn): Add code density instructions.
22635 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
22636 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
22637 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
22638 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
22639 constraints.
22640 (h, Rcd, Rsd, Rzd): New register constraints.
22641 (T): Use compact_memory_operand_p function.
22642 * config/arc/predicates.md (compact_load_memory_operand): Remove.
22643
22644 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22645
22646 * config/sh/sh.md (*negnegt, *movtt): Remove.
22647
22648 2016-05-02 Marek Polacek <polacek@redhat.com>
22649 Tom de Vries <tom@codesourcery.com>
22650
22651 PR tree-optimization/70700
22652 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
22653 bigger than FIRST_REF_NODE.
22654
22655 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
22656
22657 PR target/52898
22658 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
22659 TARGET_CMPEQDI_T.
22660 (prepare_cbranch_operands): Don't use scratch register. Assume that
22661 function is used when pseudos can be created.
22662 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
22663 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
22664 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
22665 define_expand. Allow it only when pseudos can be created.
22666 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
22667
22668 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
22669
22670 * config/i386/constraints.md (BC): Only allow -1 operands.
22671 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
22672 Add "enabled" attribute. Update XI mode attribute calculation.
22673 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
22674 (*movoi_internal_avx): Update XI mode attribute calculation.
22675 (*movti_internal): Ditto.
22676
22677 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22678
22679 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
22680 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
22681
22682 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
22683
22684 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
22685 statement on instruction code. Remove trailing spaces.
22686 (altivec_expand_stv_builtin): Likewise.
22687
22688 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22689
22690 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
22691 (TARGET_FPU_DOUBLE): Simplify.
22692 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
22693 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
22694 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
22695 with 'TARGET_FPU_DOUBLE'.
22696 * config/sh/sh.md: Likewise.
22697
22698 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
22699
22700 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
22701 SH_DIV_STR_FOR_SIZE): Remove.
22702 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22703 SH_DIV_STR_FOR_SIZE): Remove.
22704
22705 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
22706
22707 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
22708 logical_reg_operand): Delete.
22709 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
22710 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
22711 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
22712 match_operand and match_test.
22713 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
22714 variables on their first use. Return bool values.
22715 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
22716 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
22717 arith_reg_operand for input operand. Remove empty constraints.
22718 (xorsi3): Delete.
22719 (*xorsi3_compact): Rename to xorsi3.
22720 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
22721 (*zero_extend<mode>si2_disp_mem): Update comment.
22722 (mov_nop): Delete.
22723
22724 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22725
22726 * config/sh/t-sh: Remove SH5 support.
22727 * config.gcc: Likewise.
22728 * configure: Likewise.
22729
22730 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22731
22732 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
22733
22734 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
22735
22736 * config/sh/sh.c (register_sh_passes, sh_option_override,
22737 sh_print_operand, prepare_move_operands,
22738 sh_can_follow_jump): Remove TARGET_SH1 checks.
22739 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
22740 PROMOTE_MODE): Likewise.
22741 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
22742 movdi): Likewise.
22743
22744 2016-04-30 Alan Modra <amodra@gmail.com>
22745
22746 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
22747 restoring when fixed_reg_p, but allow out-of-line or stmw save.
22748 Check for user regs later to avoid unnecessary looping over regs.
22749 Merge user reg check with non-saved reg check. Don't force
22750 inline VR restore when static chain used.
22751 (rs6000_frame_related): Omit eh_frame info for user regs when
22752 saving.
22753 (fixed_regs_p): Delete.
22754
22755 2016-04-30 Alan Modra <amodra@gmail.com>
22756
22757 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
22758 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
22759 Update all uses.
22760
22761 2016-04-30 Alan Modra <amodra@gmail.com>
22762
22763 PR target/69645
22764 * config/rs6000/rs6000.c (fixed_reg_p): New function.
22765 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
22766 Update all uses.
22767
22768 2016-04-30 Alan Modra <amodra@gmail.com>
22769
22770 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
22771 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
22772 flag_pic test for Darwin.
22773
22774 2016-04-30 Alan Modra <amodra@gmail.com>
22775
22776 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
22777 throw_calls_crossed.
22778 (REG_FREQ_CALLS_CROSSED): Delete.
22779 (REG_N_THROWING_CALLS_CROSSED): Delete.
22780 * regstat.c (regstat_bb_compute_ri): Don't calculate
22781 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
22782 (dump_reg_info): Don't print call cross frequency.
22783 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
22784 and REG_N_THROWING_CALLS_CROSSED.
22785
22786 2016-04-30 Alan Modra <amodra@gmail.com>
22787
22788 * regs.h (struct reg_info_t): Delete live_length.
22789 (REG_LIVE_LENGTH): Delete macro.
22790 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
22791 local_live, local_processed and local_live_last_luid params.
22792 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
22793 Formatting fixes.
22794 (regstat_compute_ri): Adjust for above. Don't set
22795 REG_LIVE_LENGTH.
22796 (dump_reg_info): Don't print live length.
22797 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
22798 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
22799 Localize loop_depth var.
22800
22801 2016-04-30 Alan Modra <amodra@gmail.com>
22802
22803 * ira.c (enum valid_equiv): New.
22804 (validate_equiv_mem): Return enum.
22805 (update_equiv_mem): Create replacement in more cases.
22806 (add_store_equivs): Update validate_equiv_mem call.
22807
22808 2016-04-30 Alan Modra <amodra@gmail.com>
22809
22810 * ira.c (combine_and_move_insns): Rather than scanning insns,
22811 use DF infrastucture to find use and def insns.
22812
22813 2016-04-30 Alan Modra <amodra@gmail.com>
22814
22815 ira.c (combine_and_move_insns): Move invariant conditions..
22816 (ira.c): ..to here. Call combine_and_move_insns before
22817 add_store_equivs. Call grow_reg_equivs later. Allocate
22818 req_equiv later using max_reg_num() rather than global max_regno.
22819 (contains_replace_regs): Delete.
22820 (add_store_equivs): Remove contains_replace_regs test.
22821
22822 2016-04-30 Alan Modra <amodra@gmail.com>
22823
22824 * ira.c (struct equiv_mem_data): New.
22825 (equiv_mem, equiv_mem_modified): Delete static vars.
22826 (validate_equiv_mem_from_store): Use "data" param to communicate..
22827 (validate_equiv_mem): ..from here.
22828
22829 2016-04-30 Alan Modra <amodra@gmail.com>
22830
22831 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
22832 split out from..
22833 (update_reg_equivs): ..here. Move allocation and freeing of
22834 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
22835 end_alias_analysis to..
22836 (ira): ..here.
22837
22838 2016-04-30 Alan Modra <amodra@gmail.com>
22839
22840 * ira.c (pdx_subregs): Delete.
22841 (struct equivalence): Add pdx_subregs field.
22842 (set_paradoxical_subreg): Remove pdx_subregs param. Update
22843 pdx_subregs access.
22844 (update_equiv_regs): Don't create or free pdx_subregs. Update
22845 pdx_subregs access.
22846
22847 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22848
22849 * config/rs6000/altivec.h: Change definitions of vec_xl and
22850 vec_xst.
22851 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
22852 (LD_ELEMREV_V2DI): New.
22853 (LD_ELEMREV_V4SF): New.
22854 (LD_ELEMREV_V4SI): New.
22855 (LD_ELEMREV_V8HI): New.
22856 (LD_ELEMREV_V16QI): New.
22857 (ST_ELEMREV_V2DF): New.
22858 (ST_ELEMREV_V2DI): New.
22859 (ST_ELEMREV_V4SF): New.
22860 (ST_ELEMREV_V4SI): New.
22861 (ST_ELEMREV_V8HI): New.
22862 (ST_ELEMREV_V16QI): New.
22863 (XL): New.
22864 (XST): New.
22865 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22866 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
22867 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
22868 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
22869 (altivec_expand_builtin): Add handling for
22870 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
22871 (rs6000_invalid_builtin): Add error-checking for
22872 RS6000_BTM_P9_VECTOR.
22873 (altivec_init_builtins): Define builtins used to implement vec_xl
22874 and vec_xst.
22875 (rs6000_builtin_mask_names): Define power9-vector.
22876 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
22877 (RS6000_BTM_P9_VECTOR): Define.
22878 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
22879 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
22880 (vsx_ld_elemrev_v2df): Likewise.
22881 (vsx_ld_elemrev_v4sf): Likewise.
22882 (vsx_ld_elemrev_v4si): Likewise.
22883 (vsx_ld_elemrev_v8hi): Likewise.
22884 (vsx_ld_elemrev_v16qi): Likewise.
22885 (vsx_st_elemrev_v2df): Likewise.
22886 (vsx_st_elemrev_v2di): Likewise.
22887 (vsx_st_elemrev_v4sf): Likewise.
22888 (vsx_st_elemrev_v4si): Likewise.
22889 (vsx_st_elemrev_v8hi): Likewise.
22890 (vsx_st_elemrev_v16qi): Likewise.
22891 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
22892 grammar.
22893
22894 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
22895
22896 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
22897 out into ...
22898 (simplify_control_stmt_condition_1): ... here. Recurse into
22899 BIT_AND_EXPRs and BIT_IOR_EXPRs.
22900
22901 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
22902
22903 PR target/69810
22904 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
22905 (zero_extendqi<mode>2_dot): Revert earlier conversion from
22906 define_insn_and_split to define_insn.
22907 (zero_extendqi<mode>2_dot2): Same.
22908 (extendqi<mode>2_dot): Same.
22909 (extendqi<mode>2_dot2): Same.
22910
22911 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22912
22913 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
22914 (probe_stack): New expander.
22915 (probe_stack_<mode>): New insn pattern.
22916
22917 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22918
22919 * config/i386/i386.md
22920 (operations with memory inputs setting flags peephole2):
22921 Remove uneeded REG_P checks. Cleanup pattern generation.
22922
22923 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
22924
22925 * tree-vect-loop.c (vect_transform_loop): Fix
22926 nb_iterations_upper_bound computation for vectorized loop.
22927
22928 2016-04-29 Marek Polacek <polacek@redhat.com>
22929 Jakub Jelinek <jakub@redhat.com>
22930
22931 PR sanitizer/70342
22932 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
22933 TARGET_EXPR_SLOT as a base.
22934
22935 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
22936
22937 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
22938 with 'rCm2' constraints to limit possible immediate size.
22939 (*load_zeroextendqisi_update): Likewise.
22940 (*load_signextendqisi_update): Likewise.
22941 (*loadhi_update): Likewise.
22942 (*load_zeroextendhisi_update): Likewise.
22943 (*load_signextendhisi_update): Likewise.
22944 (*loadsi_update): Likewise.
22945 (*loadsf_update): Likewise.
22946
22947 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22948
22949 * config/i386/predicates.md (constm1_operand): Fix comparison.
22950
22951 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22952
22953 * testsuite/gcc.target/arc/ieee_eq.c: New test.
22954
22955 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
22956
22957 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
22958 remaining SH5 related settings.
22959 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
22960 shmedia_prepare_call_address): Delete.
22961 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
22962 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
22963 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
22964 UNSUPPORTED_SH2A): Remove m5 checks.
22965 (sh_divide_strategy_e): Remove SH5 division strategies.
22966 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
22967 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
22968
22969 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22970
22971 * config/s390/s390.c (s390_rtx_costs): Update documentation.
22972
22973 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22974
22975 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
22976 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
22977 Change lder to ldr.
22978 * config/s390/vector.md ("mov<mode>"): Likewise.
22979
22980 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
22981
22982 * config/s390/constraints.md ("U", "W"): Invoke
22983 s390_mem_constraint with "ZR" and "ZT".
22984 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
22985 addresses when using LRA. Accept also short displacements for S
22986 and T constraints. Do not check for long displacement target for
22987 S and T constraints.
22988 (s390_mem_constraint): Remove handling of U and W constraints.
22989 * config/s390/s390.md (various patterns): Remove the short
22990 displacement constraints (Q and R) if a long displacement
22991 constraint is present. Add longdisp as required CPU capability.
22992 * config/s390/vector.md: Likewise.
22993 * config/s390/vx-builtins.md: Likewise.
22994
22995 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22996
22997 PR target/60040
22998 * reload1.c (reload): Call finish_spills before
22999 restarting reload loop. Skip select_reload_regs
23000 if update_eliminables_and_spill returns true.
23001
23002 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
23003
23004 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
23005 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
23006 (umulhisi3_imm): Update predicates and constraint letters.
23007 (umulhisi3_reg): Declare instruction as commutative.
23008 * config/arc/constraints.md (J12, J16): New constraints.
23009 * config/arc/predicates.md (short_unsigned_const_operand): New
23010 predicate.
23011 (arc_short_operand): Likewise.
23012 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
23013
23014 2016-04-29 Richard Biener <rguenther@suse.de>
23015
23016 PR tree-optimization/13962
23017 PR tree-optimization/65686
23018 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
23019 * tree-ssa-alias.c (ptrs_compare_unequal): New function
23020 using PTA to compare pointers.
23021 * match.pd: Add pattern for pointer equality compare simplification
23022 using ptrs_compare_unequal.
23023
23024 2016-04-29 Richard Biener <rguenther@suse.de>
23025
23026 * stor-layout.c (layout_type): Do not build a pointer-to-element
23027 type for arrays.
23028
23029 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
23030
23031 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
23032 Use SWI mode iterator. Use general_reg_operand predicate.
23033 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
23034 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
23035 predicates.
23036
23037 2016-04-29 Jakub Jelinek <jakub@redhat.com>
23038
23039 PR middle-end/70843
23040 * fold-const.c (operand_equal_p): Don't verify hash value equality
23041 if arg0 == arg1.
23042 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
23043 and OMP_CLAUSE.
23044
23045 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23046
23047 PR target/70858
23048 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
23049 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
23050 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
23051 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
23052 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
23053
23054 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23055
23056 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
23057 to info. Don't initialize separate fields to 0. Clean up
23058 formatting a bit.
23059
23060 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23061
23062 * config/i386/i386.md (peephole2s for operations with memory inputs):
23063 Use SWI mode iterator.
23064 (peephole2s for operations with memory outputs): Ditto.
23065 Do not check for stack checking probe.
23066
23067 (probe_stack): Remove expander.
23068
23069 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23070 Andrew Burgess <andrew.burgess@embecosm.com>
23071
23072 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
23073 operands as 32-bits.
23074
23075 2016-04-28 Jason Merrill <jason@redhat.com>
23076
23077 * gdbinit.in: Skip line-map.h.
23078
23079 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23080 Andrew Burgess <andrew.burgess@embecosm.com>
23081
23082 * config/arc/arc.c (arc_conditional_register_usage): Take
23083 TARGET_RRQ_CLASS into account.
23084 (arc_print_operand): Support printing 'p' and 's' operands.
23085 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
23086 as 0.
23087 (TARGET_RRQ_CLASS): Define.
23088 (IS_POWEROF2_OR_0_P): Define.
23089 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
23090 alternatives.
23091 (*tst_movb): New define_insn.
23092 (*tst): Avoid recognition if it could prevent '*tst_movb'
23093 combination; replace c/CnL with c/Chs alternative.
23094 (*tst_bitfield_tst): New define_insn.
23095 (*tst_bitfield_asr): New define_insn.
23096 (*tst_bitfield): New define_insn.
23097 (andsi3_i): Add Rrq variant.
23098 (extzv): New define_expand.
23099 (insv): New define_expand.
23100 (*insv_i): New define_insn.
23101 (*movb): New define_insn.
23102 (*movb_signed): New define_insn.
23103 (*movb_high): New define_insn.
23104 (*movb_high_signed): New define_insn.
23105 (*movb_high_signed + 1): New define_split pattern.
23106 (*mrgb): New define_insn.
23107 (*mrgb + 1): New define_peephole2 pattern.
23108 (*mrgb + 2): New define_peephole2 pattern.
23109 * config/arc/arc.opt (mbitops): New option for nps400, uses
23110 TARGET_NPS_BITOPS_DEFAULT.
23111 * config/arc/constraints.md (q): Make register class conditional.
23112 (Rrq): New register constraint.
23113 (Chs): New constraint.
23114 (Clo): New constraint.
23115 (Chi): New constraint.
23116 (Cbf): New constraint.
23117 (Cbn): New constraint.
23118 (C18): New constraint.
23119 (Cbi): New constraint.
23120
23121 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23122
23123 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
23124 dst->popcount.
23125 (bitmap_intersection_of_preds): Ditto.
23126 (bitmap_union_of_succs): Ditto.
23127 (bitmap_union_of_preds): Ditto.
23128 * sbitmap.c (do_popcount): Delete.
23129 (BITMAP_DEBUGGING): Delete.
23130 (sbitmap_verify_popcount): Delete.
23131 (sbitmap_alloc): Don't initialize the popcount field.
23132 (sbitmap_alloc_with_popcount): Delete.
23133 (sbitmap_resize): Don't resize the popcount array.
23134 (sbitmap_vector_alloc): Don't initialize the popcount field.
23135 (bitmap_copy): Don't copy the popcount array.
23136 (bitmap_clear): Don't clear the popcount array.
23137 (bitmap_clear): Delete the popcount array handling.
23138 (bitmap_ior_and_compl): Delete the popcount assert.
23139 (bitmap_not): Ditto.
23140 (bitmap_and_compl): Ditto.
23141 (bitmap_and): Delete the popcount array handling.
23142 (bitmap_xor): Ditto.
23143 (bitmap_ior): Ditto.
23144 (bitmap_or_and): Delete the popcount assert.
23145 (bitmap_and_or): Ditto.
23146 (popcount_table): Delete.
23147 (sbitmap_elt_popcount): Delete.
23148 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
23149 (bitmap_set_bit): Delete the popcount assert.
23150 (bitmap_clear_bit): Ditto.
23151 (sbitmap_free): Don't free the popcount array.
23152 (sbitmap_alloc_with_popcount): Delete declaration.
23153 (sbitmap_popcount): Ditto.
23154
23155 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23156 Andrew Burgess <andrew.burgess@embecosm.com>
23157
23158 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
23159 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
23160 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
23161 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
23162 * config/arc/arc.opt (mcmem): New option.
23163 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
23164 supply length for r/m alternative.
23165 (*extendqisi2_ac): Likewise.
23166 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
23167 r/Uex alternative.
23168 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
23169 (movhi_insn): Likewise.
23170 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
23171 (*zero_extendqihi2_i): Add r/Ucm alternative.
23172 (*zero_extendqisi2_ac): Likewise.
23173 (*zero_extendhisi2_i): Likewise.
23174 * config/arc/constraints.md (Uex): New memory constraint.
23175 (Ucm): New define_constraint.
23176 * config/arc/predicates.md (long_immediate_loadstore_operand):
23177 Return 0 for MEM with cmem_address address.
23178 (cmem_address_0): New predicates.
23179 (cmem_address_1): Likewise.
23180 (cmem_address_2): Likewise.
23181 (cmem_address): Likewise.
23182
23183 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23184
23185 * config/rs6000/rs6000.c (machine_function): Rename
23186 insn_chain_scanned_p to spe_insn_chain_scanned_p.
23187 (rs6000_stack_info): Adjust.
23188
23189 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
23190 Andrew Burgess <andrew.burgess@embecosm.com>
23191
23192 * config/arc/constraints.md (Usd): Convert to define_constraint.
23193 (Us<): Likewise.
23194 (Us>): Likewise.
23195
23196 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23197
23198 PR target/70821
23199 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
23200 Add new peephole2 where the first insn is *mov<mode>_or instead of
23201 *mov<mode>_internal.
23202
23203 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
23204
23205 * tracer.c (bb_seen): Make static.
23206
23207 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
23208
23209 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
23210 support, setup defaults.
23211 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
23212 * config/arc/arc.c (arc_init): Add NPS400 support.
23213 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
23214 (TARGET_ARC700): NPS400 is also an ARC700.
23215 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
23216
23217 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
23218
23219 PR target/70668
23220 * config/nds32/nds32.md (casesi): Don't access the operands array
23221 out of bounds.
23222
23223 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23224
23225 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
23226 (or $-1,reg peephole2): Ditto.
23227 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
23228
23229 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23230
23231 * doc/extend.texi (Common Function Attributes) [optimize]:
23232 Discourage use of the optimize attribute.
23233
23234 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
23235
23236 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
23237 special case builtin.
23238 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23239 ALTIVEC_BUILTIN_VEC_ADDE.
23240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23241 support for ALTIVEC_BUILTIN_VEC_ADDE.
23242 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
23243 for __builtin_vec_adde.
23244
23245 2016-04-28 Jakub Jelinek <jakub@redhat.com>
23246
23247 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
23248 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
23249
23250 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23251
23252 PR testsuite/70595
23253 * doc/sourcebuild.texi (Effective-Target Keywords, Other
23254 attributes): Document cilkplus_runtime.
23255
23256 2016-04-28 Martin Jambor <mjambor@suse.cz>
23257
23258 * tree-cfg.c (verify_expr): Verify that local declarations belong to
23259 this function. Call verify_expr on MEM_REFs and bases of other
23260 handled_components.
23261
23262 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23263
23264 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
23265 for WORD_REGISTER_OPERATIONS to runtime check.
23266
23267 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23268
23269 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
23270
23271 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23272
23273 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
23274 big-endian compilation.
23275 * config/arc/arc.md (addf3): Likewise.
23276 (subdf3): Likewise.
23277 (muldf3): Likewise.
23278
23279 2016-04-28 Richard Biener <rguenther@suse.de>
23280
23281 PR tree-optimization/70840
23282 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
23283 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
23284 Mark x * pow(x,c) -> pow(x,c+1) commutative.
23285 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
23286
23287 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23288
23289 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
23290 and explain why in a comment.
23291
23292 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23293
23294 * config/arc/arc.md (cpu_facility): Add fpx variant.
23295 (subdf3): Prohibit use reverse sub when assist operations option
23296 is enabled.
23297 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
23298 instructions only when FPX is enabled.
23299 * testsuite/gcc.target/arc/trsub.c: New test.
23300
23301 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23302
23303 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
23304 mult_operator when calculating "type" attribute.
23305 (*fop_<mode>_1_i387): Ditto.
23306 (*fop_xf_1_i387): Ditto.
23307 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
23308 Use std::swap to swap operands. Use RTL expressions to generate
23309 converted pattern.
23310
23311 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23312 Joern Rennecke <joern.rennecke@embecosm.com>
23313
23314 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
23315 declaration.
23316 (emit_pic_move): Remove.
23317 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
23318 * config/arc/arc.c (emit_pic_move): Removed.
23319 (TARGET_HAVE_TLS): Define.
23320 (arc_conditional_register_usage): Test for arc_tp_regno.
23321 (arc_print_operand, arc_print_operand_address): Handle TLS
23322 unspecs.
23323 (arc_needs_pcl_p): New function.
23324 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
23325 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
23326 (arc_raw_symbolic_reference_mentioned_p): Likewise.
23327 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
23328 (arc_legitimize_tls_address): Likewise.
23329 (DTPOFF_ZERO_SYM): Define.
23330 (arc_legitimize_pic_address): Make it static, handle TLS cases.
23331 (arc_output_pic_addr_const): Print TLS unspecs.
23332 (prepare_pic_move): New function, replaces emit_pic_move.
23333 (arc_legitimate_constant_p): Handle TLS unspecs.
23334 (arc_legitimate_address_p): Likewise.
23335 (arc_rewrite_small_data_p): Use assert for TLS constants.
23336 (prepare_move_operands): Use prepare_pic_move.
23337 (arc_legitimize_address): Legitimize tls addresses.
23338 (arc_epilogue_uses): Check for arc_tp_regno.
23339 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
23340 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
23341 Define.
23342 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
23343 Likewise.
23344 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
23345 %(arc_tls_extra_start_spec).
23346 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
23347 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
23348 (EH_USES): Define.
23349 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
23350 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
23351 (UNSPEC_TLS_OFF): Add.
23352 (R10_REG): Define.
23353 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
23354 (get_thread_pointersi): New patterns.
23355 * config/arc/arc.opt (mtp-regno): New option.
23356 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
23357 (move_dest_operand): Likewise.
23358 * configure: Regenerate.
23359 * configure.ac: Add arc*-*-* case to test for tls.
23360 * doc/invoke.texi (ARC options): Document mtp-regno.
23361
23362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
23363
23364 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
23365 the new ARC HS SIMD instructions.
23366 (arc_preferred_simd_mode): New function.
23367 (arc_autovectorize_vector_sizes): Likewise.
23368 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23369 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23370 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
23371 (arc_init_builtins): Add new SIMD builtin types.
23372 (arc_split_move): Handle 64 bit vector moves.
23373 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
23374 (TARGET_PLUS_QMACW): Define.
23375 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
23376 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
23377 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
23378 (VSUBADD4H): New builtins.
23379 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
23380 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
23381
23382 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
23383 Matthias Klose <doko@debian.org>
23384
23385 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
23386
23387 2016-04-28 Richard Biener <rguenther@suse.de>
23388
23389 PR middle-end/70777
23390 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
23391 canonicalization.
23392
23393 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
23394
23395 * common/config/sh/sh-common.c: Remove SH5 support.
23396 * config/sh/constraints.md: Likewise.
23397 * config/sh/config/sh/elf.h: Likewise.
23398 * config/sh/linux.h: Likewise.
23399 * config/sh/netbsd-elf.h: Likewise.
23400 * config/sh/predicates.md: Likewise.
23401 * config/sh/sh-c.c: Likewise.
23402 * config/sh/sh-protos.h: Likewise.
23403 * config/sh/sh.c: Likewise.
23404 * config/sh/sh.h: Likewise.
23405 * config/sh/sh.md: Likewise.
23406 * config/sh/sh.opt: Likewise.
23407 * config/sh/sync.md: Likewise.
23408 * config/sh/sh64.h: Delete.
23409 * config/sh/shmedia.h: Likewise.
23410 * config/sh/shmedia.md: Likewise.
23411 * config/sh/sshmedia.h: Likewise.
23412 * config/sh/t-netbsd-sh5-64: Likewise.
23413 * config/sh/t-sh64: Likewise.
23414 * config/sh/ushmedia.h: Likewise.
23415
23416 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
23417
23418 * config/i386/i386.md (sign_extend to memory peephole2s): Use
23419 general_reg_operand instead of register_operand predicate.
23420
23421 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23422
23423 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
23424
23425 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
23426
23427 * match.pd (A - B > A, A + B < A): New transformations.
23428
23429 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
23430
23431 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
23432 which defaults to true. Emit an outer pair of parentheses only if
23433 EMIT_PARENS. When continuing a chain of && or || (or & or |),
23434 don't emit parentheses for the right-hand operand.
23435
23436 2016-04-27 Jeff Law <law@redhat.com>
23437
23438 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
23439
23440 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23441
23442 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
23443 (altivec_lvx_<mode>_internal): Document.
23444 (altivec_lvx_<mode>_2op): New define_insn.
23445 (altivec_lvx_<mode>_1op): Likewise.
23446 (altivec_lvx_<mode>_2op_si): Likewise.
23447 (altivec_lvx_<mode>_1op_si): Likewise.
23448 (altivec_stvx_<mode>): Remove.
23449 (altivec_stvx_<mode>_internal): Document.
23450 (altivec_stvx_<mode>_2op): New define_insn.
23451 (altivec_stvx_<mode>_1op): Likewise.
23452 (altivec_stvx_<mode>_2op_si): Likewise.
23453 (altivec_stvx_<mode>_1op_si): Likewise.
23454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23455 Expand vec_ld and vec_st during parsing.
23456 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
23457 changes.
23458 (altivec_expand_stvx_be): Likewise.
23459 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
23460 address-masking behavior in RTL.
23461 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
23462 address-masking behavior in RTL.
23463 (altivec_expand_builtin): Change builtin code arguments for calls
23464 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
23465 (insn_is_swappable_p): Avoid incorrect swap optimization in the
23466 presence of lvx/stvx patterns.
23467 (alignment_with_canonical_addr): New function.
23468 (alignment_mask): Likewise.
23469 (find_alignment_op): Likewise.
23470 (recombine_lvx_pattern): Likewise.
23471 (recombine_stvx_pattern): Likewise.
23472 (recombine_lvx_stvx_patterns): Likewise.
23473 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
23474 stvx patterns from expand.
23475 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
23476 expansions.
23477 (vector_altivec_store_<mode>): Likewise.
23478
23479 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
23480
23481 * config/aarch64/aarch64.md
23482 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
23483 remove the "fp" attributes.
23484 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
23485 add the "simd" attributes.
23486 (*movdf_aarch64): Likewise.
23487 (*movtf_aarch64): Remove the "fp" attributes.
23488 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
23489 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
23490
23491 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23492
23493 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
23494 rtx to rtx_code_label *.
23495 * rtl.h (maybe_set_first_label_num): Likewise.
23496
23497 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23498
23499 * df-core.c (df_add_problem): Make the problem param be const.
23500 (df_remove_problem): Make local "problem" be const.
23501 * df-problems.c (problem_RD): Make const.
23502 (problem_LR): Likewise.
23503 (problem_LIVE): Likewise.
23504 (problem_MIR): Likewise.
23505 (problem_CHAIN): Likewise.
23506 (problem_WORD_LR): Likewise.
23507 (problem_NOTE): Likewise.
23508 (problem_MD): Likewise.
23509 * df-scan.c (problem_SCAN): Likewise.
23510 * df.h (struct df_problem): Make field "dependent_problem" be
23511 const.
23512 (struct dataflow): Likewise for field "problem".
23513 (df_add_problem): Make param const.
23514
23515 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23516
23517 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
23518 inter-unit moves to/from vector registers are enabled. Do not disable
23519 for TARGET_MMX.
23520
23521 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23522
23523 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
23524 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
23525 #define to...
23526 (enum df_problem_id): ...this new enum.
23527 (struct df_problem): Convert field "id" from "int" to
23528 enum df_problem_id.
23529
23530 2016-04-27 David Malcolm <dmalcolm@redhat.com>
23531
23532 * rtl.def: Update comment for "things in the instruction chain" to
23533 reflect the removal of the leading "i" field for INSN_UID in
23534 r210360. Fix bogus apostrophe.
23535
23536 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
23537
23538 * config/i386/i386.md
23539 (lea arith with mem operand + setcc peephole2): Set operator mode.
23540
23541 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
23542
23543 PR target/70155
23544 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
23545 (dimode_scalar_to_vector_candidate_p): This.
23546 (timode_scalar_to_vector_candidate_p): New function.
23547 (scalar_to_vector_candidate_p): Likewise.
23548 (timode_check_non_convertible_regs): Likewise.
23549 (timode_remove_non_convertible_regs): Likewise.
23550 (remove_non_convertible_regs): Likewise.
23551 (remove_non_convertible_regs): Renamed to ...
23552 (dimode_remove_non_convertible_regs): This.
23553 (scalar_chain::~scalar_chain): Make it virtual.
23554 (scalar_chain::compute_convert_gain): Make it pure virtual.
23555 (scalar_chain::mark_dual_mode_def): Likewise.
23556 (scalar_chain::convert_insn): Likewise.
23557 (scalar_chain::convert_registers): Likewise.
23558 (scalar_chain::add_to_queue): Make it protected.
23559 (scalar_chain::emit_conversion_insns): Likewise.
23560 (scalar_chain::replace_with_subreg): Likewise.
23561 (scalar_chain::replace_with_subreg_in_insn): Likewise.
23562 (scalar_chain::convert_op): Likewise.
23563 (scalar_chain::convert_reg): Likewise.
23564 (scalar_chain::make_vector_copies): Likewise.
23565 (scalar_chain::convert_registers): New pure virtual function.
23566 (class dimode_scalar_chain): New class.
23567 (class timode_scalar_chain): Likewise.
23568 (scalar_chain::mark_dual_mode_def): Renamed to ...
23569 (dimode_scalar_chain::mark_dual_mode_def): This.
23570 (timode_scalar_chain::mark_dual_mode_def): New function.
23571 (timode_scalar_chain::convert_insn): Likewise.
23572 (dimode_scalar_chain::convert_registers): Likewise.
23573 (scalar_chain::compute_convert_gain): Renamed to ...
23574 (dimode_scalar_chain::compute_convert_gain): This.
23575 (scalar_chain::replace_with_subreg): Renamed to ...
23576 (dimode_scalar_chain::replace_with_subreg): This.
23577 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
23578 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
23579 (scalar_chain::make_vector_copies): Renamed to ...
23580 (dimode_scalar_chain::make_vector_copies): This.
23581 (scalar_chain::convert_reg): Renamed to ...
23582 (dimode_scalar_chain::convert_reg ): This.
23583 (scalar_chain::convert_op): Renamed to ...
23584 (dimode_scalar_chain::convert_op): This.
23585 (scalar_chain::convert_insn): Renamed to ...
23586 (dimode_scalar_chain::convert_insn): This.
23587 (scalar_chain::convert): Call convert_registers.
23588 (convert_scalars_to_vector): Change to scalar_chain pointer to
23589 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
23590 in 32-bit mode. Delete scalar_chain pointer. Call
23591 free_dominance_info in 64-bit mode.
23592 (pass_stv::gate): Remove TARGET_64BIT check.
23593 (ix86_option_override): Put the 64-bit STV pass before the CSE
23594 pass.
23595
23596 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
23597
23598 * dwarf2out.h (struct dw_loc_descr_node): Remove the
23599 dw_loc_frame_offset field.
23600 * dwarf2out.c (new_loc_descr): Likewise.
23601 (resolve_args_picking_1): Turn the VISITED hash set into a
23602 FRAME_OFFSET hash map. Use it to associate a frame offset to
23603 visited nodes. Remove uses of the CHECKING_P macro.
23604 (resolve_args_picking): Update call to resolve_args_picking_1.
23605
23606 2016-04-27 Martin Liska <mliska@suse.cz>
23607
23608 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
23609 (free_loop_data): Release vuses of groups.
23610
23611 2016-04-27 Bin Cheng <bin.cheng@arm.com>
23612
23613 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
23614 instead of redundant use_id and boolean have_use_for.
23615 (struct iv_use): Change sub_id into group_id. Remove field next.
23616 Move fields: related_cands, n_map_members, cost_map and selected
23617 to ...
23618 (struct iv_group): ... here. New structure.
23619 (struct iv_common_cand): Use structure declaration directly.
23620 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
23621 (MAX_CONSIDERED_USES): Rename macro to ...
23622 (MAX_CONSIDERED_GROUPS): ... here.
23623 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
23624 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
23625 (dump_uses): Rename to ...
23626 (dump_groups): ... here. Update all uses.
23627 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
23628 (find_induction_variables): Refactor format of dump information.
23629 (record_sub_use): Delete.
23630 (record_use): Update all uses.
23631 (record_group): New function.
23632 (record_group_use, find_interesting_uses_op): Call above functions.
23633 Update all uses.
23634 (find_interesting_uses_cond): Ditto.
23635 (group_compare_offset): New function.
23636 (split_all_small_groups): Rename to ...
23637 (split_small_address_groups_p): ... here. Update all uses.
23638 (split_address_groups): Update all uses.
23639 (find_interesting_uses): Refactor format of dump information.
23640 (add_candidate_1): Update all uses. Remove redundant check on iv,
23641 base and step.
23642 (add_candidate, record_common_cand): Remove redundant assert.
23643 (add_iv_candidate_for_biv): Update use.
23644 (add_iv_candidate_derived_from_uses): Update all uses.
23645 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
23646 (alloc_use_cost_map): Ditto.
23647 (set_use_iv_cost, get_use_iv_cost): Rename to ...
23648 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
23649 (determine_use_iv_cost_generic): Ditto.
23650 (determine_group_iv_cost_generic): Ditto.
23651 (determine_use_iv_cost_address): Ditto.
23652 (determine_group_iv_cost_address): Ditto.
23653 (determine_use_iv_cost_condition): Ditto.
23654 (determine_group_iv_cost_cond): Ditto.
23655 (determine_use_iv_cost): Ditto.
23656 (determine_group_iv_cost): Ditto.
23657 (set_autoinc_for_original_candidates): Update all uses.
23658 (find_iv_candidates): Update all uses. Refactor dump information.
23659 (determine_use_iv_costs): Ditto.
23660 (determine_iv_costs): Ditto.
23661 (iv_ca_cand_for_use): Rename to ...
23662 (iv_ca_cand_for_group): ... here. Update all uses.
23663 (iv_ca_add_use, iv_ca_add_group): Ditto.
23664 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
23665 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
23666 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
23667 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
23668 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
23669 (create_new_iv, adjust_iv_update_pos): Ditto.
23670 (rewrite_use_address): Delete.
23671 (rewrite_use_address_1): Rename to ...
23672 (rewrite_use_address): ... here.
23673 (rewrite_use_compare): Update all uses.
23674 (rewrite_use): Delete.
23675 (rewrite_uses): Rename to ...
23676 (rewrite_groups): ... here. Update all uses.
23677 (remove_unused_ivs, free_loop_data): Update all uses.
23678 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
23679
23680 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23681
23682 * rtlanal.c (nonzero_bits1): Convert preprocessor check
23683 for WORD_REGISTER_OPERATIONS to runtime check.
23684
23685 2016-04-27 Richard Biener <rguenther@suse.de>
23686
23687 PR ipa/70760
23688 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
23689 aggregate_value_p to determine if a function result is
23690 returned by reference.
23691 (ipa_pta_execute): Functions having their address taken are
23692 not automatically nonlocal.
23693
23694 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23695
23696 PR sanitizer/70683
23697 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
23698 * fold-const.c (operand_equal_p): If flag_checking and
23699 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
23700 and if it returns non-zero, assert iterative_hash_expr on both
23701 args is the same.
23702
23703 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23704
23705 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
23706
23707 2016-04-27 Nick Clifton <nickc@redhat.com>
23708
23709 PR middle-end/49889
23710 * varasm.c (merge_weak): Generate an error if an attempt is made
23711 to convert a non-weak static function into a weak, public function.
23712
23713 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23714
23715 * params.def (MAX_PARTITION_SIZE): New param.
23716 * doc/invoke.texi: Document lto-max-partition.
23717
23718 2016-04-27 Richard Biener <rguenther@suse.de>
23719
23720 PR ipa/70785
23721 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
23722 function cummulating used_from_other_partition, externally_visible
23723 and force_output from aliases.
23724 (refered_from_nonlocal_var): Likewise.
23725 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
23726 node flags properly.
23727
23728 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
23729
23730 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
23731 (-Wmemset-elt-size): New item.
23732
23733 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
23734
23735 PR ada/70759
23736 * stor-layout.h (internal_reference_types): Delete.
23737 * stor-layout.c (reference_types_internal): Likewise.
23738 (internal_reference_types): Likewise.
23739 (layout_type) <REFERENCE_TYPE>: Adjust.
23740
23741 2016-04-27 Jakub Jelinek <jakub@redhat.com>
23742
23743 PR sanitizer/70683
23744 * tree.h (inchash::add_expr): Add FLAGS argument.
23745 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
23746 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
23747 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
23748 Formatting fix. Adjust recursive calls. For tcc_comparison,
23749 if swap_tree_comparison (code) is smaller than code, hash that
23750 and arguments in the other order. Hash CONVERT_EXPR the same
23751 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
23752 of ADDR_EXPR of decl as the decl itself. Add or remove
23753 OEP_ADDRESS_OF from recursive flags as needed. For
23754 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
23755 operands commutatively and only the third one normally.
23756 For internal CALL_EXPR hash in CALL_EXPR_IFN.
23757
23758 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
23759
23760 * config/rtems.h (LIB_SPEC): Add -latomic.
23761
23762 2016-04-27 Joel Sherrill <joel@rtems.org>
23763
23764 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
23765 xilink.ld and flags not relevant to RTEMS.
23766
23767 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
23768
23769 * toplev.c (backend_init_target): Avoid calling init_reload when using
23770 LRA.
23771
23772 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23773
23774 * reorg.c (try_merge_delay_insns): Declare i and j inside the
23775 for loops rather than one for the whole function.
23776
23777 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23778
23779 * match.pd (X + CST CMP X): New transformation.
23780
23781 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
23782
23783 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
23784 * fold-const.c (fold_binary_loc): Remove 2 transformations
23785 superseded by match.pd.
23786 * match.pd (x+x -> x*2): Generalize to integers.
23787
23788 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
23789
23790 * config/i386/i386.md (operation on memory peephole): Duplicate an
23791 existing peephole and adapt it to match lea rather than an operation
23792 that clobbers CC.
23793
23794 PR rtl-optimization/57193
23795 * opts.c (default_options_table): Add OPT_frename_registers at -O2
23796 and above.
23797 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
23798
23799 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23800
23801 * tree-if-conv.c (any_pred_load_store): New static variable.
23802 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
23803 any_pred_load_store instead of and_mask_load_store.
23804 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
23805 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
23806 (combine_blocks, tree_if_conversion): Ditto.
23807
23808 2016-04-26 Bin Cheng <bin.cheng@arm.com>
23809
23810 PR tree-optimization/70771
23811 PR tree-optimization/70775
23812 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
23813 virtual PHI nodes. Delete parameter.
23814 (if_convertible_loop_p_1): Delete argument to above function.
23815 (predicate_all_scalar_phis): Delete code handling single-argument
23816 PHIs.
23817 (tree_if_conversion): Mark and update virtual SSA.
23818
23819 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23820
23821 PR target/61821
23822 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
23823 (x86_elf_aligned_common): Rename to ...
23824 (x86_elf_aligned_decl_common): ... this.
23825 Add decl arg. Switch to .lbss for largecomm object. Use
23826 LARGECOMM_SECTION_ASM_OP.
23827 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
23828 renaming.
23829 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
23830 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
23831 Pass new decl arg.
23832 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23833 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
23834
23835 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23836
23837 PR target/59407
23838 * config/i386/i386.c (SECTION_LARGE): Define.
23839 (x86_64_elf_select_section): Set it for large data/bss sections.
23840 Only clear SECTION_WRITE for .lrodata.
23841 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
23842 data/bss sections.
23843 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
23844 * varasm.c (default_elf_asm_named_section): Grow flagchars.
23845 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
23846 SECTION_MACH_DEP.
23847 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
23848 * doc/tm.texi: Regenerate.
23849
23850 2016-04-26 Jakub Jelinek <jakub@redhat.com>
23851
23852 PR bootstrap/70704
23853 * configure.ac (--enable-checking): Document extra flag, for
23854 non-release builds default to --enable-checking=yes,extra.
23855 If misc checking and extra checking, define CHECKING_P to 2 instead
23856 of 1.
23857 * common.opt (fchecking=): Add.
23858 * doc/invoke.texi (-fchecking=): Document.
23859 * doc/install.texi: Document --enable-checking changes.
23860 * configure: Regenerated.
23861 * config.in: Regenerated.
23862
23863 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23864
23865 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
23866 attribute instead of which_alternative.
23867 * config/i386/sse.md (*mov<mode>_internal): Ditto.
23868 Use EXT_REX_SSE_REG_P where appropriate.
23869
23870 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23871
23872 * config/i386/predicates.md (const0_operand): Do not match
23873 const_wide_int code.
23874 (const1_operand): Ditto.
23875
23876 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23877
23878 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
23879 for SSE constm1 operands and TARGET_AVX512VL.
23880 (*movti_internal): Ditto.
23881 (*mov<mode>_or): Use constm1_operand predicate.
23882 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
23883 for SSE vector_all_ones operands and TARGET_AVX512VL.
23884 * config/i386/predicates.md (constm1_operand): New predicate.
23885 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
23886 emission of constant -1 load.
23887
23888 2016-04-25 Jason Merrill <jason@redhat.com>
23889
23890 * gdbinit.in: Skip is-a.h.
23891
23892 * attribs.c (register_scoped_attributes): Fix logic.
23893 * attribs.h: Declare register_scoped_attributes.
23894
23895 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23896
23897 * config/rs6000/rs6000-builtin.def: Correct pasto error for
23898 stxvd2x and stxvw4x built-in functions.
23899
23900 2016-04-25 DJ Delorie <dj@redhat.com>
23901
23902 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
23903 (ashrhi3): Likewise.
23904 (lshrhi3): Likewise.
23905
23906 2016-04-25 Richard Biener <rguenther@suse.de>
23907
23908 PR tree-optimization/70780
23909 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
23910 wasn't visited yet.
23911 (compute_antic): Mark blocks with abnormal preds as visited as
23912 they have a final empty antic-in solution already.
23913
23914 2016-04-25 Michael Collison <michael.collison@linaro.org>
23915
23916 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
23917
23918 2016-04-25 Michael Collison <michael.collison@linaro.org>
23919
23920 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
23921 mode is VQI to improve mixed mode vectorization.
23922 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
23923 define_insn to match low half of signed vaddw.
23924 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
23925 define_insn to match high half of signed vaddw.
23926 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
23927 define_insn to match low half of unsigned vaddw.
23928 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
23929 define_insn to match high half of unsigned vaddw.
23930 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
23931 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23932 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
23933 for new function.
23934 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23935 * config/arm/predicates.md (vect_par_constant_high): Support
23936 big endian and simplify by calling
23937 arm_simd_check_vect_par_cnst_half
23938 (vect_par_constant_low): Likewise.
23939
23940 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23941
23942 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
23943 predicate for operand 2.
23944
23945 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
23946 H.J. Lu <hongjiu.lu@intel.com>
23947
23948 * config/i386/i386-protos.h (standard_sse_constant_p): Add
23949 machine_mode argument.
23950 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
23951 constm1_rtx operands. For VOIDmode constants, get mode from
23952 pred_mode. Check mode size if the mode is supported by ABI.
23953 (standard_sse_constant_opcode): Do not use standard_constant_p.
23954 Strictly check ABI support for all-ones operands.
23955 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
23956 immediates. Update calls to standard_sse_constant_p.
23957 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
23958 (ix86_rtx_costs): Ditto.
23959 * config/i386/i386.md (*movxi_internal_avx512f): Use
23960 nonimmediate_or_sse_const_operand instead of vector_move_operand.
23961 Use (v,BC) alternative instead of (v,C). Use register_operand
23962 checks instead of MEM_P.
23963 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
23964 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
23965 isa attribute. Use register_operand checks instead of MEM_P.
23966 (*movti_internal): Use nonimmediate_or_sse_const_operand for
23967 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
23968 alternative and corresponding sse2 isa attribute.
23969 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
23970 to standard_sse_constant_p.
23971 (FP constant splitters): Ditto.
23972 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
23973 (C): Ditto.
23974 * config/i386/predicates.md (constm1_operand): Remove.
23975 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
23976 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
23977 vector_all_ones_operand instead of constm1_operand.
23978
23979 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23980
23981 * print-rtl.c (print_rtx_insn_vec): New function.
23982 * print-rtl.h: New prototype.
23983 * store-motion.c (struct st_expr): Make avail_stores a vector.
23984 (st_expr_entry): Adjust.
23985 (free_st_expr_entry): Likewise.
23986 (print_store_motion_mems): Likewise.
23987 (find_moveable_store): Likewise.
23988 (compute_store_table): Likewise.
23989 (delete_store): Likewise.
23990 (build_store_vectors): Likewise.
23991
23992 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23993
23994 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
23995
23996 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23997
23998 * vec.h (vec_safe_contains): New function.
23999 (vec::contains): Likewise.
24000 (vec::begin): Likewise.
24001 (vec::end): Likewise.
24002
24003 2016-04-23 Jakub Jelinek <jakub@redhat.com>
24004
24005 PR sanitizer/70712
24006 * cfgexpand.c (expand_stack_vars): Fix typo.
24007
24008 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24009
24010 * system.h (list, map, set, vector): Include conditionally.
24011 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24012 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
24013 * ipa-icf.c (INCLUDE_LIST): Define.
24014 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
24015 * config/sh/sh.c (INCLUDE_VECTOR): Define.
24016 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
24017 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
24018 * cp/logic.cc (INCLUDE_LIST): Define.
24019 * fortran/trans-common.c (INCLUDE_MAP): Define.
24020
24021 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
24022
24023 * auto-profile.c: Remove <string.h> include.
24024 * ipa-icf-gimple.c: Remove <list> include.
24025 * diagnostic.c: Remove <new> include.
24026 * genmatch.c: Likewise.
24027 * pretty-print.c: Likewise.
24028 * toplev.c: Likewise
24029 * c/c-objc-common.c: Likewise.
24030 * cp/error.c: Likewise.
24031 * fortran/error.c: Likewise.
24032
24033 2016-04-22 Richard Biener <rguenther@suse.de>
24034
24035 * lto-streamer-in.c (input_ssa_names): Do not allocate
24036 GIMPLE_NOP for all SSA names.
24037 * lto-streamer-out.c (output_ssa_names): Do not output
24038 SSA names that should have been released.
24039
24040 2016-04-22 Richard Biener <rguenther@suse.de>
24041
24042 PR tree-optimization/70740
24043 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
24044 VDEF.
24045
24046 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
24047
24048 PR target/70750
24049 * config/i386/predicates.md (call_insn_operand): Replace
24050 sibcall_memory_operand with memory_operand.
24051
24052 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
24053
24054 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
24055 has_single_use() tests.
24056 (register_edge_assert_for_1): Likewise.
24057 (find_assert_locations_1): Check the liveness bitmap instead of
24058 checking has_single_use().
24059
24060 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
24061
24062 PR target/70728
24063 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
24064 Extract AVX-512BW constraint from AVX.
24065
24066 2016-04-21 Richard Biener <rguenther@suse.de>
24067
24068 PR tree-optimization/70725
24069 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
24070 for phi_convertible_by_degenerating_args.
24071 (predicate_all_scalar_phis): Handle single-argument PHIs.
24072
24073 2016-04-21 Richard Biener <rguenther@suse.de>
24074
24075 PR middle-end/70747
24076 * fold-const.c (fold_comparison): Return properly typed
24077 constant boolean.
24078
24079 2016-04-21 Bin Cheng <bin.cheng@arm.com>
24080
24081 PR tree-optimization/70715
24082 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
24083 after expanding BASE using expand_simple_operations.
24084
24085 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24086
24087 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
24088 New transformations.
24089
24090 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
24091
24092 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
24093
24094 2016-04-20 Jan Hubicka <jh@suse.cz>
24095
24096 * ipa-inline.c (can_inline_edge_p): Pass caller info to
24097 ultiimate_alias_target.
24098 (update_callee_keys): Likewise.
24099 (lookup_recursive_calls): Likewise.
24100 (speculation_useful_p): Likewise.
24101
24102 2016-04-20 Jan Hubicka <jh@suse.cz>
24103
24104 PR ipa/70018
24105 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
24106 (set_nothrow_flag_1): ... this; handle interposition correctly;
24107 recurse on aliases and thunks.
24108 (cgraph_node::set_nothrow_flag): New.
24109 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
24110 functions compiled with non-call exceptions that binds to current
24111 def.
24112 (propagate_nothrow): Be safe WRT interposition.
24113 * cgraph.h (set_nothrow_flag): Update prototype.
24114
24115 2016-04-18 Jan Hubicka <jh@suse.cz>
24116
24117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24118 max_loop_iterations_int.
24119 (tree_unswitch_outer_loop): Likewise.
24120
24121 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24122
24123 PR tree-optimization/69489
24124 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
24125 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
24126 Revise dump message.
24127 (if_convertible_bb_p): Remove check on edge count of basic block's
24128 predecessors.
24129
24130 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24131
24132 PR tree-optimization/56625
24133 PR tree-optimization/69489
24134 * tree-data-ref.h (DR_INNERMOST): New macro.
24135 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
24136 hashing struct innermost_loop_behavior.
24137 (ref_DR_map): Remove.
24138 (innermost_DR_map): New map.
24139 (baseref_DR_map): Revise comment.
24140 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
24141 to innermost_DR_map accroding to its innermost loop behavior.
24142 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
24143 to its innermost loop behavior.
24144 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
24145 Add initialization for innermost_DR_map. Record memory reference
24146 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
24147 have innermost loop behavior.
24148 (if_convertible_loop_p): Remove release for ref_DR_map. Release
24149 innermost_DR_map.
24150
24151 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
24152
24153 * config/i386/i386.md (*lea<mode>_general_1): Rename from
24154 *lea_general_1. Use explicit SWI12 mode interator.
24155 (*lea<mode>_general_2): Rename from *lea_general_2.
24156 Use explicit SWI12 mode interator.
24157 (*lea<mode>_general_3): Rename from *lea_general_3.
24158 Use explicit SWI12 mode interator.
24159 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
24160 Use explicit SWI12 mode interator.
24161 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
24162 Use explicit SWI48 mode interator.
24163
24164 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24165
24166 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
24167 Short-cut unaligned load and store cases. Handle all integer
24168 vector modes.
24169 (ix86_expand_vector_move_misalign): Short-cut unaligned load
24170 and store cases. Call ix86_avx256_split_vector_move_misalign
24171 directly without checking mode class.
24172
24173 2016-04-20 Andrew Pinski <apinski@cavium.com>
24174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24175
24176 PR target/64971
24177 * config/aarch64/aarch64.md (sibcall): Force call
24178 address to be DImode for ILP32.
24179 (sibcall_value): Likewise.
24180
24181 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
24182
24183 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
24184
24185 2016-04-20 Richard Biener <rguenther@suse.de>
24186
24187 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
24188 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
24189 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
24190 (maybe_push_res_to_seq): Adjust.
24191 * gimple-fold.c (maybe_build_generic_op): Likewise.
24192
24193 2016-04-20 Marek Polacek <polacek@redhat.com>
24194
24195 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
24196 rather than true.
24197
24198 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
24199
24200 * config/i386/sse.md (vec_unpacks_lo_hi): Always
24201 use kmovw to support AVX512F target.
24202
24203 2016-04-20 Bin Cheng <bin.cheng@arm.com>
24204
24205 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
24206
24207 2016-04-20 Marek Polacek <polacek@redhat.com>
24208
24209 PR tree-optimization/70725
24210 * tree-if-conv.c (is_false_predicate): New function.
24211 (predicate_mem_writes): Use it.
24212
24213 2016-04-20 Richard Biener <rguenther@suse.de>
24214
24215 PR tree-optimization/70726
24216 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
24217 shift amounts from a pattern stmt operand.
24218
24219 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24220
24221 PR target/70674
24222 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
24223 stack_restore_from_fpr pattern when restoring r15.
24224 (s390_optimize_prologue): Strip away the memory barrier in the
24225 parallel when trying to get rid of restore insns.
24226 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
24227 definition for loading the stack pointer from an FPR. Compared to
24228 the normal move insn this pattern includes a full memory barrier.
24229
24230 2016-04-19 Jakub Jelinek <jakub@redhat.com>
24231
24232 PR middle-end/70680
24233 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
24234 implicitly linear or lastprivate iterator on the outer context.
24235
24236 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24237
24238 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
24239 alignment check.
24240 * config/i386/i386.md (ssememalign): Removed.
24241 * config/i386/sse.md: Remove ssememalign attribute from patterns.
24242
24243 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
24244
24245 PR target/69201
24246 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
24247 const short * to __builtin_ia32_loaddquhi512_mask.
24248 (_mm512_maskz_loadu_epi16): Likewise.
24249 (_mm512_mask_storeu_epi16): Pass short * to
24250 __builtin_ia32_storedquhi512_mask.
24251 (_mm512_mask_loadu_epi8): Pass const char * to
24252 __builtin_ia32_loaddquqi512_mask.
24253 (_mm512_maskz_loadu_epi8): Likewise.
24254 (_mm512_mask_storeu_epi8): Pass char * to
24255 __builtin_ia32_storedquqi512_mask.
24256 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
24257 const double * to __builtin_ia32_loadupd512_mask.
24258 (_mm512_mask_loadu_pd): Likewise.
24259 (_mm512_maskz_loadu_pd): Likewise.
24260 (_mm512_storeu_pd): Pass double * to
24261 __builtin_ia32_storeupd512_mask.
24262 (_mm512_mask_storeu_pd): Likewise.
24263 (_mm512_loadu_ps): Pass const float * to
24264 __builtin_ia32_loadups512_mask.
24265 (_mm512_mask_loadu_ps): Likewise.
24266 (_mm512_maskz_loadu_ps): Likewise.
24267 (_mm512_storeu_ps): Pass float * to
24268 __builtin_ia32_storeups512_mask.
24269 (_mm512_mask_storeu_ps): Likewise.
24270 (_mm512_mask_loadu_epi64): Pass const long long * to
24271 __builtin_ia32_loaddqudi512_mask.
24272 (_mm512_maskz_loadu_epi64): Likewise.
24273 (_mm512_mask_storeu_epi64): Pass long long *
24274 to __builtin_ia32_storedqudi512_mask.
24275 (_mm512_loadu_si512): Pass const int * to
24276 __builtin_ia32_loaddqusi512_mask.
24277 (_mm512_mask_loadu_epi32): Likewise.
24278 (_mm512_maskz_loadu_epi32): Likewise.
24279 (_mm512_storeu_si512): Pass int * to
24280 __builtin_ia32_storedqusi512_mask.
24281 (_mm512_mask_storeu_epi32): Likewise.
24282 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
24283 char * to __builtin_ia32_storedquqi256_mask.
24284 (_mm_mask_storeu_epi8): Likewise.
24285 (_mm256_mask_loadu_epi16): Pass const short * to
24286 __builtin_ia32_loaddquhi256_mask.
24287 (_mm256_maskz_loadu_epi16): Likewise.
24288 (_mm_mask_loadu_epi16): Pass const short * to
24289 __builtin_ia32_loaddquhi128_mask.
24290 (_mm_maskz_loadu_epi16): Likewise.
24291 (_mm256_mask_loadu_epi8): Pass const char * to
24292 __builtin_ia32_loaddquqi256_mask.
24293 (_mm256_maskz_loadu_epi8): Likewise.
24294 (_mm_mask_loadu_epi8): Pass const char * to
24295 __builtin_ia32_loaddquqi128_mask.
24296 (_mm_maskz_loadu_epi8): Likewise.
24297 (_mm256_mask_storeu_epi16): Pass short * to.
24298 __builtin_ia32_storedquhi256_mask.
24299 (_mm_mask_storeu_epi16): Pass short * to.
24300 __builtin_ia32_storedquhi128_mask.
24301 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
24302 const double * to __builtin_ia32_loadupd256_mask.
24303 (_mm256_maskz_loadu_pd): Likewise.
24304 (_mm_mask_loadu_pd): Pass onst double * to
24305 __builtin_ia32_loadupd128_mask.
24306 (_mm_maskz_loadu_pd): Likewise.
24307 (_mm256_mask_storeu_pd): Pass double * to
24308 __builtin_ia32_storeupd256_mask.
24309 (_mm_mask_storeu_pd): Pass double * to
24310 __builtin_ia32_storeupd128_mask.
24311 (_mm256_mask_loadu_ps): Pass const float * to
24312 __builtin_ia32_loadups256_mask.
24313 (_mm256_maskz_loadu_ps): Likewise.
24314 (_mm_mask_loadu_ps): Pass const float * to
24315 __builtin_ia32_loadups128_mask.
24316 (_mm_maskz_loadu_ps): Likewise.
24317 (_mm256_mask_storeu_ps): Pass float * to
24318 __builtin_ia32_storeups256_mask.
24319 (_mm_mask_storeu_ps): ass float * to
24320 __builtin_ia32_storeups128_mask.
24321 (_mm256_mask_loadu_epi64): Pass const long long * to
24322 __builtin_ia32_loaddqudi256_mask.
24323 (_mm256_maskz_loadu_epi64): Likewise.
24324 (_mm_mask_loadu_epi64): Pass const long long * to
24325 __builtin_ia32_loaddqudi128_mask.
24326 (_mm_maskz_loadu_epi64): Likewise.
24327 (_mm256_mask_storeu_epi64): Pass long long * to
24328 __builtin_ia32_storedqudi256_mask.
24329 (_mm_mask_storeu_epi64): Pass long long * to
24330 __builtin_ia32_storedqudi128_mask.
24331 (_mm256_mask_loadu_epi32): Pass const int * to
24332 __builtin_ia32_loaddqusi256_mask.
24333 (_mm256_maskz_loadu_epi32): Likewise.
24334 (_mm_mask_loadu_epi32): Pass const int * to
24335 __builtin_ia32_loaddqusi128_mask.
24336 (_mm_maskz_loadu_epi32): Likewise.
24337 (_mm256_mask_storeu_epi32): Pass int * to
24338 __builtin_ia32_storedqusi256_mask.
24339 (_mm_mask_storeu_epi32): Pass int * to
24340 __builtin_ia32_storedqusi128_mask.
24341 * config/i386/i386-builtin-types.def (PCSHORT): New.
24342 (PINT64): Likewise.
24343 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
24344 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
24345 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
24346 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
24347 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
24348 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
24349 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
24350 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
24351 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
24352 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
24353 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
24354 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
24355 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
24356 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
24357 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
24358 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
24359 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
24360 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
24361 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
24362 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
24363 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
24364 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
24365 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
24366 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
24367 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
24368 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
24369 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
24370 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
24371 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
24372 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
24373 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
24374 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
24375 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
24376 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
24377 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
24378 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
24379 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
24380 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
24381 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
24382 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
24383 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
24384 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
24385 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
24386 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
24387 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
24388 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
24389 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
24390 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
24391 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
24392 use UNSPEC_STOREU.
24393 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
24394 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
24395 load nor store.
24396 (ix86_expand_vector_move_misalign): Likewise.
24397 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
24398 to scalar function prototype for unaligned load/store builtins.
24399 (ix86_expand_special_args_builtin): Updated.
24400 * config/i386/sse.md (UNSPEC_LOADU): Removed.
24401 (UNSPEC_STOREU): Likewise.
24402 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
24403 (VI_ULOADSTORE_F_AVX512VL): Likewise.
24404 (ssescalarsize): Handle V4TI, V2TI and V1TI.
24405 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24406 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
24407 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
24408 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
24409 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
24410 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
24411 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
24412 (<avx512>_storedqu<mode>_mask): Likewise.
24413 (*sse4_2_pcmpestr_unaligned): Likewise.
24414 (*sse4_2_pcmpistr_unaligned): Likewise.
24415 (*mov<mode>_internal): Renamed to ...
24416 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
24417 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
24418 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
24419 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
24420
24421 2016-04-19 Richard Biener <rguenther@suse.de>
24422
24423 PR tree-optimization/70171
24424 * tree-ssa-phiprop.c: Include stor-layout.h.
24425 (phiprop_insert_phi): Handle the aggregate copy case.
24426 (propagate_with_phi): Likewise.
24427
24428 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
24429
24430 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
24431 instead of simplify_gen_subreg (... , 0).
24432 (ix86_delegitimize_address): Ditto.
24433 (ix86_split_divmod): Ditto.
24434 (ix86_split_copysign_const): Ditto.
24435 (ix86_split_copysign_var): Ditto.
24436 (ix86_expand_args_builtin): Ditto.
24437 (ix86_expand_round_builtin): Ditto.
24438 (ix86_expand_special_args_builtin): Ditto.
24439 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
24440 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
24441 (udivmodqi4): Ditto.
24442 (absneg splitters): Ditto.
24443 (*jcc_bt<mode>_1): Ditto.
24444
24445 2016-04-19 Richard Biener <rguenther@suse.de>
24446
24447 PR tree-optimization/70724
24448 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
24449 restoring out from ...
24450 (free_scc_vn): ... here.
24451 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
24452 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
24453 tail merging.
24454 (pass_fre::execute): Restore SSA info.
24455
24456 2016-04-19 Richard Biener <rguenther@suse.de>
24457
24458 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
24459 * gimple-walk.c (walk_gimple_op): Initialize it.
24460 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
24461 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
24462 remapping SSA names of defs.
24463 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
24464 adjustment.
24465
24466 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
24467
24468 PR middle-end/70689
24469 * lra-constraints.c (equiv_substition_p): New.
24470 (process_alt_operands): Use it.
24471 (swap_operands): Swap it.
24472 (curr_insn_transform): Update it.
24473
24474 2016-04-18 Michael Matz <matz@suse.de>
24475
24476 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
24477 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
24478 * tree-core.h (tree_type_common.align): Use bit-field.
24479 (tree_type_common.spare): New.
24480 (tree_decl_common.off_align): Make smaller.
24481 (tree_decl_common.align): Use bit-field.
24482
24483 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
24484 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
24485 (scan_sharing_clauses): Ditto.
24486 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24487 (omp_finish_file): Ditto.
24488 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
24489 (layout_decl): Ditto.
24490 (relayout_decl): Ditto.
24491 (finalize_record_size): Use SET_TYPE_ALIGN.
24492 (finalize_type_size): Ditto.
24493 (finish_builtin_struct): Ditto.
24494 (layout_type): Ditto.
24495 (initialize_sizetypes): Ditto.
24496 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
24497 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
24498 (lookup_field_for_decl): Use SET_DECL_ALIGN.
24499 (get_chain_field): Ditto.
24500 (get_trampoline_type): Ditto.
24501 (get_nl_goto_field): Ditto.
24502 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24503 SET_DECL_ALIGN.
24504 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
24505 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
24506 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
24507 (build_qualified_type): Use SET_TYPE_ALIGN.
24508 (build_aligned_type, build_range_type_1): Ditto.
24509 (build_atomic_base): Ditto.
24510 (build_common_tree_nodes): Ditto.
24511 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
24512 (expand_one_stack_var_at): Ditto.
24513 * coverage.c (build_var): Use SET_DECL_ALIGN.
24514 * except.c (init_eh): Ditto.
24515 * function.c (assign_parm_setup_block): Ditto.
24516 * symtab.c (increase_alignment_1): Ditto.
24517 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
24518 * tree-vect-stmts.c (ensure_base_align): Ditto.
24519 * varasm.c (align_variable): Ditto.
24520 (assemble_variable): Ditto.
24521 (build_constant_desc): Ditto.
24522 (output_constant_def_contents): Ditto.
24523
24524 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
24525 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
24526 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
24527 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
24528 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
24529
24530 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
24531
24532 PR target/70708
24533 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
24534 replace %vmovsd with "%vmovq".
24535 (vec_concatv2df): Likewise.
24536
24537 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
24538
24539 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
24540 (*vec_extractv2si_0): Ditto.
24541 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
24542 (zero_extended_scalar_load_operand splitters): Ditto.
24543 (vec_extract splitters): Ditto.
24544 (*vec_extractv4si_0_zext): Ditto.
24545 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
24546 and lowpart_subreg.
24547 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
24548 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
24549 (*sse4_1_extractps): Use lowpart_subreg.
24550 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
24551
24552 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24553
24554 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
24555 gld requirements.
24556 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
24557 Mention Solaris 11 packaging changes.
24558 Update gas and gld requirements.
24559 Remove reference to pre-Solaris 10 bug.
24560 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
24561 systems and bugs.
24562 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
24563 with cc.
24564
24565 2016-04-17 Jan Hubicka <jh@suse.cz>
24566
24567 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
24568 max_loop_iterations_int.
24569
24570 2016-04-18 Richard Biener <rguenther@suse.de>
24571
24572 PR tree-optimization/43434
24573 * tree-ssa-structalias.c (struct vls_data): New.
24574 (visit_loadstore): Handle all pointer-based accesses.
24575 (compute_dependence_clique): Compute a bitmap of restrict tags
24576 assigned bases and pass it to visit_loadstore.
24577
24578 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
24579
24580 PR target/70711
24581 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
24582 armv8.1-a and armv8.1-a+crc.
24583
24584 2016-04-18 Richard Biener <rguenther@suse.de>
24585
24586 PR tree-optimization/70701
24587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
24588 references after translating through a memcpy.
24589
24590 2016-04-18 Richard Biener <rguenther@suse.de>
24591
24592 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
24593 (compute_antic): ... here. For partial antic use regular
24594 postorder and scrap iteration.
24595 (compute_partial_antic_aux): Remove unused return value.
24596 (init_pre): Do not allocate postorder.
24597 (fini_pre): Do not free postorder.
24598
24599 2016-04-18 Richard Biener <rguenther@suse.de>
24600
24601 PR middle-end/37870
24602 * expmed.c (extract_bit_field_1): Remove broken case
24603 using a wider MODE_INT mode.
24604
24605 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
24606
24607 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
24608 unless compiling with at least GCC-4.8.
24609
24610 2016-04-17 Jan Hubicka <jh@suse.cz>
24611
24612 PR bootstrap/70706
24613 * graphite.c (graphite_finalize): Update call to
24614 tree_estimate_probability.
24615 * predict.h (tree_estimate_probability): Update prototype.
24616
24617 2016-04-17 Jan Hubicka <jh@suse.cz>
24618
24619 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
24620 (tree_estimate_probability): Likewise.
24621 (pass_profile::execute): Update.
24622 (report_predictor_hitrates): New function.
24623 * profile.c (compute_branch_probabilities): Use it.
24624 * predict.h (report_predictor_hitrates): Declare.
24625
24626 2016-04-17 Jan Hubicka <jh@suse.cz>
24627
24628 PR ipa/70018
24629 * cgraph.h (cgraph_node::set_const_flag,
24630 cgraph_node::set_pure_flag): Update prototype to return bool;
24631 update comment.
24632 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
24633 of interposable symbol are interposable, too.
24634 (cgraph_set_const_flag_1): Rename to ...
24635 (set_const_flag_1): ... this one; change to self recursive function
24636 instead of call_for_symbol_thunks_and_aliases. Handle correctly
24637 clearnig the flag in all variants and also virtual thunks of const
24638 functions are pure; track if any change was done.
24639 (cgraph_node::set_const_flag): Update.
24640 (struct set_pure_flag_info): New struct.
24641 (cgraph_set_pure_flag_1): Rename to ...
24642 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
24643 rather than pointer encoded flags; track if any changes was done;
24644 handle correctly clearning flag and setting flag of aliases already
24645 declared const.
24646 (cgraph_node::set_pure_flag): Update.
24647 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
24648
24649 2016-04-17 Tom de Vries <tom@codesourcery.com>
24650
24651 PR other/70433
24652 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
24653 backslash in label.
24654
24655 2016-04-17 Tom de Vries <tom@codesourcery.com>
24656
24657 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
24658 '{}<> ' as escape-for-record.
24659
24660 2016-04-17 Tom de Vries <tom@codesourcery.com>
24661
24662 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
24663 structure.
24664
24665 2016-04-17 Tom de Vries <tom@codesourcery.com>
24666
24667 PR other/70185
24668 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
24669 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
24670 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
24671 * passes.c (finish_optimization_passes): Only call
24672 finish_graph_dump_file if dfi->graph_dump_initialized.
24673 (execute_function_dump, pass_init_dump_file): Use
24674 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
24675
24676 2016-04-17 Tom de Vries <tom@codesourcery.com>
24677
24678 PR tree-optimization/70256
24679 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
24680 (debug_varmap): New function.
24681
24682 2016-04-17 Tom de Vries <tom@codesourcery.com>
24683
24684 PR other/70183
24685 * passes.c (pass_manager::register_pass): Propagate pflags.
24686
24687 2016-04-17 Tom de Vries <tom@codesourcery.com>
24688
24689 PR other/68875
24690 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
24691 * passes.c (pass_manager::pass_manager): Declare and init p_start in
24692 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
24693 check if it's equal to p_start.
24694 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
24695
24696 2016-04-15 Jan Hubicka <jh@suse.cz>
24697
24698 PR ipa/70018
24699 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
24700 function does not bind to current def.
24701 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
24702 handle conservatively calls to functions that does not need to bind
24703 to current def.
24704 (check_call): Update call of worse_state.
24705 (ignore_edge_for_nothrow): Update.
24706 (ignore_edge_for_pure_const): Likewise.
24707 (propagate_pure_const): Update calls to worse_state.
24708 (skip_function_for_local_pure_const): Reformat comments.
24709
24710 2016-04-15 Jan Hubicka <jh@suse.cz>
24711
24712 PR ipa/70018
24713 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
24714 (cgraph_node::function_symbol): Likewise.
24715 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24716 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
24717 (symtab_node::ultimate_alias_target): Add REF parameter.
24718 (symtab_node::binds_to_current_def_p): Declare.
24719 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
24720 (cgraph_node::function_symbol): Likewise.
24721 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
24722 (cgraph_node::get_availability): Likewise.
24723 (cgraph_edge::binds_to_current_def_p): New inline function.
24724 (varpool_node::get_availability): Add REF parameter.
24725 (varpool_node::ultimate_alias_target): Likewise.
24726 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
24727 (symtab_node::binds_to_current_def_p): Likewise.
24728 * varpool.c (varpool_node::get_availability): Likewise.
24729
24730 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24731
24732 PR target/70662
24733 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
24734 Fix mode size check.
24735
24736 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24737
24738 * BASE-VER: Set to 7.0.0.
24739
24740 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
24741
24742 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
24743
24744 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24745
24746 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
24747 architecture revisions.
24748
24749 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
24750
24751 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
24752 * config/i386/i386.c (ix86_using_red_zone): No longer static.
24753 * config/i386/i386.md (stack decrement to push peepholes): Guard
24754 with !x86_using_red_zone ().
24755
24756 2016-04-15 Jakub Jelinek <jakub@redhat.com>
24757
24758 PR c++/70675
24759 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
24760 to dump_generic_node.
24761 (NIY): Pass also flags to do_niy.
24762
24763 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
24764
24765 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
24766 (simd_clone_vector_of_formal_parm_types)
24767 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
24768 (simd_clone_mangle, simd_clone_create)
24769 (simd_clone_adjust_return_type, create_tmp_simd_array)
24770 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
24771 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
24772 (ipa_simd_modify_function_body, simd_clone_linear_addend)
24773 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
24774 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
24775 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
24776 * omp-simd-clone.c: ... this new file.
24777 (simd_clone_vector_of_formal_parm_types): Make it static.
24778 * Makefile.in (OBJS): Add omp-simd-clone.o.
24779
24780 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
24781
24782 PR target/70662
24783 * config/i386/sse.md: Use proper memory operand modifiers.
24784
24785
24786 2016-04-15 Richard Biener <rguenther@suse.de>
24787 Alan Modra <amodra@gmail.com>
24788
24789 PR tree-optimization/70130
24790 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
24791 when alignment stays not the same and no not use the realign
24792 scheme then.
24793
24794 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24795
24796 PR target/70669
24797 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24798 direct move handlers for KFmode. Change TFmode handlers test from
24799 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
24800
24801 2016-04-14 Jakub Jelinek <jakub@redhat.com>
24802
24803 PR c++/70594
24804 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
24805 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
24806 (inlined_polymorphic_ctor_dtor_block_p): Use it.
24807 * tree-ssa-live.c (remove_unused_scope_block_p): When
24808 in_ctor_dtor_block, avoid discarding not just BLOCKs with
24809 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
24810 block_ultimate_origin is FUNCTION_DECL.
24811 (remove_unused_locals): If current_function_decl is
24812 polymorphic_ctor_dtor_p, pass initial true to
24813 remove_unused_scope_block_p' is_ctor_dtor_block.
24814
24815 2016-04-14 Martin Sebor <msebor@redhat.com>
24816
24817 PR c++/69517
24818 PR c++/70019
24819 PR c++/70588
24820 * doc/extend.texi (Variable Length): Revert.
24821
24822 2016-04-14 Marek Polacek <polacek@redhat.com>
24823 Jan Hubicka <hubicka@ucw.cz>
24824
24825 PR c++/70029
24826 * tree.c (verify_type): Disable the canonical type of main variant
24827 check.
24828
24829 2016-04-14 Jason Merrill <jason@redhat.com>
24830
24831 * cfgexpand.c, expr.c: Revert previous change.
24832
24833 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
24834
24835 PR middle-end/70643
24836 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
24837 when building a mem ref for the incoming reduction variable.
24838
24839 2016-04-14 Richard Biener <rguenther@suse.de>
24840
24841 PR tree-optimization/70614
24842 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
24843 loop if the evolution dropped to chrec_dont_know.
24844 (interpret_condition_phi): Likewise.
24845
24846 2016-04-14 Richard Biener <rguenther@suse.de>
24847
24848 PR tree-optimization/70623
24849 * tree-ssa-pre.c (changed_blocks): Make global ...
24850 (compute_antic): ... local here. Move and fix worklist
24851 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
24852 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
24853 worklist handling, dump when ANTIC_IN changed.
24854 (compute_partial_antic_aux): Remove worklist handling.
24855 (init_pre): Do not compute post dominators. Add a comment about
24856 the CFG order chosen.
24857 (fini_pre): Do not free post dominators.
24858
24859 2016-04-13 Martin Sebor <msebor@redhat.com>
24860
24861 PR c++/69517
24862 PR c++/70019
24863 PR c++/70588
24864 * doc/extend.texi (Variable Length): Document C++ specifics.
24865
24866 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24867
24868 PR c++/70641
24869 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
24870 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
24871 eh edges have been purged.
24872
24873 PR c++/70594
24874 * tree-sra.c (create_access_replacement,
24875 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
24876 gets fancy name.
24877 * tree-pretty-print.c (dump_fancy_name): New function.
24878 (dump_decl_name, dump_generic_node): Use it.
24879
24880 2016-04-13 Jason Merrill <jason@redhat.com>
24881
24882 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
24883 * expr.c (expand_expr_real_1): Likewise.
24884
24885 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
24886
24887 * config/i386/i386.md (kunpckhi): Swap operands.
24888 (kunpcksi): Likewise.
24889 (kunpckdi): Likewise.
24890 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
24891 (vec_pack_trunc_<mode>): Likewise.
24892
24893 2016-04-13 Jakub Jelinek <jakub@redhat.com>
24894
24895 PR debug/70628
24896 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
24897
24898 PR middle-end/70633
24899 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
24900 gimplification turns some element into non-constant.
24901
24902 PR debug/70628
24903 * rtl.h (convert_memory_address_addr_space_1): New prototype.
24904 * explow.c (convert_memory_address_addr_space_1): No longer static,
24905 add NO_EMIT argument and don't call convert_modes if true, pass
24906 it down recursively, remove break after return.
24907 (convert_memory_address_addr_space): Adjust caller.
24908 * simplify-rtx.c (simplify_unary_operation_1): Call
24909 convert_memory_address_addr_space_1 instead of convert_memory_address,
24910 if it returns NULL, don't simplify.
24911
24912 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
24913
24914 PR target/70630
24915 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
24916
24917 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24918
24919 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24920 Bump the upper SIMDLEN limits, so that if the return type or
24921 characteristic type if the return type is void can be passed in
24922 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
24923 allowed.
24924
24925 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24926
24927 PR target/70640
24928 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
24929 Do not use "=" constraint on an input constraint.
24930 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
24931 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
24932 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
24933 generates (neg (abs ...)) instead of (abs ...).
24934
24935 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24936
24937 PR rtl-optimization/70596
24938 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
24939 just invalidate LRA data and reset them. Adjust dump wording.
24940
24941 2016-04-12 Martin Liska <mliska@suse.cz>
24942
24943 Revert
24944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24945
24946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24947 estimates here.
24948 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24949 max_loop_iterations_int.
24950 (tree_unswitch_outer_loop): Likewise.
24951 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24952 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24953
24954 2016-04-12 Tom de Vries <tom@codesourcery.com>
24955
24956 PR tree-optimization/68756
24957 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
24958 instead of new_name.
24959
24960 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24961
24962 PR tree-optimization/70602
24963 * tree-sra.c (generate_subtree_copies): Don't write anything into
24964 constant pool decls.
24965
24966 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
24967 regardless whether there are depend clauses or not.
24968
24969 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24970
24971 PR target/70381
24972 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
24973 target attribute and pragma from changing the -mfloat128
24974 and -mfloat128-hardware options.
24975
24976 * doc/extend.texi (Additional Floating Types): Document PowerPC
24977 __float128 restrictions.
24978
24979 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24980
24981 PR target/70133
24982 * config/aarch64/driver-aarch64.c
24983 (aarch64_get_extension_string_for_isa_flags): New.
24984 (arch_extension): Rename to...
24985 (aarch64_arch_extension): ...This.
24986 (ext_to_feat_string): Rename to...
24987 (aarch64_extensions): ...This.
24988 (aarch64_core_data): Keep track of architecture extension flags.
24989 (cpu_data): Rename to...
24990 (aarch64_cpu_data): ...This.
24991 (aarch64_arch_driver_info): Keep track of architecture extension
24992 flags.
24993 (get_arch_name_from_id): Rename to...
24994 (get_arch_from_id): ...This, change return type.
24995 (host_detect_local_cpu): Update and reformat for renames, handle
24996 extensions through common infrastructure.
24997
24998 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24999
25000 PR target/70133
25001 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
25002 track of a canonical flag name.
25003 (all_extensions): Likewise.
25004 (arch_to_arch_name): Also track extension flags enabled by the arch.
25005 (all_architectures): Likewise.
25006 (aarch64_parse_extension): Move to here.
25007 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
25008 rework.
25009 (aarch64_rewrite_selected_cpu): Update for above change.
25010 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
25011 are handled, such that the single explicit value enabled by an
25012 extension is kept seperate from the implicit values it also enables.
25013 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
25014 to here.
25015 (aarch64_parse_extension): New.
25016 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
25017 here to config/aarch64/aarch64-protos.h.
25018 (aarch64_parse_extension): Move from here to
25019 common/config/aarch64/aarch64-common.c.
25020 (aarch64_option_print): Update.
25021 (aarch64_declare_function_name): Likewise.
25022 (aarch64_start_file): Likewise.
25023 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
25024 the canonical flag for extensions.
25025 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
25026 flags.
25027
25028 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
25029
25030 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
25031 AARCH64_FL_CRC.
25032
25033 2016-04-09 Tom de Vries <tom@codesourcery.com>
25034
25035 PR tree-optimization/68953
25036 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
25037 first to last subscript.
25038
25039 2016-04-09 Jakub Jelinek <jakub@redhat.com>
25040
25041 PR tree-optimization/70586
25042 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
25043 for any calls.
25044
25045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
25046
25047 PR lto/70289
25048 PR ipa/70348
25049 PR tree-optimization/70373
25050 PR middle-end/70533
25051 PR middle-end/70534
25052 PR middle-end/70535
25053 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
25054 clauses for acc parallel reductions as necessary. Error on those
25055 that are private.
25056 * omp-low.c (scan_sharing_clauses): Don't install variables which
25057 are used in acc parallel reductions.
25058 (lower_rec_input_clauses): Remove dead code.
25059 (lower_oacc_reductions): Add support for reference reductions.
25060 (lower_reduction_clauses): Remove dead code.
25061 (lower_omp_target): Don't remap variables appearing in acc parallel
25062 reductions.
25063 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
25064
25065 2016-04-08 Jakub Jelinek <jakub@redhat.com>
25066
25067 PR middle-end/70593
25068 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
25069 with multiple SSA_NAME defs, force the outputs other than first
25070 to be live before calling live_track_process_def on each output.
25071
25072 PR rtl-optimization/70574
25073 * fwprop.c (forward_propagate_and_simplify): Don't add
25074 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
25075 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
25076 paradoxical subregs within *loc.
25077
25078 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
25079
25080 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
25081 -ftree-parallelize-loops={0,1}.
25082 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
25083 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
25084 * config/ia64/hpux.h (LIB_SPEC): Likewise.
25085 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25086 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
25087
25088 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
25089
25090 PR sanitizer/70541
25091 * asan.c (instrument_derefs): If we get unknown location, extract it
25092 with EXPR_LOCATION.
25093 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
25094
25095 2016-04-08 Tom de Vries <tom@codesourcery.com>
25096
25097 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
25098 implicit firstprivate clause.
25099
25100 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25101
25102 PR target/70566
25103 * config/arm/thumb2.md (tst + branch-> lsls + branch
25104 peephole below *orsi_not_shiftsi_si): Require that condition
25105 register is dead after the peephole.
25106 (second peephole after the above): Likewise.
25107
25108 2016-04-08 Alan Modra <amodra@gmail.com>
25109
25110 PR target/70117
25111 * builtins.c (fold_builtin_classify): For IBM extended precision,
25112 look at just the high-order double to test for NaN.
25113 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
25114 test just the high double for Inf but both doubles for subnormal
25115 limit.
25116
25117 2016-04-07 Jakub Jelinek <jakub@redhat.com>
25118
25119 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
25120 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
25121 node->simdclone->mask_mode != VOIDmode masks.
25122 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
25123 earlier, use it instead of node->simdclone.
25124 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25125 Set clonei->mask_mode.
25126
25127 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25128
25129 PR c/70436
25130 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
25131 Pass it through to cp_parser_already_scoped_statement.
25132 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
25133 it through to cp_parser_statement.
25134 (cp_parser_statement): Pass IF_P through to
25135 cp_parser_iteration_statement.
25136 (cp_parser_pragma): Adjust call to
25137 cp_parser_iteration_statement.
25138
25139 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
25140
25141 PR c/70436
25142 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
25143 resolve a future -Wparentheses warning.
25144 * omp-low.c (scan_sharing_clauses): Likewise.
25145 * tree-parloops.c (eliminate_local_variables): Likewise.
25146
25147 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
25148
25149 PR rtl-optimization/70398
25150 * lra-constraints.c (process_address_1): Check zero scale and code
25151 for reloading with zero scale.
25152
25153 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
25154
25155 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
25156 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
25157
25158 2016-04-06 Jakub Jelinek <jakub@redhat.com>
25159
25160 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
25161 Add support for AVX512F clones, include them by default for
25162 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
25163 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
25164 up to 128.
25165
25166 PR middle-end/70550
25167 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
25168 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
25169 firstprivate clauses.
25170 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
25171 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
25172 (lower_omp_target): Set TREE_NO_WARNING for
25173 non-addressable possibly uninitialized vars which are copied into
25174 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
25175
25176 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
25177
25178 * config/pa/predicates.md (integer_store_memory_operand): Accept
25179 REG+D operands with a large offset when reload_in_progress is true.
25180 (floating_point_store_memory_operand): Likewise.
25181
25182 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25183
25184 PR c++/70336
25185 * match.pd (nested int casts): Limit to GIMPLE.
25186
25187 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
25188
25189 PR ipa/66223
25190 * ipa-devirt.c (maybe_record_node): Fix comment; use
25191 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
25192
25193 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25194
25195 PR rtl-optimization/70542
25196 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
25197 if there are any uses other than insn or debug insns.
25198
25199 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
25200 Jakub Jelinek <jakub@redhat.com>
25201
25202 PR tree-optimization/70509
25203 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
25204 Shift HOST_WIDE_INT_1U instead of 1.
25205
25206 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
25207
25208 PR tree-optimization/70509
25209 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
25210 of the vector base type for index.
25211
25212 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
25213
25214 PR target/70510
25215 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
25216
25217 2016-04-05 Richard Biener <rguenther@suse.de>
25218
25219 PR tree-optimization/70526
25220 * tree-sra.c (build_ref_for_offset): Use prev_base to
25221 extract the alias pointer type.
25222
25223 2016-04-05 Richard Biener <rguenther@suse.de>
25224
25225 * dse.c (struct store_info): Remove alias_set member.
25226 (struct read_info_type): Likewise.
25227 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
25228 spill_deleted, clear_alias_set_lookup): Remove.
25229 (get_group_info): Remove dead base == NULL_RTX case.
25230 (dse_step0): Remove initialization of removed variables.
25231 (delete_dead_store_insn): Reomve alias set dumping.
25232 (free_read_records): Remove alias_set handling.
25233 (canon_address): Remove alias_set_out parameter.
25234 (record_store): Remove spill_alias_set, it's always zero.
25235 (check_mem_read_rtx): Likewise.
25236 (dse_step2): Rename from ...
25237 (dse_step2_nospill): ... this. Adjust.
25238 (scan_stores): Rename from ...
25239 (scan_stores_nospill): ... this.
25240 (scan_reads): Rename from ...
25241 (scan_reads_nospill): ... this.
25242 (scan_stores_spill, scan_reads_spill): Remove.
25243 (dse_step3_scan): Remove for_spills argument which is always false.
25244 (dse_step3): Likewise.
25245 (dse_step5): Rename from ...
25246 (dse_step5_nospill): ... this. Remove alias_set handling.
25247 (rest_of_handle_dse): Adjust.
25248
25249 2016-04-05 Jakub Jelinek <jakub@redhat.com>
25250
25251 PR target/70525
25252 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
25253 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
25254 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
25255 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
25256
25257 2016-04-05 Richard Biener <rguenther@suse.de>
25258
25259 PR middle-end/70499
25260 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
25261 non-register type temporaries into SSA.
25262
25263 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
25264
25265 PR ipa/66223
25266 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
25267 calls when sanitizing.
25268 (possible_polymorphic_call_target_p): Fix formatting.
25269
25270 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25271 Jakub Jelinek <jakub@redhat.com>
25272
25273 PR middle-end/70457
25274 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
25275 to ensure a call statement is compatible with a built-in's
25276 prototype.
25277 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
25278 Likewise.
25279
25280 2016-04-04 Richard Biener <rguenther@suse.de>
25281
25282 PR rtl-optimization/70484
25283 * rtl.h (canon_output_dependence): Declare.
25284 * alias.c (canon_output_dependence): New function.
25285 * dse.c (record_store): Use canon_output_dependence rather
25286 than canon_true_dependence.
25287
25288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25289
25290 PR ipa/68881
25291 * cgraph.h (symtab_node::copy_visibility_from): New function.
25292 * symtab.c (symtab_node::copy_visibility_from): New function.
25293 * ipa-visibility.c (optimize_weakref): New function.
25294 (function_and_variable_visibility): Use it.
25295
25296 2016-04-04 Martin Liska <mliska@suse.cz>
25297
25298 PR hsa/70402
25299 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
25300 value that is really in range handled by SBR instruction.
25301 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
25302 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
25303 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
25304
25305 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
25306
25307 PR target/70416
25308 PR target/67391
25309 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
25310 set, but not for SP_REG operands.
25311
25312 2016-04-02 Martin Sebor <msebor@redhat.com>
25313
25314 PR c++/67376
25315 * fold-const.c (maybe_nonzero_address): New function.
25316 (fold_comparison): Call it. Fold equality and relational
25317 expressions involving null pointers.
25318 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
25319
25320 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
25321
25322 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
25323 the "Y" constraint (scalar FP 0.0 immediate).
25324
25325 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
25326 Add the "const_double" to the list of operand constraints.
25327
25328 2016-04-01 Jakub Jelinek <jakub@redhat.com>
25329
25330 PR rtl-optimization/70467
25331 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
25332 If low word of the last operand is 0, just emit addition/subtraction
25333 for the high word.
25334
25335 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25336
25337 PR target/70404
25338 * config/s390/s390.c (s390_expand_insv): Check for everything
25339 constant instead of just VOIDmode stuff.
25340
25341 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25342
25343 PR target/70496
25344 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
25345
25346 2016-04-01 Nathan Sidwell <nathan@acm.org>
25347
25348 * tree.def (TRY_CATCH_EXPR): Correct documentation.
25349
25350 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
25351
25352 PR rtl-optimization/70461
25353 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
25354 is necessary.
25355
25356 2016-03-31 Martin Liska <mliska@suse.cz>
25357
25358 PR hsa/70399
25359 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
25360 a tree value or an immediate integer value to a buffer
25361 that is eventually copied to a BRIG section.
25362 (emit_immediate_operand): Call the function here.
25363 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
25364 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
25365 of class' fields that are removed.
25366 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
25367 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
25368 m_brig_repr_size fields.
25369
25370 2016-03-31 Martin Liska <mliska@suse.cz>
25371
25372 PR hsa/70391
25373 * hsa-gen.c (hsa_function_representation::update_dominance): New
25374 function.
25375 (convert_addr_to_flat_segment): Likewise.
25376 (gen_hsa_memory_set): New alignment argument.
25377 (gen_hsa_ctor_assignment): Likewise.
25378 (gen_hsa_insns_for_single_assignment): Provide alignment
25379 to gen_hsa_ctor_assignment.
25380 (gen_hsa_insns_for_direct_call): Add new argument.
25381 (expand_lhs_of_string_op): New function.
25382 (expand_string_operation_builtin): Likewise.
25383 (expand_memory_copy): New function.
25384 (expand_memory_set): New function.
25385 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
25386 (convert_switch_statements): Change signature.
25387 (generate_hsa): Use a return value of the function.
25388 (pass_gen_hsail::execute): Do not call
25389 convert_switch_statements here.
25390 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
25391 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
25392 (hsa_function_representation::update_dominance): New function.
25393
25394 2016-03-31 Martin Liska <mliska@suse.cz>
25395
25396 PR hsa/70391
25397 * hsa-brig.c (emit_directive_variable): Emit alignment
25398 according to hsa_symbol::m_align.
25399 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
25400 (dump_hsa_symbol): Dump alignment of HSA symbols.
25401 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
25402 (gen_hsa_addr_with_align): New function.
25403 (hsa_bitmemref_alignment): Use newly added function.
25404 (gen_hsa_insns_for_load): Likewise.
25405 (gen_hsa_insns_for_store): Likewise.
25406 (gen_hsa_memory_copy): New argument added.
25407 (gen_hsa_insns_for_single_assignment): Respect
25408 alignment for assignments processed via gen_hsa_memory_copy.
25409 (gen_hsa_insns_for_direct_call): Likewise.
25410 (gen_hsa_insns_for_return): Likewise.
25411 (gen_function_def_parameters): Set default alignment.
25412 * hsa.c (hsa_object_alignment): New function.
25413 (hsa_byte_alignment): Pasted function.
25414 * hsa.h (hsa_symbol::m_align): New field.
25415
25416 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25417
25418 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
25419 scratch field for goto case.
25420
25421 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
25422
25423 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
25424
25425 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
25426
25427 PR target/70442
25428 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
25429 (scalar_chain::convert_insn): Call convert_op for reg
25430 moves to handle undefined registers.
25431
25432 2016-03-31 Nathan Sidwell <nathan@acm.org>
25433
25434 PR c++/70393
25435 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
25436 Assert we don't want to move backwards.
25437
25438 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
25439
25440 PR target/70453
25441 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
25442
25443 2016-03-31 Jakub Jelinek <jakub@redhat.com>
25444
25445 PR rtl-optimization/70460
25446 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
25447 with operand from REG_LABEL_OPERAND, instead substitute
25448 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
25449 Don't do anything for REG_NON_LOCAL_GOTO jumps.
25450
25451 2016-03-31 Martin Liska <mliska@suse.cz>
25452
25453 * passes.c (execute_one_pass): Do not call
25454 todo_after for a discarded function.
25455
25456 2016-03-31 Bin Cheng <bin.cheng@arm.com>
25457
25458 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
25459 (no_cost, infinite_cost): Initialize the new field.
25460 (get_computation_cost_at): Record setup cost.
25461 (determine_use_iv_cost_address): Skip cost computation for sub
25462 uses if we can estimate it without losing accuracy.
25463
25464 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
25465
25466 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
25467 estimates here.
25468 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25469 max_loop_iterations_int.
25470 (tree_unswitch_outer_loop): Likewise.
25471 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
25472 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
25473
25474 2016-03-30 Richard Biener <rguenther@suse.de>
25475
25476 PR middle-end/70450
25477 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
25478
25479 2016-03-30 Jakub Jelinek <jakub@redhat.com>
25480
25481 PR target/70421
25482 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
25483 in gen_blendm expander.
25484
25485 2016-03-30 Nick Clifton <nickc@redhat.com>
25486
25487 PR target/62254
25488 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
25489 case where we are already provided with an SImode SUBREG.
25490
25491 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
25492
25493 PR target/70439
25494 * config/i386/i386.c (ix86_expand_epilogue): Properly check
25495 conflict between DRAP register and __builtin_eh_return.
25496
25497 2016-03-30 Michael Matz <matz@suse.de>
25498 Richard Biener <rguenther@suse.de>
25499
25500 PR ipa/12392
25501 * ipa-polymorphic-call.c (struct type_change_info): Change
25502 speculative to an unsigned allowing to limit the work we do.
25503 (csftc_abort_walking_p): New inline function..
25504 (check_stmt_for_type_change): Limit the number of may-defs
25505 skipped for speculative devirtualization to
25506 max-speculative-devirt-maydefs.
25507 * params.def (max-speculative-devirt-maydefs): New param.
25508 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
25509
25510 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
25511
25512 PR target/63890
25513 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
25514 and TARGET_MACHO.
25515
25516 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
25517
25518 PR tree-optimization/59124
25519 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
25520 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
25521
25522 2016-03-29 Jeff Law <law@redhat.com>
25523
25524 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
25525
25526 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25527
25528 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
25529 to HOST_WIDE_INT.
25530
25531 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
25532
25533 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
25534 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
25535 gcrt0.o if linking dynamically.
25536
25537 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25538
25539 PR ipa/70283
25540 * ipa-devirt.c (methods_equal_p): New function.
25541 (compare_virtual_tables): Use it.
25542 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
25543 * cgraphclones.c (clone_function_name_1): Use
25544 symbol_table::symbol_suffix_separator.
25545 * coverage.c (build_var): Likewise.
25546 * symtab.c (symbol_table::symbol_suffix_separator): New.
25547
25548 2016-03-29 Jakub Jelinek <jakub@redhat.com>
25549
25550 PR rtl-optimization/70429
25551 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
25552 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
25553 mode != result_mode.
25554
25555 PR c++/70353
25556 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
25557
25558 PR tree-optimization/70405
25559 * ssa-iterators.h (num_imm_uses): Add missing braces.
25560
25561 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
25562
25563 PR rtl-optimization/68695
25564 * ira-color.c (allocno_copy_cost_saving): New.
25565 (improve_allocation): Use it.
25566
25567 2016-03-29 Richard Henderson <rth@redhat.com>
25568
25569 PR middle-end/70355
25570 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
25571
25572 2016-03-29 Richard Biener <rguenther@suse.de>
25573
25574 PR middle-end/70424
25575 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
25576 use alignment returned by get_pointer_alignment_1 if it is
25577 bigger than BITS_PER_UNIT.
25578 * builtins.c (get_pointer_alignment_1): Do not return true
25579 for alignment extracted from SSA info.
25580
25581 2016-03-28 James Bowman <james.bowman@ftdichip.com>
25582
25583 * config/ft32/ft32.opt (mnodiv): New.
25584 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
25585 * doc/invoke.texi (FT32 Options -mnodiv): New.
25586
25587 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
25588
25589 PR target/70406
25590 * config/i386/i386.md (define_split, andn): Fix modes.
25591
25592 2016-03-26 Richard Biener <rguenther@suse.de>
25593 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25594
25595 PR ipa/70366
25596 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
25597 instead of
25598 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
25599 as 2nd argument to cl_optimization_restore().
25600
25601 2016-03-25 Richard Henderson <rth@redhat.com>
25602
25603 PR target/70120
25604 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
25605 * config/aarch64/aarch64-protos.h: Declare it.
25606 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
25607
25608 2016-03-25 Alan Modra <amodra@gmail.com>
25609
25610 PR target/70052
25611 * config/rs6000/constraints.md (j): Simplify.
25612 * config/rs6000/predicates.md (easy_fp_constant): Exclude
25613 decimal float 0.D.
25614 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
25615 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
25616 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
25617 in all constraint alternatives.
25618 (movtd_64bit_nodm): Delete "j" constraint alternative.
25619
25620 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25621
25622 * tree-ssa-propagate.c: Enhance docs for
25623 SSA_PROP_NOT_INTERESTING.
25624
25625 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
25626
25627 * doc/extend.texi: Fix typo in documentation to pure attribute.
25628
25629 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
25630
25631 PR target/70319
25632 * config/pa/pa.md (bswapdi2): Use a scratch register.
25633
25634 2016-03-24 Richard Henderson <rth@redhat.com>
25635
25636 PR middle-end/69845
25637 * fold-const.c (extract_muldiv_1): Correct test for multiplication
25638 overflow.
25639
25640 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
25641
25642 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
25643 using ix86_expand_binary_operator instead of gen_andsi3.
25644
25645 2016-03-24 Richard Biener <rguenther@suse.de>
25646
25647 PR tree-optimization/70396
25648 * tree-vect-stmts.c (vectorizable_comparison): Use
25649 get_vectype_for_scalar_type.
25650
25651 2016-03-24 Richard Biener <rguenther@suse.de>
25652
25653 PR middle-end/70370
25654 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
25655 with register bases.
25656
25657 2016-03-24 Richard Biener <rguenther@suse.de>
25658
25659 PR tree-optimization/70372
25660 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
25661 build_all_ones_cst to also handle vector types correctly.
25662
25663 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25664
25665 PR target/70381
25666 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
25667 -mfloat128 here.
25668
25669 2016-03-23 Marek Polacek <polacek@redhat.com>
25670
25671 PR c++/69884
25672 * doc/invoke.texi: Document -Wignored-attributes.
25673
25674 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25675
25676 PR tree-optimization/69042
25677 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
25678 parameter from 30 to 40.
25679
25680 2016-03-23 Bin Cheng <bin.cheng@arm.com>
25681
25682 PR tree-optimization/69042
25683 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
25684 for use with constant offset stripped in base.
25685
25686 2016-03-23 Richard Biener <rguenther@suse.de>
25687
25688 PR middle-end/70251
25689 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
25690 mode compatibility check.
25691 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25692
25693 2016-03-23 Jeff Law <law@redhat.com>
25694
25695 PR tree-optimization/64058
25696 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
25697 CONFLICT_COUNT.
25698 (struct ssa_conflicts): Move up earlier in the file.
25699 (conflicts_, var_map_): New static variables.
25700 (initialize_conflict_count): New function to initialize the
25701 CONFLICT_COUNT field for each conflict pair.
25702 (compare_pairs): Lazily initialize the conflict count and use it
25703 as the first tie-breaker.
25704 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
25705 and wipe conflicts_ and map_ around the call to qsort. Remove
25706 special case for 2 coalesce pairs.
25707 * bitmap.c (bitmap_count_unique_bits): New function.
25708 (bitmap_count_bits_in_word): New function, extracted from
25709 bitmap_count_bits.
25710 (bitmap_count_bits): Use bitmap_count_bits_in_word.
25711 * bitmap.h (bitmap_count_unique_bits): Declare it.
25712
25713 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
25714
25715 PR target/69917
25716 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
25717 transparent alias chain for decl assembler name.
25718 * config/sol2.c (solaris_assemble_visibility): Likewise.
25719
25720 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25721
25722 * config/arm/arm1020e.md (1020call_op): Reduce reservation
25723 duration.
25724 (v10_fdivs): Likewise.
25725 (v10_fdivd): Likewise.
25726
25727 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25728
25729 PR driver/70132
25730 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
25731 to not call fclose twice on file.
25732
25733 2016-03-23 Jakub Jelinek <jakub@redhat.com>
25734
25735 PR tree-optimization/70354
25736 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25737 oprnd0 is wider than oprnd1 and there is a cast from the wider
25738 type to oprnd1, mask it with the mask of the narrower type.
25739
25740 PR target/70321
25741 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
25742 Optimize TARGET_STV splitters, if high or low word of last argument
25743 is 0 or -1.
25744
25745 2016-03-22 Jeff Law <law@redhat.com>
25746
25747 PR target/70232
25748 tree-ssa-threadbackward.c
25749 (fsm_find_control_statement_thread_paths): Correctly distinguish
25750 between old style jump threads vs FSM jump threads.
25751
25752 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
25753
25754 PR target/70302
25755 * config/i386/i386.c (scalar_chain::convert_op): Support
25756 uninitialized register usage case.
25757
25758 2016-03-22 Richard Biener <rguenther@suse.de>
25759
25760 PR middle-end/70251
25761 * genmatch.c (gen_transform): Adjust last parameter to a three-state
25762 int...
25763 (capture::gen_transform): ... to change behavior when substituting
25764 a condition into cond or not-cond expr context.
25765 (dt_simplify::gen_1): Adjust.
25766 * gimple-match-head.c: Include gimplify.h for unshare_expr.
25767 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
25768 last change and instead change to
25769 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
25770 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25771
25772 2016-03-22 Anthony Green <green@moxielogic.com>
25773
25774 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
25775 issue for moxiebox targets.
25776 (CC1PLUS_SPEC): Ditto.
25777
25778 2016-03-22 Richard Biener <rguenther@suse.de>
25779
25780 PR middle-end/70333
25781 * fold-const.c (extract_muldiv_1): Properly perform multiplication
25782 in the wide type.
25783
25784 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25785
25786 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
25787
25788 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
25789
25790 PR target/70325
25791 * config/i386/i386.c (def_builtin): Handle
25792 OPTION_MASK_ISA_AVX512VL to be and-ed with other
25793 bits.
25794 (const struct builtin_description bdesc_special_args[]):
25795 Remove duplicate ISA bits.
25796
25797 2016-03-22 Jakub Jelinek <jakub@redhat.com>
25798
25799 PR target/70329
25800 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
25801 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
25802 in a way that works also for AVX512BW.
25803
25804 PR target/70300
25805 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
25806 instead of source if operands[1] is xmm16 and above and
25807 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
25808 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
25809
25810 PR c++/70295
25811 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
25812 on assign if (*from_p) is a comparison, set it to
25813 TREE_NO_WARNING (*from_p).
25814
25815 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25816
25817 PR middle-end/70326
25818 * lra.c (restore_scratches): Ignore deleted insns.
25819
25820 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
25821 Jakub Jelinek <jakub@redhat.com>
25822
25823 PR tree-optimization/70317
25824 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
25825 to HONOR_NANS.
25826
25827 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
25828
25829 PR target/70327
25830 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
25831 of ix86_expand_move.
25832 (movoi): Ditto.
25833 (movti): Use general_operand for operand 1 predicate.
25834
25835 2016-03-21 Martin Liska <mliska@suse.cz>
25836
25837 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
25838 insns.
25839 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
25840
25841 2016-03-21 Martin Liska <mliska@suse.cz>
25842
25843 PR ipa/70306
25844 * ipa-icf.c (sem_function::parse): Skip static
25845 constructors and destructors.
25846
25847 2016-03-21 Jakub Jelinek <jakub@redhat.com>
25848
25849 PR target/70296
25850 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
25851 function-like macro, peek following token(s) if it is followed
25852 by CPP_OPEN_PAREN token with optional padding in between, and
25853 if not, don't treat it like a macro.
25854
25855 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
25856 Alexander Monakov <amonakov@ispras.ru>
25857
25858 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
25859 for the stabs debug format.
25860
25861 2016-03-21 Richard Biener <rguenther@suse.de>
25862
25863 PR tree-optimization/70310
25864 * tree-vect-generic.c (expand_vector_condition): Fold the built
25865 condition.
25866
25867 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
25868
25869 PR target/70293
25870 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
25871 Block third alternative for AVX-512VL target,
25872
25873 2016-03-21 Martin Liska <mliska@suse.cz>
25874
25875 PR hsa/70234
25876 * hsa-brig.c (emit_function_directives): Mark unemitted
25877 global variables for emission.
25878 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
25879 (get_symbol_for_decl): Likewise.
25880 * hsa.h (struct hsa_symbol): New flag.
25881
25882 2016-03-21 Richard Biener <rguenther@suse.de>
25883
25884 PR tree-optimization/70288
25885 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
25886 we do not estimate unsimplified all-constant conditionals or
25887 switches as optimized away.
25888
25889 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
25890
25891 PR rtl-optimization/69102
25892 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
25893 when we have a readonly dependency context.
25894
25895 2016-03-18 Jeff Law <law@redhat.com>
25896
25897 PR rtl-optimization/70263
25898 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
25899 (update_equiv_regs): When trying to move a store to after the insn
25900 that sets the source of the store, make sure the store occurs after
25901 the insn that sets the source of the store. When successful note
25902 the REG_EQUIV note created in the dump file.
25903
25904 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
25905 Bernd Schmidt <bschmidt@redhat.com>
25906
25907 * doc/extend.texi: Document more potential problems with basic asms.
25908
25909 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
25910
25911 PR rtl-optimization/70278
25912 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
25913 VOIDmode.
25914
25915 2016-03-18 Jason Merrill <jason@redhat.com>
25916
25917 * calls.c (load_register_parameters): Fix zero size sibcall logic.
25918
25919 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25920
25921 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
25922 values to 128b regs.
25923
25924 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25925
25926 PR tree-optimization/70252
25927 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
25928 boolean vector has a proper number of elements.
25929 (supportable_narrowing_operation): Likewise.
25930
25931 2016-03-18 Tom de Vries <tom@codesourcery.com>
25932
25933 PR ipa/70269
25934 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
25935
25936 2016-03-18 Jakub Jelinek <jakub@redhat.com>
25937
25938 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
25939 instead of replace_rtx for DEBUG_INSNs.
25940
25941 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25942
25943 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
25944 load type reservations.
25945
25946 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
25947
25948 PR target/70188
25949 * config/pa/constraints.md: Revert 2015-02-13 change. Use
25950 define_constraint for "Q" and "T" constraints.
25951
25952 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
25953
25954 Tweak the pipeline model for Exynos M1
25955
25956 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
25957 model.
25958
25959 2016-03-17 David Malcolm <dmalcolm@redhat.com>
25960
25961 PR c/70264
25962 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
25963 where one or both locations aren't within a line_map.
25964
25965 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
25966
25967 PR driver/70192
25968 * opts.c (finish_options): Don't set flag_pie to the default if
25969 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
25970 if it is -1.
25971
25972 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
25973
25974 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
25975 true as ALL_REGS argument to replace_rtx.
25976
25977 2016-03-17 Richard Biener <rguenther@suse.de>
25978
25979 PR debug/70271
25980 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
25981 last.
25982
25983 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25984
25985 PR target/70245
25986 * rtl.h (replace_rtx): Add ALL_REGS argument.
25987 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
25988 equality and assert mode is the same, instead of just rtx pointer
25989 equality.
25990 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
25991 true as ALL_REGS argument to replace_rtx.
25992
25993 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
25994
25995 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
25996 for boolean vector with vector mode only.
25997 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25998
25999 2016-03-17 Nick Clifton <nickc@redhat.com>
26000
26001 PR target/70162
26002 * config/rx/rx.c (rx_print_integer): Print negative constants in
26003 decimal.
26004
26005 2016-03-17 Jakub Jelinek <jakub@redhat.com>
26006
26007 PR target/70261
26008 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
26009
26010 2016-03-16 Richard Henderson <rth@redhat.com>
26011 Richard Biener <rguenth@suse.de>
26012
26013 PR middle-end/70240
26014 PR middle-end/68215
26015 PR tree-opt/68714
26016 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
26017 first operand as is_gimple_condexpr.
26018
26019 PR middle-end/70240
26020 PR middle-end/68215
26021 Revert r231575
26022 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
26023 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
26024 Do not gimplify the result.
26025 (do_unop): Adjust call to tree_vec_extract.
26026 (do_binop): Likewise.
26027 (do_compare): Likewise.
26028 (do_plus_minus): Likewise.
26029 (do_negate): Likewise.
26030 (expand_vector_condition): Likewise.
26031 (do_cond): Likewise.
26032
26033 2016-03-16 Richard Henderson <rth@redhat.com>
26034
26035 PR target/70048
26036 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
26037 (aarch64_classify_address): Use it.
26038 (aarch64_legitimize_address): Force all subexpressions of PLUS
26039 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
26040
26041 2016-03-16 Jakub Jelinek <jakub@redhat.com>
26042 Richard Biener <rguenth@suse.de>
26043
26044 PR target/70245
26045 * rtlanal.c (replace_rtx): For REG, if from is a REG,
26046 return to even if only REGNO is equal, and assert
26047 mode is the same.
26048
26049 2016-03-11 Jeff Law <law@redhat.com>
26050
26051 PR rtl-optimization/70224
26052 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
26053
26054 2016-03-16 Richard Henderson <rth@redhat.com>
26055
26056 PR middle-end/70199
26057 * function.h (struct function): Add has_forced_label_in_static.
26058 * gimplify.c (force_labels_r): Set it.
26059 * lto-streamer-in.c (input_struct_function_base): Read it.
26060 * lto-streamer-out.c (output_struct_function_base): Write it.
26061 * tree-inline.c (has_label_address_in_static_1): Remove.
26062 (copy_forbidden): Remove fndecl parameter; test
26063 has_forced_label_in_static.
26064 (inline_forbidden_p): Update call to copy_forbidden.
26065 (tree_versionable_function_p): Likewise.
26066 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
26067 (chkp_versioning): Likewise.
26068 * tree-inline.h (copy_forbidden): Update decl.
26069
26070 2016-03-16 Marek Polacek <polacek@redhat.com>
26071
26072 PR c/70093
26073 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
26074 function being thunked if the result type doesn't have fixed size.
26075 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
26076 doesn't have fixed size.
26077
26078 2016-03-16 Bin Cheng <bin.cheng@arm.com>
26079
26080 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
26081 reporting malformed loop nest.
26082
26083 2016-03-16 Tom de Vries <tom@codesourcery.com>
26084
26085 PR lto/70187
26086 * ipa-devirt.c (possible_polymorphic_call_targets): Move
26087 nodes.length () == 1 test to before first nodes[0] access.
26088
26089 2016-03-16 Tom de Vries <tom@codesourcery.com>
26090
26091 PR tree-optimization/68715
26092 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
26093 single_pred_p test.
26094
26095 2016-03-16 Tom de Vries <tom@codesourcery.com>
26096
26097 PR tree-optimization/68809
26098 * graphite-scop-detection.c (same_close_phi_node): Test if result types
26099 are the same.
26100
26101 2016-03-16 Carlos O'Donell <carlos@redhat.com>
26102 Sandra Loosemore <sandra@codesourcery.com>
26103
26104 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
26105 on leaf attribute. Mention ELF interposition problems.
26106
26107 2016-03-16 Alan Modra <amodra@gmail.com>
26108
26109 PR rtl-optimization/69195
26110 PR rtl-optimization/47992
26111 * ira.c (indirect_jump_optimize): Ignore artificial defs.
26112 Add comments.
26113
26114 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
26115
26116 PR bootstrap/69513
26117 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
26118
26119 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26120
26121 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
26122
26123 2016-03-15 Jakub Jelinek <jakub@redhat.com>
26124
26125 PR rtl-optimization/70222
26126 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
26127 optimization if mode is different from result_mode, queue up masking
26128 of the result in outer_op. Formatting fix.
26129
26130 PR middle-end/70239
26131 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
26132 of safe_grow.
26133
26134 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26135
26136 PR rtl-optimization/69032
26137 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
26138 looping backwards over basic block insns.
26139
26140 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26141
26142 PR target/66660
26143 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
26144 to non-speculative when propagating trap bits.
26145
26146 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26147
26148 PR rtl-optimization/63384
26149 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
26150 DEBUG_INSN_P insns.
26151
26152 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
26153
26154 PR target/64411
26155 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
26156 factored out from ...
26157 (sched_analyze_insn): ... here.
26158 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
26159 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
26160 get_implicit_reg_pending_clobbers in it.
26161 (setup_id_reg_sets): Use setup_id_implicit_regs.
26162 (deps_init_id): Ditto.
26163
26164 2016-03-15 Tom de Vries <tom@codesourcery.com>
26165
26166 PR ipa/70161
26167 * cgraph.c (cgraph_node::get_body): Save, reset and restore
26168 dump_file_name.
26169 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
26170 execute_function_dump.
26171 (execute_one_pass): Don't dump function if it will be dumped after ipa
26172 transform.
26173
26174 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
26175
26176 * genrecog.c (match_pattern_2): If pred is NULL don't call
26177 safe_predicate_mode on it.
26178
26179 2016-03-14 Jakub Jelinek <jakub@redhat.com>
26180
26181 PR middle-end/70219
26182 * lra-constraints.c (delete_move_and_clobber): Change assertion
26183 to also allow dregno == 0.
26184
26185 2016-03-14 Richard Henderson <rth@redhat.com>
26186
26187 PR tree-opt/68714
26188 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
26189 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
26190 (reassociate_bb): Use optimize_vec_cond_expr; avoid
26191 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
26192 on vectors.
26193
26194 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
26195
26196 PR target/70083
26197 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
26198 regs.
26199 (lra_create_live_ranges_1): initialize hard register biggest_mode to
26200 VOIDmode.
26201 * lra-constraints.c (split_reg): For hard regs, try to find the
26202 biggest single-register mode used in the function.
26203
26204 2016-03-14 Richard Biener <rguenther@suse.de>
26205
26206 PR tree-optimization/56365
26207 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
26208 constants to compare against.
26209
26210 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
26211
26212 PR target/70098
26213 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
26214 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
26215 (define_split for the GPR case): Use int_reg_operand instead of
26216 gpc_reg_operand for the output.
26217
26218 2016-03-14 Tom de Vries <tom@codesourcery.com>
26219
26220 PR tree-optimization/70045
26221 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
26222 create_empty_if_region_on_edge argument.
26223
26224 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
26225
26226 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
26227 (STACK_CHECK_PROTECT): Likewise.
26228 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26229 (STACK_CHECK_PROTECT): Likewise.
26230 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
26231 (STACK_CHECK_PROTECT): Likewise.
26232 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
26233 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
26234 (STACK_CHECK_PROTECT): Likewise.
26235
26236 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
26237
26238 PR rtl-optimization/69307
26239 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
26240 registers in modes that span more than one register.
26241
26242 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
26243
26244 PR target/69614
26245 * lra-constraints.c (delete_move_and_clobber): New.
26246 (remove_inheritance_pseudos): Use it.
26247
26248 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
26249
26250 PR ada/70017
26251 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
26252 the libcall is LCT_THROW.
26253 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
26254 for the checking routine.
26255
26256 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26257
26258 PR target/70131
26259 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
26260 optimization if we have direct move.
26261 (roundu32<mode>2_fprs): Likewise.
26262
26263 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
26264
26265 PR target/70123
26266 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
26267 be rematerialized.
26268 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
26269 Arguments swapped. All callers changed. Take reg_renumber into
26270 account, and Calculate and compare register ranges for hard regs.
26271
26272 2016-03-11 Jeff Law <law@redhat.com>
26273
26274 PR tree-optimization/70190
26275 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26276 Handle cases where we can not extract the taken edge, even though we
26277 found a constant value.
26278
26279 PR tree-optimization/64058
26280 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
26281 (num_coalesce_pairs): Move up earlier in file.
26282 (find_coalesce_pair): Initialize the INDEX field for each pair
26283 discovered.
26284 (compare_pairs): No longer sort on the elements in each pair.
26285 Instead break ties with the index of the coalesce pair.
26286
26287 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26288
26289 PR target/70002
26290 * config/aarch64/aarch64-protos.h
26291 (aarch64_save_restore_target_globals): New prototype.
26292 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
26293 Call the above when popping pragma.
26294 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
26295 New function.
26296 (aarch64_set_current_function): Rewrite using the above.
26297
26298 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26299
26300 PR tree-optimization/70177
26301 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
26302 (extract_ops_from_tree): ... this. In the 2 argument
26303 overload remove _1 suffix.
26304 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
26305 (extract_ops_from_tree): ... this.
26306 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
26307 Adjust callers.
26308 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
26309 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
26310 extract_ops_from_tree instead of 2 operand one.
26311
26312 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
26313
26314 PR tree-optimization/70013
26315 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
26316 for constant-pool entries.
26317
26318 2016-03-11 Jakub Jelinek <jakub@redhat.com>
26319
26320 PR rtl-optimization/70174
26321 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
26322 followed by gen_lowpart on force_reg instead of just gen_lowpart.
26323
26324 PR tree-optimization/70169
26325 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
26326 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
26327 for unknown codes.
26328
26329 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26330 Jakub Jelinek <jakub@redhat.com>
26331
26332 PR target/70160
26333 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
26334 of uninitialized values.
26335
26336 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26337
26338 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
26339 define_expand.
26340 ("*trunctddd2"): New pattern definition.
26341 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
26342 TD->DD truncation.
26343
26344 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26345
26346 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
26347 definitions for BFP and DFP rounding modes.
26348 ("fixuns_truncdddi2", "fixuns_trunctddi2")
26349 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
26350 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
26351 ("fix_trunctf<mode>2"): Use the new constants instead of magic
26352 numbers.
26353
26354 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26355
26356 * config/s390/constraints.md: Adjust comment.
26357 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
26358 s390_decompose_addrstyle_without_index.
26359 * config/s390/predicates.md (shift_count_or_setmem_operand):
26360 Rename to setmem_operand.
26361 * config/s390/s390-protos.h
26362 (s390_decompose_shift_count): Rename to
26363 s390_decompose_addrstyle_without_index.
26364 * config/s390/s390.c (s390_decompose_shift_count)
26365 (s390_mem_constraint, print_shift_count_operand)
26366 (print_operand_address, print_operand): Rename
26367 s390_decompose_shift_count to
26368 s390_decompose_addrstyle_without_index and rename
26369 print_shift_count_operand to print_addrstyle_operand troughout the
26370 file.
26371 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
26372 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
26373 Rename shift_count_or_setmem_operand to setmem_operand.
26374 * config/s390/vx-builtins.md ("vec_insert<mode>")
26375 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
26376 nonmemory_operand.
26377
26378 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26379
26380 PR target/70168
26381 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
26382 Handle overlapping retval and newval.
26383
26384 2016-03-10 Nick Clifton <nickc@redhat.com>
26385
26386 PR target/7044
26387 * config/aarch64/aarch64.c
26388 (aarch64_override_options_after_change_1): When forcing
26389 flag_omit_frame_pointer to be true, use a special value that can
26390 be detected if this function is called again, thus preventing
26391 flag_omit_leaf_frame_pointer from being forced to be false.
26392
26393 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26394
26395 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
26396 Set x_flag_omit_leaf_frame_pointer when handling
26397 -momit-leaf-frame-pointer.
26398
26399 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26400
26401 PR lto/69589
26402 * cgraph.c (cgraph_node::dump): Dump split_part and
26403 indirect_call_target.
26404 * cgraph.h (cgraph_node): Add indirect_call_target flag.
26405 * ipa.c (has_addr_references_p): Cleanup.
26406 (is_indirect_call_target_p): New.
26407 (walk_polymorphic_call_targets): Do not mark virtuals that may be
26408 called indirectly as local.
26409 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
26410
26411 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26412
26413 PR ipa/69630
26414 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26415 on cxa_pure_virtual.
26416
26417 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26418
26419 PR lto/69589
26420 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
26421
26422 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
26423
26424 PR lto/69589
26425 * tree.c (need_assembler_name_p): Only record main variant type names.
26426
26427 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26428
26429 PR target/70113.
26430 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
26431 Always define to 0 or 1.
26432 (TARGET_FIX_ERR_A53_843419): New macro.
26433 * config/aarch64/aarch64-elf-raw.h
26434 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
26435 * config/aarch64/aarch64-linux.h: Likewise.
26436 * config/aarch64/aarch64.c
26437 (aarch64_override_options_after_change_1): Do not default
26438 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
26439 843419 is on.
26440 (aarch64_attributes): Handle fix-cortex-a53-843419.
26441 (aarch64_can_inline_p): Likewise.
26442 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
26443
26444 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
26445 Jakub Jelinek <jakub@redhat.com>
26446
26447 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
26448 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
26449 DECL_COMMONS if flag_unconstrained_commons is set.
26450 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26451 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
26452 (funconstrained-commons): Document.
26453
26454 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
26455
26456 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
26457 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
26458
26459 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
26460
26461 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
26462 has a proper number of elements.
26463
26464 2016-03-10 Alan Modra <amodra@gmail.com>
26465
26466 PR rtl-optimization/69195
26467 PR rtl-optimization/47992
26468 * ira.c (recorded_label_ref): Delete.
26469 (update_equiv_regs): Return void.
26470 (indirect_jump_optimize): New function.
26471 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
26472 before regstat_compute_ri. Don't rebuild_jump_labels here.
26473 Delete update_regstat.
26474
26475 2016-03-10 Richard Biener <rguenther@suse.de>
26476
26477 PR tree-optimization/70128
26478 * tree-ssa-structalias.c (set_uids_in_ptset): Set
26479 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
26480
26481 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26482
26483 PR tree-optimization/70152
26484 * tree-sra.c (replace_removed_params_ssa_names): Copy over
26485 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
26486
26487 PR target/70086
26488 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
26489 instead of gen_sse2_loadlpd.
26490 * config/i386/sse.md (*vec_concatv2df): Rename to...
26491 (vec_concatv2df): ... this.
26492
26493 PR tree-optimization/70127
26494 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
26495
26496 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26497
26498 PR c/68473
26499 PR c++/70105
26500 * diagnostic-show-locus.c (compatible_locations_p): New function.
26501 (layout::layout): Sanitize ranges using compatible_locations_p.
26502
26503 2016-03-09 David Malcolm <dmalcolm@redhat.com>
26504
26505 PR c/68473
26506 PR c++/70105
26507 * diagnostic-show-locus.c (layout_range::layout_range): Replace
26508 location_range param with three const expanded_locations * and a
26509 bool.
26510 (layout::layout): Replace call to
26511 rich_location::lazily_expand_location with get_expanded_location.
26512 Extract the range and perform location expansion here, passing
26513 the results to the layout_range ctor.
26514 * diagnostic.c (source_range::debug): Delete.
26515 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
26516 of rich_location::get_expanded_location.
26517 * gcc-rich-location.c (get_range_for_expr): Delete.
26518 (gcc_rich_location::add_expr): Reimplement to avoid the
26519 rich_location::add_range overload that took a location_range,
26520 passing a location_t instead.
26521
26522 2016-03-09 Richard Biener <rguenther@suse.de>
26523 Jakub Jelinek <jakub@redhat.com>
26524
26525 PR tree-optimization/70138
26526 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
26527 Also skip vect_double_reduction_def.
26528
26529 2016-03-09 Jakub Jelinek <jakub@redhat.com>
26530
26531 PR target/70049
26532 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
26533 if the operand is "m".
26534
26535 2016-03-09 Nathan Sidwell <nathan@acm.org>
26536
26537 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
26538
26539 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26540
26541 * config/i386/i386.c (processor_target_table): Fix cost table
26542 intialization order for znver1.
26543
26544 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26545
26546 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
26547 - becuase -> because.
26548 * ipa-reference.c (ignore_module_statics): Likewise.
26549 * cgraph.c (cgraph_node::get_body): Likewise.
26550 * ipa-inline.c (early_inliner): Likewise.
26551 * ipa-devirt.c (types_same_for_odr): Likewise.
26552 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
26553 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
26554
26555 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26556
26557 * tree-ssa-math-opts.c: Fix typo in comment.
26558
26559 2016-03-08 Jakub Jelinek <jakub@redhat.com>
26560
26561 PR target/70110
26562 * config/i386/i386.c (scalar_chain::make_vector_copies,
26563 scalar_chain::convert_reg): Call end_sequence in between
26564 get_insns and emit_conversion_insns rather than after both
26565 calls.
26566
26567 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
26568
26569 PR target/70064
26570 * config/i386/i386.h (machine_function): Add
26571 pc_thunk_call_expanded flag.
26572 (ix86_pc_thunk_call_expanded): New define.
26573 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
26574 (*set_got): Rename insn pattern from set_got.
26575 (*set_got_labelled): Rename inst pattern from set_got_labelled.
26576 * config/i386/i386.c (ix86_compute_frame_layout): Use
26577 ix86_pc_thunk_call_expanded to prevent red-zone.
26578
26579 2016-03-07 Martin Jambor <mjambor@suse.cz>
26580
26581 * hsa.h (hsa_get_ctor_statements): Declare.
26582 (hsa_get_dtor_statements): Likewise.
26583 (hsa_get_kernel_dispatch_type): Likewise.
26584 * hsa.c (hsa_get_ctor_statements): New function.
26585 (hsa_get_dtor_statements): Likewise.
26586 (hsa_get_kernel_dispatch_type): Likewise.
26587 * hsa-brig.c (hsa_cdtor_statements): Removed.
26588 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
26589 hsa_get_dtor_statements.
26590 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
26591 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
26592
26593 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
26594
26595 * config/arm/arm-cores.def (cortex-r8): New.
26596 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
26597 * config/arm/arm-tune.md: Likewise.
26598 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
26599
26600 2016-03-07 Martin Sebor <msebor@redhat.com>
26601
26602 PR rtl-optimization/19705
26603 * doc/invoke.texi (Options That Control Optimization): Clarify
26604 -fno-branch-count-reg.
26605
26606 2016-02-26 Richard Biener <rguenther@suse.de>
26607 Jeff Law <law@redhat.com>
26608
26609 PR tree-optimization/69740
26610 * cfghooks.c (remove_edge): Request loop fixups if we delete
26611 an edge that might turn an irreducible loop into a natural
26612 loop.
26613 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
26614 Move after definition of loops_state_clear.
26615
26616 2016-03-07 Bin Cheng <bin.cheng@arm.com>
26617
26618 PR rtl-optimization/69052
26619 * rtlanal.c (commutative_operand_precedence): Set higher precedence
26620 to CONST_WIDE_INT.
26621
26622 2016-03-07 Tom de Vries <tom@codesourcery.com>
26623
26624 PR tree-optimization/70116
26625 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
26626 is_tm_ending stmts and ubsan/asan internal functions.
26627 (find_duplicate): Use it. Don't test is_tm_ending here.
26628
26629 2016-03-07 Richard Biener <rguenther@suse.de>
26630
26631 PR tree-optimization/70115
26632 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
26633 (propagate_constants_for_unrolling): Use replace_uses_by.
26634
26635 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
26636
26637 PR middle-end/69916
26638 * omp-low.c (struct oacc_loop): Add ifns.
26639 (new_oacc_loop_raw): Initialize it.
26640 (finish_oacc_loop): Clear mask & flags if no ifns.
26641 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
26642 (oacc_loop_xform_loop): Add ifns arg & adjust.
26643 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
26644
26645 2016-03-07 Richard Henderson <rth@redhat.com>
26646
26647 PR rtl-opt/70061
26648 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
26649 (insert_value_copy_on_edge): Likewise.
26650
26651 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26652
26653 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
26654
26655 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26656
26657 PR target/62281
26658 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
26659
26660 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26661
26662 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
26663
26664 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
26665
26666 Fix sseimul type attribute.
26667 * config/i386/znver1.md
26668 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
26669 znver1_sseimul_avx256_load) : Fix the type attribute.
26670 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
26671 pipe usage and latency.
26672
26673 2016-03-05 Jakub Jelinek <jakub@redhat.com>
26674
26675 PR c++/70084
26676 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
26677 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
26678 to the right type.
26679
26680 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26681
26682 PR c/69973
26683 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
26684
26685 PR rtl-optimization/69941
26686 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
26687 the reg share its mode.
26688
26689 2016-03-04 Jeff Law <law@redhat.com>
26690
26691 PR tree-optimization/69196
26692 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26693 If the both SSA_NAMEs are anonymous, then consider them unassociated
26694 and include the PHI in the statement count.
26695
26696 2016-03-05 Tom de Vries <tom@codesourcery.com>
26697
26698 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
26699 construct in oacc routine. Check for oacc region in oacc routine.
26700
26701 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26702
26703 PR target/70062
26704 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
26705 2016-02-22 changes, instead don't recurse if RECUR is already true.
26706 Don't change *dynamic_check if RECUR. Adjust recursive caller
26707 to pass true to the new argument.
26708 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
26709
26710 PR target/70059
26711 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
26712 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
26713 fixes.
26714 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
26715
26716 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
26717
26718 PR rtl-optimization/57676
26719 * lra-assigns.c (lra_assign): Guard test for maximum iterations
26720 with flag_checking.
26721
26722 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
26723
26724 * tree-vect-patterns.c (search_type_for_mask): Handle
26725 comparison of booleans.
26726
26727 2016-03-04 Jakub Jelinek <jakub@redhat.com>
26728
26729 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
26730 Fix @xref usage.
26731
26732 PR debug/69947
26733 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
26734 all other ops that have dw_val_class_die_ref operands,
26735 and DW_OP_GNU_entry_value.
26736
26737 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26738
26739 PR rtl-optimization/69904
26740 * config/arm/arm.c (arm_cannot_copy_insn_p):
26741 Return true for load-exclusive instructions.
26742
26743 2016-03-03 Jakub Jelinek <jakub@redhat.com>
26744
26745 PR target/70021
26746 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
26747 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
26748 the pattern no matter if it is used just by non-pattern, pattern
26749 or mix thereof.
26750 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
26751 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
26752 oprnd1 def_stmt is in pattern, don't look through it.
26753
26754 2016-03-03 Marek Polacek <polacek@redhat.com>
26755
26756 PR middle-end/70050
26757 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
26758
26759 2016-03-03 Martin Liska <mliska@suse.cz>
26760
26761 PR tree-optimization/70043
26762 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
26763 previous statement if we see a debug statement.
26764
26765 2016-03-03 Richard Biener <rguenther@suse.de>
26766
26767 PR tree-optimization/55936
26768 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
26769 parameter and guard unsafe equivalence use.
26770 (vrp_evaluate_conditional_warnv_with_ops): Always use
26771 safe equivalences but not via the quadratic compare_names
26772 helper.
26773
26774 2016-03-03 Michael Collison <michael.collison@linaro.org>
26775
26776 PR target/70014
26777 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
26778 for operand 1 to s_register_operand. Change predicate for operand
26779 2 to arm_not_immediate_operand.
26780
26781 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
26782
26783 * doc/tm.texi: Regenerated.
26784
26785 2016-03-02 Richard Henderson <rth@redhat.com>
26786
26787 PR rtl-opt/67145
26788 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
26789 simplification when all args are positive non-fixed registers.
26790
26791 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26792
26793 * target.def (lra_p): Specify that new ports should use LRA.
26794
26795 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26796
26797 PR libgomp/69555
26798 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
26799 gimplify_type_sizes the type they refer to.
26800 (omp_notice_variable): Handle reference vars to VLAs.
26801 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
26802 reference to VLA decls in the second pass instead of first pass.
26803
26804 2016-03-02 Tom de Vries <tom@codesourcery.com>
26805
26806 PR tree-optimization/68659
26807 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
26808 new_expr == NULL_TREE.
26809 (get_new_name): Handle ADDR_EXPR.
26810
26811 2016-03-02 Bin Cheng <bin.cheng@arm.com>
26812
26813 PR rtl-optimization/69052
26814 * loop-invariant.c (canonicalize_address): New function.
26815 (inv_can_prop_to_addr_use): Check validity of address expression
26816 which is canonicalized by above function.
26817
26818 2016-03-02 Alan Modra <amodra@gmail.com>
26819
26820 PR ipa/69990
26821 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
26822 larger alignment.
26823
26824 2016-03-02 Jakub Jelinek <jakub@redhat.com>
26825
26826 PR target/70028
26827 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
26828 (*movhi_internal): Put mask moves from and to memory separately
26829 from moves from/to GPRs.
26830
26831 2016-03-02 Richard Biener <rguenther@suse.de>
26832
26833 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
26834 GENERIC expressions in GIMPLE.
26835
26836 2016-03-02 Richard Biener <rguenther@suse.de>
26837
26838 * config/i386/i386.c (type_natural_mode): Fix typo.
26839
26840 2016-03-02 Nick Clifton <nickc@redhat.com>
26841
26842 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
26843
26844 2016-03-02 Richard Biener <rguenther@suse.de>
26845 Uros Bizjak <ubizjak@gmail.com>
26846
26847 PR target/67278
26848 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
26849
26850 2016-03-02 Richard Biener <rguenther@suse.de>
26851
26852 PR middle-end/67278
26853 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
26854
26855 2016-03-02 Marek Polacek <polacek@redhat.com>
26856
26857 PR c/67854
26858 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
26859 "is promoted to" warning.
26860
26861 2016-03-01 DJ Delorie <dj@redhat.com>
26862
26863 * config.gcc: Deprecate mep-*.
26864
26865 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
26866
26867 PR middle-end/70025
26868 * lra-constraints.c (regno_val_use_in): New.
26869 (match_reload): Use it instead of regno_use_in.
26870
26871 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26872
26873 PR rtl-optimization/70007
26874 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
26875 references present in REG_EQUAL notes attached to non-SET patterns.
26876
26877 2016-03-01 Jeff Law <law@redhat.com>
26878
26879 PR tree-optimization/69196
26880 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26881 Appropriately clamp the number of statements to copy when the
26882 thread path does not traverse a loop backedge.
26883
26884 PR tree-optimization/69196
26885 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
26886 Do count some PHIs in the thread path against the insn count. Decrease
26887 final statement count by one as the control statement in the last
26888 block will get removed. Remove special cased code for handling PHIs
26889 in the last block.
26890
26891 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
26892
26893 PR target/70027
26894 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
26895 asm dialect alternatives to explicit GOTPCREL calls.
26896
26897 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
26898
26899 PR ada/70017
26900 * ira.c (do_reload): Issue warning for generic stack checking here...
26901 * reload1.c (reload): ...instead of here and streamline it.
26902
26903 2016-03-01 Nick Clifton <nickc@redhat.com>
26904
26905 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
26906
26907 2016-03-01 Richard Biener <rguenther@suse.de>
26908
26909 PR tree-optimization/69983
26910 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
26911 types and fall back to operand_equal_p.
26912
26913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26914
26915 Revert
26916 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26917
26918 * config/s390/constraints.md ("jm8"): New constraint.
26919 * config/s390/predicates.md ("const_int_8bitset_operand"): New
26920 predicate.
26921 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
26922 into ...
26923 ("*setmem_long<setmem_and>"): New pattern.
26924 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
26925 into ...
26926 ("*setmem_long_31z<setmem_and>"): New pattern.
26927 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
26928 New substitution rules with the required attributes.
26929
26930
26931 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26932
26933 Revert
26934 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26935
26936 * gensupport.c (process_substs_on_one_elem): Split loop to
26937 complete mark_operands_used_in_match_dup on all expressions in the
26938 vector first.
26939 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26940 and remove function.
26941
26942 2016-03-01 Richard Biener <rguenther@suse.de>
26943
26944 PR middle-end/70022
26945 * fold-const.c (fold_indirect_ref_1): Fix range checking for
26946 vector BIT_FIELD_REF extract.
26947
26948 2016-03-01 Richard Biener <rguenther@suse.de>
26949
26950 PR tree-optimization/69994
26951 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
26952
26953 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
26954
26955 PR tree-optimization/69956
26956 * tree-vect-stmts.c (supportable_widening_operation): Support
26957 multi-step conversion of boolean vectors.
26958 (supportable_narrowing_operation): Likewise.
26959
26960 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26961
26962 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
26963 anymore.
26964
26965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26966
26967 * config/s390/subst.md (DSI_VI): New mode iterator.
26968 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
26969 * config/s390/vector.md ("vec_set<mode>"): Move expander before
26970 the insn definition.
26971 ("*vec_set<mode>"): Change predicate and add alternative to
26972 support only either register or const_int operands as element
26973 selector.
26974 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
26975 operands.
26976 ("vec_extract<mode>"): New expander.
26977 ("*vec_extract<mode>"): New insn definition supporting reg and
26978 const_int element selectors.
26979 ("*vec_extract<mode>_plus"): New insn definition supporting
26980 reg+const_int element selectors.
26981 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
26982 following expander+insn definition.
26983 ("<vec_shifts_name><mode>3"): New expander.
26984 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
26985
26986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26987
26988 * config/s390/s390.md ("*tabort_1"): Change predicate to
26989 nonmemory_operand. Add a second alternative to cover
26990 register as well as const int operands.
26991 ("*tabort_1_plus"): New pattern definition.
26992
26993 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26994
26995 * config/s390/s390.md ("*ashrdi3_cc_31")
26996 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
26997 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
26998 Merge insn definitions into ...
26999 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27000 New pattern definition.
27001 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
27002 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
27003 ("*ashr<mode>3_and"): Merge insn definitions into ...
27004 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
27005 New pattern definition.
27006 * config/s390/subst.md ("addr_style_op_cc_subst")
27007 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
27008 substitutions patterns plus attributes.
27009 Add ashiftrt to SUBST iterator.
27010
27011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27012
27013 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
27014 op2 to nonmemory_operand.
27015 ("*<shift>di3_31", "*<shift>di3_31_and"):
27016 Merge into single pattern definition ...
27017 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
27018 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
27019 pattern definition ...
27020 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
27021 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
27022 iterator.
27023
27024 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27025
27026 * config/s390/predicates.md (const_int_6bitset_operand): New
27027 predicate.
27028 * config/s390/s390.md: Include subst.md.
27029 ("rotl<mode>3"): New expander.
27030 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
27031 ...
27032 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
27033 * config/s390/subst.md: New file.
27034
27035 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27036
27037 * config/s390/s390.md ("op_type", "atype", "length" attributes):
27038 Remove RRR type. It doesn't really exist.
27039 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
27040 attributes.
27041 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
27042 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
27043 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
27044 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
27045 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
27046 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
27047 `enabled' attribute.
27048
27049 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27050
27051 * gensupport.c (process_substs_on_one_elem): Split loop to
27052 complete mark_operands_used_in_match_dup on all expressions in the
27053 vector first.
27054 (adjust_operands_numbers): Inline into process_substs_on_one_elem
27055 and remove function.
27056
27057 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27058
27059 PR target/69706
27060 * config/sparc/sparc.c (NWORDS_UP): Rename to...
27061 (CEIL_NWORDS): ...this. Use CEIL macro.
27062 (compute_fp_layout): Adjust to above renaming.
27063 (function_arg_union_value): Likewise.
27064 (sparc_arg_partial_bytes): Likewise.
27065 (sparc_function_arg_advance): Likewise.
27066
27067 2016-02-29 Jeff Law <law@redhat.com>
27068
27069 PR tree-optimization/70005
27070 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
27071 where an object with a boolean range is compared against a value
27072 outside [0..1].
27073
27074 PR tree-optimization/69999
27075 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
27076 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
27077 loop cleanups.
27078
27079 2016-02-29 Richard Biener <rguenther@suse.de>
27080
27081 PR tree-optimization/69994
27082 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
27083 (get_unary_op): Look through nop conversions.
27084 (ops_equal_values_p): New function, look for equality diregarding
27085 nop conversions.
27086 (eliminate_plus_minus_pair): Use ops_equal_values_p
27087 (repropagate_negates): Do not use get_unary_op here.
27088
27089 2016-02-29 Martin Liska <mliska@suse.cz>
27090
27091 * system.h: Poison ENABLE_CHECKING macro.
27092
27093 2016-02-29 Martin Liska <mliska@suse.cz>
27094
27095 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
27096 is presented in dump flags.
27097 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27098 (hsa_regalloc): Likewise.
27099
27100 2016-02-19 Richard Biener <rguenther@suse.de>
27101
27102 PR tree-optimization/69980
27103 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
27104 permutation of those we need to keep.
27105
27106 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
27107
27108 PR target/69706
27109 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
27110 (NWORDS_UP): ...this
27111 (init_cumulative_args): Minor tweaks.
27112 (sparc_promote_function_mode): Likewise.
27113 (scan_record_type): Delete.
27114 (traverse_record_type): New function template.
27115 (classify_data_t): New structure type.
27116 (classify_registers): New inline function.
27117 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
27118 exhausted. Instantiate traverse_record_type on classify_registers and
27119 deal with the case of a structure passed in slot #15 with no FP field
27120 in the first word.
27121 (assign_data_t): New structure type.
27122 (compute_int_layout): New static function.
27123 (compute_fp_layout): Likewise.
27124 (count_registers): New inline function.
27125 (assign_int_registers): New static function.
27126 (assign_fp_registers): Likewise.
27127 (assign_registers): New inline function.
27128 (function_arg_record_value_1): Delete.
27129 (function_arg_record_value_2): Likewise.
27130 (function_arg_record_value_3): Likewise.
27131 (function_arg_record_value): Adjust to above changes. Instantiate
27132 traverse_record_type on count_registers to first count the number of
27133 registers to be used and then on assign_registers to assign them.
27134 (function_arg_union_value): Adjust to above renaming.
27135 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
27136 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
27137 case of a structure passed in slot #15
27138 (sparc_function_arg_advance): Likewise.
27139 (function_arg_padding): Minor tweak.
27140
27141 2016-02-29 Richard Biener <rguenther@suse.de>
27142
27143 PR tree-optimization/69720
27144 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
27145 the adjustment_def path for possibly vectorized defs.
27146 (vect_create_epilog_for_reduction): Handle vectorized initial
27147 defs properly.
27148
27149 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
27150
27151 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
27152
27153 2016-02-27 Jeff Law <law@redhat.com>
27154
27155 Revert
27156 2016-02-26 Richard Biener <rguenther@suse.de>
27157 Jeff Law <law@redhat.com>
27158
27159 PR tree-optimization/69740
27160 * cfghooks.c (remove_edge): Request loop fixups if we delete
27161 an edge that might turn an irreducible loop into a natural
27162 loop.
27163
27164 2016-02-27 Jakub Jelinek <jakub@redhat.com>
27165
27166 PR rtl-optimization/69896
27167 * tree-vect-generic.c (get_compute_type): Avoid single element
27168 vector types.
27169
27170 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
27171
27172 Rename the AArch64 tuning option and related functions to enable the
27173 Newton series for the reciprocal square root to reflect its
27174 approximative characteristic.
27175
27176 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
27177 function to "aarch64_emit_approx_rsqrt".
27178 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
27179 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
27180 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
27181 (xgene1_tunings): Likewise.
27182 (use_rsqrt_p): Likewise.
27183 (aarch64_emit_swrsqrt): Use new function name.
27184 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
27185 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
27186 text explaining this option.
27187 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
27188
27189 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27190
27191 PR target/69969
27192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27193 complain about -mallow-movmisalign without -mvsx if
27194 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
27195
27196 2016-02-26 Joel Sherrill <joel@rtems.org>
27197
27198 * config.gcc: Add x86_64-*-rtems*.
27199 * config/i386/rtems-64.h: New file.
27200
27201 2016-02-26 Joel Sherrill <joel@rtems.org>
27202
27203 * config.gcc: Add aarch64-*-rtems*.
27204 * config/aarch64/rtems.h: New file.
27205
27206 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
27207
27208 PR target/69946
27209 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
27210 shift amount using %h. Add comment.
27211
27212 2016-02-26 Richard Biener <rguenther@suse.de>
27213 Jeff Law <law@redhat.com>
27214
27215 PR tree-optimization/69740
27216 * cfghooks.c (remove_edge): Request loop fixups if we delete
27217 an edge that might turn an irreducible loop into a natural
27218 loop.
27219
27220 2016-02-26 Martin Jambor <mjambor@suse.cz>
27221
27222 PR middle-end/69920
27223 * tree-sra.c (sra_modify_assign): Do not remove loads of
27224 uninitialized aggregates to SSA_NAMEs.
27225
27226 2016-02-26 Richard Henderson <rth@redhat.com>
27227
27228 PR target/69709
27229 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
27230 pseudo in case the target rtx matches the source of the left
27231 shift.
27232
27233 2016-02-26 Martin Jambor <mjambor@suse.cz>
27234
27235 PR hsa/69568
27236 * hsa.h (hsa_type_packed_p): Declare.
27237 * hsa.c (hsa_type_packed_p): New function.
27238 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
27239 loads.
27240 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
27241 * hsa-brig.c (emit_basic_insn): Likewise.
27242
27243 2016-02-26 Martin Jambor <mjambor@suse.cz>
27244
27245 pr hsa/69674
27246 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
27247 pointers.
27248 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
27249
27250 2016-02-26 Martin Jambor <mjambor@suse.cz>
27251
27252 * hsa.h (is_a_helper): New overload for hsa_op_immed for
27253 hsa_op_with_type operands.
27254 (hsa_unsigned_type_for_type): Declare.
27255 * hsa.c (hsa_unsigned_type_for_type): New function.
27256 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
27257 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
27258 the finalizer. Do not emit extra move.
27259
27260 2016-02-26 Martin Jambor <mjambor@suse.cz>
27261
27262 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
27263 atomic operations in private segment.
27264
27265 2016-02-26 Martin Jambor <mjambor@suse.cz>
27266
27267 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
27268 statements to wi->info. Also disallow omp simd constructs.
27269 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
27270 for not gridifying. Dump special string for omp_for.
27271
27272 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27273
27274 PR target/69245
27275 * config/aarch64/aarch64.c (aarch64_set_current_function):
27276 Save/restore target globals when switching to
27277 target_option_default_node.
27278
27279 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27280
27281 PR target/69613
27282 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
27283 Return 0 if !SHIFT_COUNT_TRUNCATED.
27284
27285 2016-02-26 Jakub Jelinek <jakub@redhat.com>
27286 Eric Botcazou <ebotcazou@adacore.com>
27287
27288 PR rtl-optimization/69891
27289 * dse.c (scan_insn): If we can't figure out memset arguments
27290 or they are non-constant, call clear_rhs_from_active_local_stores.
27291
27292 2016-02-26 Martin Liska <mliska@suse.cz>
27293
27294 * doc/extend.texi: Mention clog10, clog10f an clog10l
27295 in Builtins section.
27296
27297 2016-02-26 Martin Liska <mliska@suse.cz>
27298
27299 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
27300 CHECKING_P.
27301 (resolve_args_picking_1): Likewise.
27302 * dwarf2out.h (struct GTY): Likewise.
27303
27304 2016-02-26 Martin Liska <mliska@suse.cz>
27305
27306 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
27307 with flag_checking.
27308 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
27309
27310 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27311 Martin Liska <mliska@suse.cz>
27312
27313 * doc/install.texi: Mention --enable-valgrind-annotations.
27314
27315 2016-02-26 Richard Biener <rguenther@suse.de>
27316
27317 PR tree-optimization/69551
27318 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
27319 looking through aliases adjust DECL_PT_UID to refer to the
27320 ultimate alias target.
27321
27322 2016-02-25 Martin Liska <mliska@suse.cz>
27323
27324 PR middle-end/69919
27325 * alloc-pool.c (after_memory_report): New variable.
27326 * alloc-pool.h (base_pool_allocator ::release): Do not use
27327 the infrastructure if after_memory_report.
27328 * toplev.c (toplev::main): Mark after memory report.
27329
27330 2016-02-25 Richard Biener <rguenther@suse.de>
27331
27332 PR tree-optimization/48795
27333 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
27334
27335 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
27336
27337 PR driver/68463
27338 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
27339 offloading is enabled and -fopenacc or -fopenmp is specified.
27340 (CRTOFFLOADEND): Likewise.
27341 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
27342 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
27343 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
27344 (offload_objects_file_name): New static var.
27345 (tool_cleanup): Remove offload_objects_file_name file.
27346 (find_offloadbeginend): Replace with ...
27347 (find_crtoffloadtable): ... this.
27348 (run_gcc): Remove offload_argc and offload_argv.
27349 Get offload_objects_file_name from -foffload-objects=... option.
27350 Read names of object files with offload from this file, pass them to
27351 compile_images_for_offload_targets. Don't call find_offloadbeginend and
27352 don't pass offloadbegin and offloadend to the linker. Don't pass
27353 offload non-LTO files to the linker, because now they're not claimed.
27354
27355 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
27356
27357 PR ipa/69630
27358 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
27359 on builtin_unreachable.
27360
27361 2016-02-25 Jakub Jelinek <jakub@redhat.com>
27362
27363 PR rtl-optimization/69896
27364 * regcprop.c: Include cfgrtl.h.
27365 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
27366 than remembered mode, either delete it (if noop_move_p), or
27367 treat like copy_p but not noop_p instruction.
27368
27369 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27370
27371 PR debug/69705
27372 * dwarf2out.c (gen_variable_die): Work around buggy LTO
27373 - allow NULL decl for Fortran DW_TAG_common_block variables.
27374
27375 2016-02-24 Jason Merrill <jason@redhat.com>
27376
27377 * common.opt (flifetime-dse): Add -flifetime-dse=1.
27378
27379 2016-02-24 Richard Biener <rguenther@suse.de>
27380 Jakub Jelinek <jakub@redhat.com>
27381
27382 PR middle-end/69760
27383 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
27384 conditionally executed ops to well-defined overflow behavior.
27385
27386 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27387
27388 PR middle-end/69915
27389 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
27390 elements.
27391
27392 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27393
27394 PR rtl-optimization/69886
27395 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
27396 argument. Use it when checking validity of set instructions.
27397 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
27398 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
27399 callsite.
27400 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
27401 * store-motion.c (find_moveable_store): Update
27402 can_assign_to_reg_without_clobbers_p callsite.
27403
27404 2016-02-24 Richard Biener <rguenther@suse.de>
27405
27406 PR middle-end/68963
27407 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
27408 bogus check.
27409 (record_nonwrapping_iv): Do not fall back to the low/high bound
27410 for non-constant IV bases if the stmt is not always executed.
27411
27412 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27413
27414 * config/arm/arm-cores.def (cortex-a32): New entry.
27415 * config/arm/arm-tables.opt: Regenerate.
27416 * config/arm/arm-tune.md: Regenerate.
27417 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
27418 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
27419 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
27420 for -mcpu and -mtune.
27421
27422 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27423
27424 PR target/69875
27425 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
27426 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
27427 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
27428 (atomic_loaddi_1): Delete.
27429 (atomic_loaddi): Rewrite expander using the above changes.
27430
27431 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27432
27433 PR c/69918
27434 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
27435 2 to 3.
27436
27437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
27438 Richard Biener <rguenth@suse.de>
27439
27440 PR middle-end/69909
27441 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
27442 set_mem_attributes if tem is SSA_NAME which got expanded
27443 as a MEM.
27444
27445 2016-02-24 Richard Biener <rguenther@suse.de>
27446
27447 PR tree-optimization/69907
27448 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
27449 end of permutations for BB vectorization.
27450
27451 2016-02-24 Christian Bruel <christian.bruel@st.com>
27452
27453 * config/arm/arm-c.c (arm_option_override): Initialize
27454 target_option_current_node.
27455 * config/arm/arm.c (arm_pragma_target_parse): Replace
27456 build_target_option_node call by target_option_current_node.
27457 Set target_option_current_node.
27458 Fix comments.
27459
27460 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27461
27462 PR target/69810
27463 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
27464 define_insn_and_split to define_insn.
27465 (zero_extendqi<mode>2_dot2): Same.
27466 (extendqi<mode>2_dot): Same.
27467 (extendqi<mode>2_dot2): Same.
27468
27469 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27470
27471 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
27472 and add bypass for AES{D,E} and AESMC pairs.
27473 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
27474 and AESMC pairs.
27475
27476 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
27477
27478 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
27479 series for reciprocal square root in Exynos M1.
27480
27481 2016-02-23 Martin Sebor <msebor@redhat.com>
27482
27483 PR c/69759
27484 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
27485 __builtin_alloca_with_align.
27486
27487 2016-02-23 Richard Henderson <rth@redhat.com>
27488
27489 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
27490 (ix86_register_pragmas): Remove __seg_tls.
27491 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
27492 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
27493 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
27494 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
27495 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
27496 * doc/extend.texi (__seg_tls): Remove item.
27497
27498 2016-02-23 Richard Biener <rguenther@suse.de>
27499
27500 * alloc-pool.h (struct allocation_object): Make id member
27501 conditional on CHECKING_P again.
27502 (get_instance): Adjust.
27503 (base_pool_allocator): Likewise.
27504
27505 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
27506
27507 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
27508 (parallelize_loops): In OpenACC kernels mode, set n_threads to
27509 zero.
27510 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
27511 flag_openacc.
27512 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
27513
27514 2016-02-23 Richard Biener <rguenther@suse.de>
27515
27516 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
27517 * bitmap.h (struct bitmap_usage): Likewise.
27518 (bitmap_move): Declare.
27519 * bitmap.c (register_overhead): Take size_t argument.
27520 (bitmap_move): New function.
27521 * df-problems.c (df_rd_transfer_function): Use bitmap_move
27522 to properly account overhead.
27523 * tree.c (free_node): Use tree_size.
27524
27525 2016-02-23 Jakub Jelinek <jakub@redhat.com>
27526
27527 PR c++/69902
27528 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
27529 when inverting comparison.
27530
27531 PR c/69900
27532 * common.opt (Wunreachable-code): Add Warning flag.
27533
27534 2016-02-23 Mark Wielaard <mjw@redhat.com>
27535 Jakub Jelinek <jakub@redhat.com>
27536
27537 PR c/69911
27538 * cgraphunit.c (check_global_declaration): Check main_input_filename
27539 and DECL_SOURCE_FILE are not NULL.
27540
27541 2016-02-23 Martin Jambor <mjambor@suse.cz>
27542
27543 PR tree-optimization/69666
27544 * tree-sra.c (sra_modify_assign): Do not attempt to create
27545 default_def replacements for unscalarizable regions.
27546
27547 2016-02-20 Mark Wielaard <mjw@redhat.com>
27548
27549 PR c/28901
27550 * cgraphunit.c (check_global_declaration): Check level of
27551 warn_unused_const_variable and main_input_filename.
27552 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
27553 (-Wunused-variable): For C implies -Wunused-const-variable=1.
27554 (-Wunused-const-variable): Explain levels 1 and 2.
27555
27556 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27557
27558 PR target/69888
27559 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
27560 identical arguments. Formatting and spelling fixes.
27561
27562 PR target/69885
27563 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
27564 be specified.
27565
27566 PR target/69894
27567 PR target/69895
27568 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
27569 and m68k-devices.def.
27570 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
27571 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
27572
27573 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
27574
27575 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
27576 and HImode registers.
27577
27578 2016-02-22 Richard Biener <rguenther@suse.de>
27579
27580 PR tree-optimization/69882
27581 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
27582 preserve permutations present because of gaps.
27583 (vect_supported_load_permutation_p): Always continue checking
27584 permutations after vect_attempt_slp_rearrange_stmts.
27585
27586 2016-02-22 Bin Cheng <bin.cheng@arm.com>
27587
27588 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
27589 min_profitable_estimate, rather than min_profitable_iters.
27590
27591 2016-02-22 Jakub Jelinek <jakub@redhat.com>
27592
27593 PR target/69885
27594 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
27595 SImode for last match_operand.
27596
27597 2016-02-22 Martin Liska <mliska@suse.cz>
27598
27599 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
27600 return bitsize - 1 as the return value.
27601
27602 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
27603
27604 PR target/69806
27605 PR target/54089
27606 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
27607 Handle negative shift counts.
27608 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
27609 force_reg on the shift constant.
27610 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
27611 (lshrsi3_d): Handle negative shift counts.
27612
27613 2016-02-22 Richard Biener <rguenther@suse.de>
27614 Tom de Vries <tom@codesourcery.com>
27615
27616 * graph.c: Include dumpfile.h.
27617 (print_graph_cfg): Split into three overloads.
27618 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
27619
27620 2016-02-22 Tom de Vries <tom@codesourcery.com>
27621
27622 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
27623 dump-fn.
27624
27625 2016-02-22 Richard Biener <rguenther@suse.de>
27626
27627 PR ipa/37448
27628 * ipa-inline-transform.c (inline_call): When not updating
27629 overall summaries adjust self size by the growth estimate.
27630 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
27631 hash-set, do not update overall summaries here. Renamed from ...
27632 (inline_to_all_callers): ... this which is now wrapping the
27633 above and performing delayed overall summary update.
27634 (early_inline_small_functions): Delay updating of the overall
27635 summary.
27636
27637 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
27638
27639 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
27640 variable.
27641
27642 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27643
27644 PR driver/69805
27645 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
27646 :%* in %:gt() argument.
27647 (greater_than_spec_func): Adjust for expecting only numbers,
27648 if there are more than two numbers, compare the last two.
27649
27650 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
27651
27652 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
27653 -Wnarrowing with -std.
27654
27655 2016-02-19 Jakub Jelinek <jakub@redhat.com>
27656
27657 PR c++/69851
27658 * expr.c (store_field): Don't use bit-field path if exp is
27659 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
27660 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
27661 and the assignment can be performed by bitwise copy. Formatting
27662 fix.
27663
27664 PR middle-end/69838
27665 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
27666 call copy_reg_eh_region_note_forward on before and/or after sequences
27667 and remove note from insn if it no longer can throw.
27668
27669 PR target/69820
27670 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
27671 if TARGET_AVX512BW.
27672
27673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27674
27675 * config/s390/vector.md: Add missing commutative operand markers
27676 to the patterns which qualify for one.
27677 * config/s390/vx-builtins.md: Likewise.
27678
27679 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27680
27681 * config/s390/vector.md (VI, VI_QHS): Add single element vector
27682 types to mode iterators.
27683 (vec_double): ... and mode attribute.
27684 * config/s390/vx-builtins.md (non_vec_int): Likewise.
27685
27686 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27687
27688 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
27689 Change the predicate of op2 from nonimmediate to general and let
27690 reload fix it if necessary.
27691
27692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27693
27694 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
27695
27696 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27697
27698 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
27699 mode.
27700
27701 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27702
27703 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
27704 * config/s390/s390.c (s390_expand_vec_movstr): New function.
27705 * config/s390/s390.md ("movstr<P:mode>"): Call
27706 s390_expand_vec_movstr.
27707
27708 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27709
27710 * config/s390/s390.md: Add missing output modifier for operand 1
27711 to print it as address properly.
27712
27713 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27714
27715 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
27716 * config/s390/2964.md: New file.
27717 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
27718 of insn grouping attributes depending on the CPU level.
27719 (s390_get_unit_mask): New function.
27720 (s390_sched_score): Remove the OOO from the scheduling macros.
27721 Add loop to calculate a score for the instruction mix.
27722 (s390_sched_reorder): Likewise plus improve debug output.
27723 (s390_sched_variable_issue): Rename macros as above. Calculate
27724 the unit distances after actually scheduling an insn. Improve
27725 debug output.
27726 (s390_sched_init): Clear last_scheduled_unit_distance array.
27727 * config/s390/s390.md: Include 2964.md.
27728
27729 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27730
27731 PR target/69671
27732 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
27733 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
27734 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
27735 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
27736 *avx512f_<code>v8div16qi2_mask_1): New insns.
27737
27738 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27739
27740 PR target/68404
27741 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
27742 2016-02-09 change.
27743
27744 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
27745 earlyclobber from target. Use wF constraint for fused memory
27746 address.
27747 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
27748
27749 2016-02-18 Jakub Jelinek <jakub@redhat.com>
27750 Martin Liska <mliska@suse.cz>
27751
27752 PR sanitizer/69863
27753 * cfgexpand.c (asan_sanitize_stack_p): New function.
27754 (partition_stack_vars): Use the function.
27755 (expand_stack_vars): Likewise.
27756 (defer_stack_allocation): Likewise.
27757 (expand_used_vars): Likewise.
27758
27759 2016-02-18 Richard Biener <rguenther@suse.de>
27760
27761 PR middle-end/69553
27762 * fold-const.c (operand_equal_p): Properly compare offsets for
27763 IMAGPART_EXPR and ARRAY_REF.
27764
27765 2016-02-18 Nick Clifton <nickc@redhat.com>
27766
27767 PR target/62254
27768 PR target/69610
27769 * config/arm/arm.c (arm_option_override_internal): Disable
27770 interworking if the target does not support thumb instructions.
27771 (arm_reload_in_hi): Handle the case where a register to register
27772 move needs reloading because there is no simple pattern to handle
27773 it.
27774 (arm_reload_out_hi): Likewise.
27775
27776 2016-02-18 Richard Biener <rguenther@suse.de>
27777
27778 PR middle-end/69854
27779 * match.pd: Don't use fold_binary or fold_unary for folding
27780 constants.
27781
27782 2016-02-17 Jakub Jelinek <jakub@redhat.com>
27783
27784 PR c++/69850
27785 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
27786 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
27787 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
27788 warn on gimple_no_warning_p statements.
27789
27790 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
27791
27792 * doc/extend.texi (C++ Attributes): Correct description of
27793 warn_unused type attribute.
27794
27795 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27796
27797 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
27798 correct instruction.
27799
27800 2016-02-17 Richard Biener <rguenther@suse.de>
27801
27802 PR rtl-optimization/69609
27803 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
27804 (find_traces_1_round): When ending a trace update cached priority
27805 of successors.
27806 (bb_to_key): Use cached priority when available.
27807 (copy_bb): Initialize cached priority.
27808 (reorder_basic_blocks_software_trace_cache): Likewise.
27809
27810 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27811
27812 PR target/69161
27813 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
27814 New predicate.
27815 (aarch64_comparison_operator): Break overly long line into two.
27816 (aarch64_comparison_operation): Likewise.
27817 * config/aarch64/aarch64.md (cstorecc4): Use
27818 aarch64_comparison_operator_mode instead of
27819 aarch64_comparison_operator.
27820 (cstore<mode>4): Likewise.
27821 (aarch64_cstore<mode>): Likewise.
27822 (*cstoresi_insn_uxtw): Likewise.
27823 (cstore<mode>_neg): Likewise.
27824 (*cstoresi_neg_uxtw): Likewise.
27825
27826 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27827
27828 PR target/69161
27829 * config/arm/predicates.md (arm_comparison_operator_mode):
27830 New predicate.
27831 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
27832 instead of arm_comparison_operator.
27833 (*mov_negscc): Likewise.
27834 (*mov_notscc): Likewise.
27835 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
27836 (*thumb2_mov_negscc): Likewise.
27837 (*thumb2_mov_negscc_strict_it): Likewise.
27838 (*thumb2_mov_notscc): Likewise.
27839 (*thumb2_mov_notscc_strict_it): Likewise.
27840
27841 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
27842
27843 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
27844 Add missing return.
27845
27846 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
27847
27848 * config/visium/visium.c (machine_libfunc_index): New enum.
27849 (machine_libfuncs): New structure.
27850 (visium_libfuncs): New static variable.
27851 (TARGET_INIT_LIBFUNCS): Define to...
27852 (visium_init_libfuncs): ...this. New function.
27853 (expand_block_move_4): Use the appropriate libfunc.
27854 (expand_block_move_2): Likewise.
27855 (expand_block_move_1): Likewise.
27856 (expand_block_set_4): Likewise.
27857 (expand_block_set_2): Likewise.
27858 (expand_block_set_1): Likewise.
27859 (visium_trampoline_init): Likewise.
27860
27861 2016-02-17 Nick Clifton <nickc@redhat.com>
27862
27863 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
27864 TI's devices.csv file as of March 2016.
27865
27866 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
27867
27868 PR Target/48344
27869 * opts-global.c (handle_common_deferred_options): Introduce and
27870 initialize two global variables to remember command-line options
27871 specifying a stack-limiting register.
27872 * opts.h: Add extern declarations of the two new global variables.
27873 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
27874 variable based on the values of the two new global variables.
27875
27876 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27877
27878 PR c/69835
27879 * common.opt (Wnonnull-compare): New warning.
27880 * doc/invoke.texi (-Wnonnull): Remove text about comparison
27881 of arguments against NULL.
27882 (-Wnonnull-compare): Document.
27883 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
27884 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
27885 * passes.def (pass_warn_nonnull_compare): Add.
27886 * gimple-ssa-nonnull-compare.c: New file.
27887
27888 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27889
27890 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
27891 AARCH64_EXTRA_TUNE_RECIP_SQRT.
27892
27893 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27894
27895 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
27896 reciprocal sqrt for -mlow-precision-recip-sqrt.
27897
27898 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27900
27901 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
27902 always use lane loads to construct non-constant vectors.
27903
27904 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27905
27906 * config/aarch64/aarch64.md
27907 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
27908 constraints for operand 3.
27909 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
27910
27911 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27912 Richard Biener <rguenther@suse.de>
27913
27914 PR tree-optimization/69820
27915 * tree-vect-patterns.c (type_conversion_p): Return false if
27916 *orig_type is unsigned single precision or boolean.
27917 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
27918 Formatting fix.
27919
27920 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27921
27922 PR rtl-optimization/69764
27923 PR rtl-optimization/69771
27924 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
27925 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
27926
27927 2016-02-16 Richard Biener <rguenther@suse.de>
27928
27929 PR tree-optimization/69776
27930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
27931 sets from caller.
27932 (indirect_refs_may_alias_p): Likewise.
27933 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
27934 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
27935 according to tbaa_p.
27936 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
27937 (optimize_stmt): For redundant store discovery do not allow tbaa.
27938
27939 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
27940
27941 PR tree-optimization/69714
27942 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
27943 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
27944
27945 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
27946
27947 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
27948 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
27949 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
27950 * config/arc/arc.c (arc_init): Check FPU options.
27951 (get_arc_condition_code): Handle new CC_FPU* modes.
27952 (arc_select_cc_mode): Likewise.
27953 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
27954 register pair only. Allow access for ARCv2 accumulator.
27955 (gen_compare_reg): Whenever we have FPU support use FPU compare
27956 instructions.
27957 (arc_reorg): Don't generate brcc insns when FPU compare
27958 instructions are involved.
27959 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
27960 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
27961 floating point emulation.
27962 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
27963 (REVERSE_CONDITION): Add new CC_FPU* modes.
27964 (TARGET_FP_SP_BASE): Define.
27965 (TARGET_FP_DP_BASE): Likewise.
27966 (TARGET_FP_SP_FUSED): Likewise.
27967 (TARGET_FP_DP_FUSED): Likewise.
27968 (TARGET_FP_SP_CONV): Likewise.
27969 (TARGET_FP_DP_CONV): Likewise.
27970 (TARGET_FP_SP_SQRT): Likewise.
27971 (TARGET_FP_DP_SQRT): Likewise.
27972 (TARGET_FP_DP_AX): Likewise.
27973 * config/arc/arc.md (ARCV2_ACC): New constant.
27974 (type): New fpu type attribute.
27975 (SDF): Conditional iterator.
27976 (cstore<mode>, cbranch<mode>): Change expand condition.
27977 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
27978 handles FPU/FPX cases as well.
27979 * config/arc/arc.opt (mfpu): New option.
27980 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
27981 Renamed.
27982 (adddf3, muldf3, subdf3): Removed.
27983 * config/arc/predicates.md (proper_comparison_operator): Recognize
27984 CC_FPU* modes.
27985 * config/arc/fpu.md: New file.
27986 * doc/invoke.texi (ARC Options): Document mfpu option.
27987
27988 2016-02-16 Richard Biener <rguenther@suse.de>
27989
27990 PR rtl-optimization/69291
27991 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
27992 noce_operand_ok check.
27993
27994 2016-02-16 Tom de Vries <tom@codesourcery.com>
27995
27996 PR lto/67709
27997 * omp-low.c (simd_clone_create): Remove call to
27998 symtab->call_cgraph_insertion_hooks.
27999
28000 2016-02-16 Jakub Jelinek <jakub@redhat.com>
28001
28002 PR tree-optimization/69802
28003 * tree-ssa-reassoc.c (update_range_test): If op is
28004 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
28005 op == 1 test of precision 1 integral op, otherwise handle
28006 that case as op itself. Fix up formatting.
28007 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
28008 up formatting.
28009
28010 2016-02-16 Richard Biener <rguenther@suse.de>
28011
28012 PR tree-optimization/69586
28013 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
28014 types for conversion sources.
28015
28016 2016-02-16 Richard Biener <rguenther@suse.de>
28017
28018 PR middle-end/69801
28019 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
28020 mask OEP_ADDRESS_OF.
28021
28022 2016-02-16 Alan Modra <amodra@gmail.com>
28023
28024 PR target/68973
28025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
28026 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28027 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
28028 (p8_mtvsrwz): New.
28029 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
28030 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
28031 (p8_fmrgow_<mode>): Likewise.
28032 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
28033 changes.
28034 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
28035 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
28036 to use movdi_internal64. Remove op0_di.
28037 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
28038
28039 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
28040
28041 Add support for the FCCMP insn types
28042
28043 * config/aarch64/aarch64.md (fccmp): Change insn type.
28044 (fccmpe): Likewise.
28045 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
28046 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
28047 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
28048 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
28049 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
28050 * config/arm/types.md (fccmps): Add new insn type.
28051 (fccmpd): Likewise.
28052
28053 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
28054
28055 * alias.c (get_alias_set): Fix a typo in comment.
28056
28057 2016-02-15 Richard Biener <rguenther@suse.de>
28058
28059 PR tree-optimization/69595
28060 * match.pd: Complete range test simplification to true.
28061
28062 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
28063
28064 PR rtl-optimization/69648
28065 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
28066 pic_offset_table_rtx.
28067
28068 PR rtl-optimization/69752
28069 * ira.c (update_equiv_regs): When looking for more than a single SET,
28070 also take other side effects into account.
28071
28072 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28073
28074 * config/s390/s390.c (s390_function_profiler): Add a new sequence
28075 for z900+ CPUs in 31-bit mode.
28076
28077 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
28078
28079 * common/config/s390/s390-common.c (s390_supports_split_stack):
28080 New function.
28081 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
28082 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
28083 * config/s390/s390.c (struct machine_function): New field
28084 split_stack_varargs_pointer.
28085 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
28086 in s390_emit_prologue.
28087 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
28088 vararg pointer.
28089 (morestack_ref): New global.
28090 (SPLIT_STACK_AVAILABLE): New macro.
28091 (s390_expand_split_stack_prologue): New function.
28092 (s390_live_on_entry): New function.
28093 (s390_va_start): Use split-stack vararg pointer if appropriate.
28094 (s390_asm_file_end): Emit the split-stack note sections.
28095 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
28096 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
28097 (UNSPECV_SPLIT_STACK_CALL): New unspec.
28098 (UNSPECV_SPLIT_STACK_DATA): New unspec.
28099 (split_stack_prologue): New expand.
28100 (split_stack_space_check): New expand.
28101 (split_stack_data): New insn.
28102 (split_stack_call): New expand.
28103 (split_stack_call_*): New insn.
28104 (split_stack_cond_call): New expand.
28105 (split_stack_cond_call_*): New insn.
28106
28107 2016-02-15 Richard Biener <rguenther@suse.de>
28108
28109 PR tree-optimization/69783
28110 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28111 Add trivially correct cases.
28112
28113 2016-02-15 Tom de Vries <tom@codesourcery.com>
28114
28115 PR lto/69655
28116 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
28117 do_force_output.
28118 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
28119
28120 2016-02-15 Richard Biener <rguenther@suse.de>
28121
28122 PR tree-optimization/69776
28123 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
28124 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
28125 indicate whether we can use TBAA to disambiguate against stores.
28126 Use alias-set zero if not.
28127 (visit_reference_op_store): Do not use TBAA when looking up
28128 redundant stores.
28129 * tree-ssa-pre.c (compute_avail): Use TBAA here.
28130 (eliminate_dom_walker::before_dom_children): But not when looking
28131 up redundant stores.
28132
28133 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
28134
28135 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
28136
28137 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28138
28139 * config/i386/znver1.md
28140 (znver1_pop, znver1_pop_mem,
28141 znver1_load_imov_double_store,
28142 znver1_load_imov_direct_store,
28143 znver1_load_imov_direct_load,
28144 znver1_load_imov_double_load): Add new.
28145 (znver1_insn, znver1_insn_load): Add icmov type.
28146 (znver1_sseavx_fma,
28147 znver1_sseavx_fma_load,
28148 znver1_avx256_fma,
28149 znver1_avx256_fma_load): Fix pipe usage.
28150
28151 2016-02-14 Alan Modra <amodra@gmail.com>
28152
28153 PR target/68973
28154 * reload.c (find_reloads_address_1): For pre/post-inc/dec
28155 with an invalid hard reg, reload just the reg not the entire
28156 pre/post-inc/dec address expression.
28157
28158 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28159
28160 PR target/67260
28161 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
28162 fixed R1_REG scratch reg.
28163 (sibcall_value_pcrel_fdpic): Likewise.
28164
28165 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
28166
28167 PR target/67636
28168 PR target/64345
28169 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
28170
28171 2016-02-12 Walter Lee <walt@tilera.com>
28172
28173 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
28174 * config/tilegx/t-tilegx: Likewise.
28175
28176 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28177
28178 PR other/69554
28179 * diagnostic-show-locus.c (struct line_span): New struct.
28180 (layout::get_first_line): Delete.
28181 (layout::get_last_line): Delete.
28182 (layout::get_num_line_spans): New member function.
28183 (layout::get_line_span): Likewise.
28184 (layout::print_heading_for_line_span_index_p): Likewise.
28185 (layout::get_expanded_location): Likewise.
28186 (layout::calculate_line_spans): Likewise.
28187 (layout::m_first_line): Delete.
28188 (layout::m_last_line): Delete.
28189 (layout::m_line_spans): New field.
28190 (layout::layout): Update comment. Replace m_first_line and
28191 m_last_line with m_line_spans, replacing their initialization
28192 with a call to calculate_line_spans.
28193 (diagnostic_show_locus): When printing source lines and
28194 annotations, rather than looping over a single span
28195 of lines, instead loop over each line_span within
28196 the layout, with an inner loop over the lines within them.
28197 Call the context's start_span callback when changing line spans.
28198 * diagnostic.c (diagnostic_initialize): Initialize start_span.
28199 (diagnostic_build_prefix): Break out the building of the location
28200 part of the string into...
28201 (diagnostic_get_location_text): ...this new function, rewriting
28202 it from nested ternary expressions to a sequence of "if"
28203 statements.
28204 (default_diagnostic_start_span_fn): New function.
28205 * diagnostic.h (diagnostic_start_span_fn): New typedef.
28206 (diagnostic_context::start_span): New field.
28207 (default_diagnostic_start_span_fn): New prototype.
28208
28209 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28210
28211 PR driver/69779
28212 * gcc.c (driver::finalize): Fix cleanup of "specs".
28213
28214 2016-02-12 David Malcolm <dmalcolm@redhat.com>
28215
28216 PR driver/69265
28217 PR driver/69453
28218 * gcc.c (driver::driver): Initialize m_option_suggestions.
28219 (driver::~driver): Clean up m_option_suggestions.
28220 (suggest_option): Convert to...
28221 (driver::suggest_option): ...this, and split out into
28222 driver::build_option_suggestions and find_closest_string.
28223 (driver::build_option_suggestions): New function, from
28224 first half of suggest_option. Special-case
28225 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
28226 the sanitizer_opts array. For options of enum types, add the
28227 various enum values to the candidate strings.
28228 (driver::handle_unrecognized_options): Remove "const".
28229 * gcc.h (driver::handle_unrecognized_options): Likewise.
28230 (driver::build_option_suggestions): New decl.
28231 (driver::suggest_option): New decl.
28232 (driver::m_option_suggestions): New field.
28233 * opts-common.c (add_misspelling_candidates): New function.
28234 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
28235 and make non-static.
28236 * opts.h (sanitizer_opts): New array decl.
28237 (add_misspelling_candidates): New function decl.
28238 * spellcheck.c (find_closest_string): New function.
28239 * spellcheck.h (find_closest_string): New function decl.
28240
28241 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28242
28243 PR rtl-optimization/69764
28244 PR rtl-optimization/69771
28245 * optabs.c (expand_binop_directly): For shift_optab_p, force
28246 convert_modes with VOIDmode if xop1 has VOIDmode.
28247
28248 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
28249
28250 PR target/69729
28251 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
28252 to correctly determine instrumentation thunks.
28253
28254 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28255
28256 PR ipa/69241
28257 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
28258 type by reference, force lhs on the call.
28259
28260 PR ipa/68672
28261 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
28262 Compute retval and retbnd early in all cases if split_part_return_p
28263 and return_bb is not EXIT. Remove all clobber stmts and reset
28264 all debug stmts that refer to SSA_NAMEs defined in split part,
28265 except if it is retval, in that case replace the old retval with the
28266 lhs of the call to the split part.
28267
28268 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28269
28270 revert:
28271 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28272
28273 PR middle-end/66726
28274 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28275 whose result is used in PHI.
28276 (maybe_optimize_range_tests): Likewise.
28277 (final_range_test_p): Likweise.
28278
28279 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
28280
28281 PR middle-end/66726
28282 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
28283 whose result is used in PHI.
28284 (maybe_optimize_range_tests): Likewise.
28285 (final_range_test_p): Likweise.
28286
28287 2016-02-12 Jakub Jelinek <jakub@redhat.com>
28288
28289 * cgraph.c: Spelling fixes - behaviour -> behavior and
28290 neighbour -> neighbor.
28291 * target.def: Likewise.
28292 * sel-sched.c: Likewise.
28293 * config/mips/mips.c: Likewise.
28294 * config/arc/arc.md: Likewise.
28295 * config/arm/cortex-a57.md: Likewise.
28296 * config/arm/arm.c: Likewise.
28297 * config/arm/neon.md: Likewise.
28298 * config/arm/arm-c.c: Likewise.
28299 * config/vms/vms-c.c: Likewise.
28300 * config/s390/s390.c: Likewise.
28301 * config/i386/znver1.md: Likewise.
28302 * config/i386/i386.c: Likewise.
28303 * config/ia64/hpux-unix2003.h: Likewise.
28304 * config/msp430/msp430.md: Likewise.
28305 * config/rx/rx.c: Likewise.
28306 * config/rx/rx.md: Likewise.
28307 * config/aarch64/aarch64-simd.md: Likewise.
28308 * config/aarch64/aarch64.c: Likewise.
28309 * config/nvptx/nvptx.c: Likewise.
28310 * config/bfin/bfin.c: Likewise.
28311 * config/cris/cris.opt: Likewise.
28312 * config/rs6000/rs6000.c: Likewise.
28313 * target.h: Likewise.
28314 * spellcheck.c: Likewise.
28315 * ira-build.c: Likewise.
28316 * tree-inline.c: Likewise.
28317 * builtins.c: Likewise.
28318 * lra-constraints.c: Likewise.
28319 * explow.c: Likewise.
28320 * hwint.h: Likewise.
28321 * targhooks.c: Likewise.
28322 * tree-vect-data-refs.c: Likewise.
28323 * expr.c: Likewise.
28324 * doc/tm.texi: Likewise.
28325 * doc/extend.texi: Likewise.
28326 * doc/install.texi: Likewise.
28327 * doc/md.texi: Likewise.
28328 * tree-ssa-tail-merge.c: Likewise.
28329 * sched-int.h: Likewise.
28330 * match.pd: Likewise.
28331 * sched-ebb.c: Likewise.
28332 * target.def (omit_struct_return_reg): Likewise.
28333 * gimple-ssa-isolate-paths.c: Likewise.
28334 (find_implicit_erroneous_behaviour): Renamed to...
28335 (find_implicit_erroneous_behavior): ... this.
28336 (find_explicit_erroneous_behaviour): Renamed to...
28337 (find_explicit_erroneous_behavior): ... this.
28338 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
28339
28340 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
28341
28342 PR rtl-optimization/64682
28343 PR rtl-optimization/69567
28344 PR rtl-optimization/69737
28345 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
28346 in I2 as well, just lose it.
28347
28348 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28349
28350 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
28351 New variable.
28352 (aarch64_last_printed_tune_string): Likewise.
28353 (aarch64_declare_function_name): Only output .arch assembler
28354 directive if it will be different from the previously output
28355 directive. Same for .tune comment but only if -dA is set.
28356 (aarch64_start_file): New function.
28357 (TARGET_ASM_FILE_START): Define.
28358
28359 2016-02-11 David Malcolm <dmalcolm@redhat.com>
28360
28361 PR plugins/69758
28362 * Makefile.in (PLUGIN_HEADERS): Add params.list.
28363
28364 2016-02-11 Jakub Jelinek <jakub@redhat.com>
28365
28366 PR target/65313
28367 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
28368 -Wmaybe-uninitialized warning.
28369
28370 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
28371
28372 PR target/69713
28373 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
28374
28375 2016-02-11 Richard Biener <rguenther@suse.de>
28376
28377 PR rtl-optimization/69291
28378 * ifcvt.c (noce_try_store_flag_constants): Do not allow
28379 subexpressions affected by changing the result.
28380
28381 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
28382
28383 PR target/69148
28384 * lra-constraints.c (curr_insn_transform): Find in/out operands
28385 for secondary memory moves. Update dups.
28386
28387 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
28388
28389 PR tree-optimization/69652
28390 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
28391 to nested loop, did source re-formatting, skip debug statements,
28392 add check on statement with volatile operand, remove dead scalar
28393 statements.
28394
28395 2016-02-10 Jakub Jelinek <jakub@redhat.com>
28396 Patrick Palka <ppalka@gcc.gnu.org>
28397
28398 PR ipa/69241
28399 PR c++/69649
28400 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
28401 calls if the return type is TREE_ADDRESSABLE.
28402 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
28403 * ipa-split.c (split_function): Fix doubled "we" in comment.
28404 Use void return type for the split part even if
28405 !split_point->split_part_set_retval.
28406
28407 2016-02-10 Bin Cheng <bin.cheng@arm.com>
28408
28409 PR tree-optimization/68021
28410 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
28411 when computing the value of biv cand by itself.
28412
28413 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28414
28415 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
28416 (cortexa57_tunings): Likewise.
28417 (cortexa72_tunings): Likewise.
28418 (arch_macro_fusion_pair_p): Add support for AES fusion.
28419 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
28420 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
28421 Allow virtual registers before reload so early scheduling works.
28422 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
28423 correct latency and pipeline.
28424 (cortex_a57_crypto_complex): Likewise.
28425 (cortex_a57_crypto_xor): Likewise.
28426 (define_bypass): Add AES bypass.
28427
28428 2016-02-10 Richard Biener <rguenther@suse.de>
28429
28430 PR tree-optimization/69726
28431 * passes.def: Add DCE pass before late uninit.
28432 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
28433 really fixup if-conversions job.
28434
28435 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
28436
28437 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
28438 (arm_cortex_a57_tune): Likewise.
28439 (aarch_macro_fusion_pair_p): Add support for AES fusion.
28440 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
28441
28442 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
28443
28444 * timevar.def (TV_PHASE_DBGINFO): Delete.
28445 (TV_PHASE_CHECK_DBGINFO): Likewise.
28446 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
28447
28448 2016-02-10 Richard Biener <rguenther@suse.de>
28449
28450 PR tree-optimization/69719
28451 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28452 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
28453
28454 2016-02-09 Andrew Pinski <apinski@cavium.com>
28455
28456 PR tree-opt/69282
28457 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
28458 get_vcond_mask_icode returns false.
28459
28460 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28461
28462 PR target/68404
28463 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
28464 an ADDIS that adds a pointer to a large constant that sets the
28465 upper16 bits with a load operation.
28466
28467 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28468
28469 PR target/68532
28470 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
28471 order.
28472 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
28473 endian.
28474 (vzipq_s16): Likewise.
28475 (vzipq_s32): Likewise.
28476 (vzipq_f32): Likewise.
28477 (vzipq_u8): Likewise.
28478 (vzipq_u16): Likewise.
28479 (vzipq_u32): Likewise.
28480 (vzipq_p8): Likewise.
28481 (vzipq_p16): Likewise.
28482
28483 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
28484
28485 PR target/68532
28486 * config/arm/arm.c (neon_endian_lane_map): New function.
28487 (neon_vector_pair_endian_lane_map): New function.
28488 (arm_evpc_neon_vuzp): Allow for big endian lane order.
28489 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
28490 endian.
28491 (vuzpq_s16): Likewise.
28492 (vuzpq_s32): Likewise.
28493 (vuzpq_f32): Likewise.
28494 (vuzpq_u8): Likewise.
28495 (vuzpq_u16): Likewise.
28496 (vuzpq_u32): Likewise.
28497 (vuzpq_p8): Likewise.
28498 (vuzpq_p16): Likewise.
28499
28500 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
28501
28502 PR target/69634
28503 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
28504 debug insns.
28505
28506 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
28507
28508 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
28509 truncate const_int operand 1 to QImode.
28510
28511 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
28512
28513 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
28514 corresponding to an abnormal edge.
28515
28516 2016-02-09 Tom de Vries <tom@codesourcery.com>
28517
28518 PR tree-optimization/69599
28519 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
28520 function.
28521 (find_func_aliases_for_builtin_call, find_func_clobbers)
28522 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
28523 partition.
28524
28525 2016-02-09 Richard Biener <rguenther@suse.de>
28526
28527 PR tree-optimization/69715
28528 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
28529 LHS on calls as non-rewritable.
28530
28531 2016-02-09 Tom de Vries <tom@codesourcery.com>
28532
28533 PR lto/69707
28534 * lto-wrapper.c (append_diag_options): New function.
28535 (compile_offload_image): Call append_diag_options.
28536
28537 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
28538
28539 PR other/69722
28540 * doc/extend.texi (Flag Output Operands): Correct sectioning.
28541 Minor copy-edit to fix verb tenses.
28542
28543 2016-02-08 Jakub Jelinek <jakub@redhat.com>
28544
28545 PR tree-optimization/69209
28546 * ipa-split.c (split_function): If split part is not
28547 returning retval, retval has gimple type but is not
28548 gimple value, force it into a SSA_NAME first.
28549
28550 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
28551
28552 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
28553 outdated section.
28554
28555 2016-02-08 Jason Merrill <jason@redhat.com>
28556
28557 PR c++/69631
28558 * convert.c (convert_to_integer_1): Check dofold on truncation
28559 distribution.
28560 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
28561 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
28562 Rename from *_nofold.
28563 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
28564 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
28565
28566 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
28567
28568 PR target/60410
28569 * tree.c (build_common_tree_nodes): Remove short_double argument.
28570 All callers changed.
28571 * tree.h (build_common_tree_nodes): Adjust declaration.
28572 * doc/invoke.texi (-fshort-double): Remove documentation.
28573 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
28574 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
28575 * lto-wrapper.c (merge_and_complain, append_compiler_options)
28576 (append_linker_options): Don't handle OPT_fshort_double.
28577
28578 PR rtl-optimization/68730
28579 * lra-remat.c (insn_to_cand_activation): New static variable.
28580 (lra_remat): Allocate and free it.
28581 (create_cand): New arg activation. Initialize a field in
28582 insn_to_cand_activation if it is nonnull.
28583 (create_cands): Pass the activation insn to create_cand when making
28584 a candidate involving an output reload. Reorganize code a little.
28585 (do_remat): Keep track of active status of candidates in a separate
28586 bitmap.
28587
28588 2016-02-08 Richard Biener <rguenther@suse.de>
28589
28590 PR tree-optimization/69719
28591 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28592 Properly use absolute of the difference of the two offsets to
28593 compare or adjust the segment length.
28594
28595 2016-02-08 Richard Biener <rguenther@suse.de>
28596 Jeff Law <law@redhat.com>
28597
28598 PR target/68273
28599 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
28600 types for anonymous SSA names.
28601
28602 2016-02-08 Richard Biener <rguenther@suse.de>
28603
28604 PR rtl-optimization/69274
28605 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
28606
28607 2016-02-08 Jeff Law <law@redhat.com>
28608
28609 PR tree-optimization/65917
28610 * tree-ssa-dom.c (record_temporary_equivalences): Record both
28611 equivalences from if (x == y) style conditionals.
28612 (loop_depth_of_name): Remove.
28613 (record_equality): Remove loop depth check.
28614 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
28615 (const_and_copies::record_const_or_copy_raw): New member function.
28616 * tree-ssa-scopedtables.c
28617 (const_and_copies::record_const_or_copy_raw): New, factored out of
28618 (const_and_copies::record_const_or_copy): Call new member function.
28619
28620 2016-02-05 Jeff Law <law@redhat.com>
28621
28622 PR tree-optimization/68541
28623 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
28624 (count_stmts_in_block): New function.
28625 (poor_ifcvt_candidate_code): Likewise.
28626 (is_feasible_trace): Add some heuristics to determine when path
28627 splitting is profitable.
28628 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
28629 is a diamond with a single exit.
28630
28631 2016-02-05 Martin Sebor <msebor@redhat.com>
28632
28633 PR c++/69662
28634 * doc/invoke.texi: Update -Wplacement-new to take an optional
28635 argument.
28636
28637 2016-02-06 Richard Henderson <rth@redhat.com>
28638
28639 PR c/69643
28640 * tree.c (tree_nop_conversion_p): Do not strip casts into or
28641 out of non-standard address spaces.
28642
28643 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28644
28645 PR rtl-optimization/69691
28646 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
28647
28648 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
28649
28650 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
28651 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
28652 (*ieee128_mfvsrd_64bit): Likewise.
28653 (*ieee128_mfvsrd_32bit): Likewise.
28654
28655 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
28656
28657 PR target/69369
28658 Revert r232560:
28659 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28660
28661 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28662 instrumented_version.
28663
28664 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
28665
28666 * doc/invoke.texi (Optimize Options): In table of --param options
28667 rename second occurrence of tracer-min-branch-ratio to
28668 tracer-min-branch-probability, rename
28669 tracer-min-branch-ratio-feedback to
28670 tracer-min-branch-probability-feedback and clarify description,
28671 rename sched-spec-state-edge-prob-cutoff to
28672 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
28673 to selsched-insns-to-rename, rename lto-minpartition to
28674 lto-min-partition, delete reorder-blocks-duplicate and
28675 reorder-blocks-duplicate-feedback.
28676
28677 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28678
28679 * config/s390/s390.c (s390_register_info_set_ranges): Remove
28680 superfluous loops.
28681
28682 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
28683
28684 * doc/extend.texi: S/390: Correct some typos.
28685
28686 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28687
28688 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
28689
28690 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28691
28692 PR target/69625
28693 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
28694 (s390_register_info_gprtofpr): Use new macros above.
28695 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
28696 its name.
28697 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
28698 its name. Adjust restore and save gpr ranges.
28699 (s390_register_info_set_ranges): New function.
28700 (s390_register_info): Use new macros above. Call
28701 s390_register_info_set_ranges.
28702 (s390_optimize_register_info): Likewise.
28703 (s390_hard_regno_rename_ok): Use new macros.
28704 (s390_hard_regno_scratch_ok): Likewise.
28705 (s390_emit_epilogue): Likewise.
28706 (s390_can_use_return_insn): Likewise.
28707 (s390_optimize_prologue): Likewise.
28708 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
28709
28710 2016-02-05 Jakub Jelinek <jakub@redhat.com>
28711
28712 PR bootstrap/69677
28713 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
28714 alignment fixes.
28715 (ix86_option_override_internal): Disable TARGET_STV even for
28716 -m{incoming,preferred}-stack-boundary=3.
28717
28718 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28719
28720 * config.gcc: Mark deprecated rtems targets as obsolete.
28721
28722 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
28723
28724 PR rtl-optimization/64682
28725 PR rtl-optimization/69567
28726 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
28727 before I2 only if the register is both used and set in I2.
28728
28729 2016-02-04 DJ Delorie <dj@redhat.com>
28730
28731 * config/msp430/msp430.c (msp430_start_function): Add function type.
28732
28733 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28734
28735 PR fortran/69368
28736 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
28737
28738 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
28739
28740 PR rtl-optimization/69577
28741 Revert:
28742 2015-10-29 Richard Henderson <rth@redhat.com>
28743
28744 PR target/68124
28745 PR rtl-opt/67609
28746 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
28747 sse check to the exact conditions of PR 67609.
28748
28749 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
28750
28751 PR target/69667
28752 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
28753 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
28754 not allowed into the traditional Altivec registers.
28755 (movtd_64bit_nodm): Likewise.
28756 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
28757
28758 2016-02-04 David Malcolm <dmalcolm@redhat.com>
28759
28760 * config/aarch64/cortex-a57-fma-steering.c
28761 (aarch64_register_fma_steering): Remove "static" from arguments
28762 to register_pass.
28763
28764 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
28765
28766 PR target/69619
28767 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
28768 twice when complex.
28769
28770 2016-02-04 Mike Frysinger <vapier@gentoo.org>
28771
28772 * doc/invoke.texi: Delete -mno-fma4.
28773
28774 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
28775
28776 PR rtl-optimization/69577
28777 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
28778 (find_subregs_of_mode): Update accordingly. Iterate over partial
28779 definitions.
28780
28781 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
28782
28783 * config/arm/arm-protos.h (neon_reinterpret): Remove.
28784 * config/arm/arm.c (neon_reinterpret): Remove.
28785 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
28786 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
28787 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
28788 vreinterpretti): Remove.
28789 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
28790 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
28791 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
28792 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
28793 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
28794 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
28795 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
28796 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
28797 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
28798 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
28799 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
28800 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
28801 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
28802 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
28803 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
28804 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
28805 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
28806 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
28807 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
28808 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
28809 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
28810 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
28811 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
28812 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
28813 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
28814 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
28815 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
28816 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
28817 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
28818 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
28819 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
28820 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
28821 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
28822 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
28823 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
28824 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
28825 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
28826 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
28827 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
28828 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
28829 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
28830 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
28831 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
28832 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
28833 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
28834 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
28835 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
28836 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
28837 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
28838 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
28839 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
28840 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
28841 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
28842 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
28843 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
28844 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
28845 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
28846 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
28847 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
28848 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
28849 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
28850 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
28851 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
28852 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
28853 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
28854 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
28855 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
28856 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
28857 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
28858 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
28859 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
28860 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
28861 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
28862 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
28863 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
28864 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
28865 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
28866 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
28867 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
28868 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
28869 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
28870 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
28871 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
28872 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
28873 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
28874 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
28875 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
28876 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
28877 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
28878 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
28879 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
28880 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
28881 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
28882 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
28883 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
28884 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
28885 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
28886 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
28887 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
28888 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
28889 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
28890 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
28891 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
28892
28893 2016-02-04 Martin Liska <mliska@suse.cz>
28894
28895 PR sanitizer/69276
28896 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
28897 that are gimple_store_p.
28898 (maybe_instrument_call): Likewise.
28899
28900 2016-02-04 Bin Cheng <bin.cheng@arm.com>
28901
28902 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
28903 register scaling out of memory reference and comment why.
28904
28905 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28906
28907 PR target/65932
28908 PR target/67714
28909 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
28910 folding the source of a SET.
28911
28912 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28913
28914 PR target/65932
28915 PR target/67714
28916 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
28917 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
28918
28919 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
28920
28921 PR target/65932
28922 PR target/67714
28923 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
28924 HImode.
28925
28926 2016-02-04 Christian Bruel <christian.bruel@st.com>
28927
28928 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
28929 * config/arm/arm.c (arm_set_current_function): Likewise.
28930
28931 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28932 Ilya Enkovich <enkovich.gnu@gmail.com>
28933 H.J. Lu <hongjiu.lu@intel.com>
28934
28935 PR target/69454
28936 * config/i386/i386.c (convert_scalars_to_vector): Remove
28937 stack alignment fixes.
28938 (ix86_option_override_internal): Disable TARGET_STV if stack
28939 might not be aligned enough.
28940 (ix86_minimum_alignment): Assert that TARGET_STV is false.
28941
28942 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
28943
28944 * config/i386/x86-tune.def: Disable default prefetching
28945 for -march=znver1.
28946
28947 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28948 Vladimir Makarov <vmakarov@redhat.com>
28949
28950 PR target/69461
28951 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
28952 in validating fused toc addresses.
28953
28954 2016-02-03 Jakub Jelinek <jakub@redhat.com>
28955
28956 PR c/69627
28957 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
28958 range->m_caret fields if range->m_show_caret_p is false.
28959
28960 PR target/69644
28961 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28962 Force oldval into register if it does not satisfy reg_or_short_operand
28963 predicate. Fix up formatting.
28964
28965 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
28966 Alexandre Oliva <aoliva@redhat.com>
28967
28968 PR target/69461
28969 * lra-constraints.c (simplify_operand_subreg): Check additionally
28970 address validity after potential reloading.
28971 (process_address_1): Check insns validity. In case of failure do
28972 nothing.
28973
28974 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
28975
28976 PR target/69118
28977 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
28978 Fix target.
28979
28980 2016-02-02 Jakub Jelinek <jakub@redhat.com>
28981
28982 * wide-int.cc (canonize_uhwi): New function.
28983 (wi::divmod_internal): Use it.
28984
28985 2016-02-02 James Norris <jnorris@codesourcery.com>
28986
28987 * gimplify.c (omp_notice_variable): Add usage check.
28988
28989 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
28990
28991 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
28992 like LE, GE, LT, GT when emitting relational operator.
28993
28994 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28995
28996 * ira-costs.c (find_costs_and_classes): Add extra argument.
28997 * target.def (ira_change_pseudo_allocno_class): Add parameter.
28998 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
28999 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
29000 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
29001 Add best_class parameter, and return it if not ALL_REGS.
29002 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
29003 Add parameter.
29004 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
29005 Update target hook.
29006
29007 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
29008
29009 * config/aarch64/aarch64.c
29010 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
29011 (aarch64_ira_change_pseudo_allocno_class): New function.
29012
29013 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
29014
29015 PR target/67032
29016 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
29017
29018 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29019
29020 * config/avr/avr.c (avr_option_override): Set
29021 PARAM_ALLOW_STORE_DATA_RACES to 1.
29022
29023 2016-02-02 Richard Biener <rguenther@suse.de>
29024
29025 PR tree-optimization/69595
29026 * match.pd: Add range test simplifications to true/false.
29027
29028 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
29029
29030 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
29031 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
29032 instead.
29033
29034 2016-02-02 Richard Biener <rguenther@suse.de>
29035
29036 PR tree-optimization/69606
29037 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
29038 info on the result before moving a stmt.
29039
29040 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
29041
29042 PR middle-end/68542
29043 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
29044 branch with vector comparison.
29045 * config/i386/sse.md (VI48_AVX): New mode iterator.
29046 (define_expand "cbranch<mode>4): Add support for conditional branch
29047 with vector comparison.
29048 * tree-vect-loop.c (optimize_mask_stores): New function.
29049 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
29050 has_mask_store field of vect_info.
29051 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
29052 vectorized loops having masked stores after vec_info destroy.
29053 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
29054 correspondent macros.
29055 (optimize_mask_stores): Add prototype.
29056
29057 2016-02-02 Alan Modra <amodra@gmail.com>
29058
29059 PR target/69548
29060 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
29061 allow subregs.
29062
29063 2016-02-02 Alan Modra <amodra@gmail.com>
29064
29065 PR target/68662
29066 * config/rs6000/rs6000.c (need_toc_init): New var, set it
29067 whenever toc_label_name used.
29068 (rs6000_file_start): Don't set up toc section here,
29069 (rs6000_output_function_epilogue): do so here instead,
29070 (rs6000_xcoff_file_start): and here.
29071 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
29072 (load_toc_aix_di): Likewise.
29073
29074 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29075
29076 PR rtl-optimization/69592
29077 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
29078 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
29079 (num_sign_bit_copies_binary_arith_p): New inline function.
29080 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
29081
29082 2016-02-01 Jeff Law <law@redhat.com>
29083
29084 PR tree-optimization/69580
29085 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
29086 * tree-ssa-threadbackward.c
29087 (fsm_find_control_statement_thread_paths): Do not try to walk
29088 through large PHI nodes.
29089
29090 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29091
29092 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
29093 when count is incremented above limit, don't analyze further
29094 insns afterwards.
29095
29096 * omp-low.c (oacc_parse_default_dims): Avoid
29097 -Wsign-compare warning, make sure value fits into int
29098 rather than just unsigned int.
29099
29100 2016-02-01 Bin Cheng <bin.cheng@arm.com>
29101
29102 PR tree-optimization/67921
29103 * fold-const.c (split_tree): New parameters. Convert pointer
29104 type variable part to proper type before negating.
29105 (fold_binary_loc): Pass new arguments to split_tree.
29106
29107 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
29108
29109 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
29110 (nvptx_goacc_validate_dims): Extend to handle global defaults.
29111 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
29112 * doc/tm.texti: Rebuilt.
29113 * doc/invoke.texi (fopenacc-dim): Document.
29114 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
29115 (append_compiler_options): Likewise.
29116 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
29117 (oacc_parse_default_dims): New.
29118 (oacc_validate_dims): Add USED arg. Select non-unity default when
29119 possible.
29120 (oacc_loop_fixed_partitions): Return mask of used partitions.
29121 (oacc_loop_auto_partitions): Emit dump info.
29122 (oacc_loop_partition): Return mask of used partitions.
29123 (execute_oacc_device_lower): Parse default dimension arg. Adjust
29124 loop partitioning and validation calls.
29125
29126 2016-02-01 Richard Biener <rguenther@suse.de>
29127
29128 PR middle-end/69556
29129 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
29130
29131 2016-02-01 Richard Biener <rguenther@suse.de>
29132
29133 PR tree-optimization/69574
29134 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
29135 of asserting return chrec_dont_know.
29136
29137 2016-02-01 Martin Liska <mliska@suse.cz>
29138
29139 * mem-stats-traits.h: Add copyright header.
29140 * mem-stats.h: Likewise.
29141
29142 2016-02-01 Richard Biener <rguenther@suse.de>
29143
29144 PR tree-optimization/69579
29145 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
29146 Do not propagate through abnormal PHI results.
29147
29148 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
29149
29150 * postreload.c (reload_cse_simplify): Remove dead code.
29151
29152 2016-02-01 Jakub Jelinek <jakub@redhat.com>
29153
29154 PR rtl-optimization/69570
29155 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
29156 if there is more than one set, not if there is a single set.
29157
29158 2016-02-01 Richard Henderson <rth@redhat.com>
29159
29160 PR rtl-opt/69535
29161 * combine.c (make_compound_operation): When looking through a
29162 subreg, make sure to re-extend to the width of the outer mode.
29163
29164 2016-01-30 Jakub Jelinek <jakub@redhat.com>
29165
29166 PR tree-optimization/69546
29167 * wide-int.cc (wi::divmod_internal): For unsigned division
29168 where both operands fit into uhwi, if o1 is 1 and o0 has
29169 msb set, if divident_prec is larger than bits per hwi,
29170 clear another quotient word and return 2 instead of 1.
29171 Similarly for remainder with msb in HWI set, if dividend_prec
29172 is larger than bits per hwi.
29173
29174 2016-01-29 Martin Jambor <mjambor@suse.cz>
29175
29176 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
29177 Use short lowercase names.
29178 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
29179 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
29180 acq_rel one. Protect warning agains segfaults if
29181 get_memory_order_name returns NULL.
29182 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
29183 with release semantics. Do not warn if get_memory_order already did.
29184 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
29185 semantics. Fix check for relaxed or acquire semantics. Do not warn
29186 if get_memory_order already did.
29187
29188 2016-01-29 Sebastian Pop <s.pop@samsung.com>
29189
29190 * doc/install.texi: Document that isl-0.16 is supported.
29191
29192 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
29193
29194 PR target/69299
29195 * config/i386/constraints.md (Bm): Describe as special memory
29196 constraint.
29197 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
29198 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29199 * genpreds.c (struct constraint_data): Add is_special_memory.
29200 (have_special_memory_constraints, special_memory_start): New
29201 static vars.
29202 (special_memory_end): Ditto.
29203 (add_constraint): Add new arg is_special_memory. Add code to
29204 process its true value. Update have_special_memory_constraints.
29205 (process_define_constraint): Pass the new arg.
29206 (process_define_register_constraint): Ditto.
29207 (choose_enum_order): Process special memory.
29208 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
29209 function insn_extra_special_memory_constraint.
29210 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29211 * gensupport.c (process_rtx): Process
29212 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
29213 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
29214 * ira-lives.c (single_reg_class): Use
29215 insn_extra_special_memory_constraint.
29216 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
29217 * lra-constraints.c (process_alt_operands): Ditto.
29218 (curr_insn_transform): Use insn_extra_special_memory_constraint.
29219 * recog.c (asm_operand_ok, preprocess_constraints): Process
29220 CT_SPECIAL_MEMORY.
29221 * reload.c (find_reloads): Ditto.
29222 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
29223 * stmt.c (parse_input_constraint): Use
29224 insn_extra_special_memory_constraint.
29225
29226 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29227
29228 PR target/69530
29229 * lra-splill.c (lra_final_code_change): Revert r229087 by
29230 removing all sub-registers.
29231
29232 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
29233
29234 PR target/65604
29235 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
29236
29237 2016-01-29 Jakub Jelinek <jakub@redhat.com>
29238
29239 PR target/69551
29240 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
29241 SSE1, copy target into the temporary reg first before recursing
29242 on it.
29243
29244 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
29245
29246 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
29247 with vm.
29248
29249 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29250
29251 * ginclude/stdarg.h: Test __cplusplus instead of
29252 __GXX_EXPERIMENTAL_CXX0X__.
29253
29254 2016-01-29 Richard Biener <rguenther@suse.de>
29255
29256 PR tree-optimization/69547
29257 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
29258 Do not mark clobbers necessary.
29259 (mark_all_reaching_defs_necessary_1): Likewise.
29260
29261 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29262
29263 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
29264 declaration name with %qs and print it in both error messages.
29265 Also fix indentation.
29266
29267 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29268
29269 PR other/69006
29270 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
29271 trailing blank line from error message.
29272
29273 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
29274
29275 PR c++/69462
29276 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
29277 for C++-11.
29278
29279 2016-01-29 Richard Biener <rguenther@suse.de>
29280
29281 PR middle-end/69537
29282 * match.pd: Allow all integral types when simplifying a
29283 widening or sign-changing conversion.
29284
29285 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29286
29287 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
29288 back to setting codegen_error to fail codegen.
29289
29290 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
29291
29292 PR target/69459
29293 * config/i386/constraints.md (C): Only accept constant zero operand.
29294 (BC): New constraint.
29295 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
29296 instead of C constraint.
29297 * doc/md.texi (Machine Constraints): Update description
29298 of C constraint.
29299
29300 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
29301
29302 PR target/68400
29303 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
29304
29305 2016-01-28 Jakub Jelinek <jakub@redhat.com>
29306
29307 PR middle-end/69542
29308 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
29309 non-debug insns.
29310
29311 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
29312
29313 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
29314 branches if using guessed profile.
29315
29316 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
29317
29318 * graphite-optimize-isl.c (optimize_isl): Fix dump.
29319
29320 2016-01-28 Richard Henderson <rth@redhat.com>
29321
29322 PR target/69305
29323 * config/aarch64/aarch64-modes.def (CC_Cmode): New
29324 * config/aarch64/aarch64-protos.h: Update.
29325 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
29326 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
29327 (aarch64_get_condition_code_1): Handle CC_Cmode.
29328 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
29329 (*add<mode>3_compareC_cconly_imm): New.
29330 (*add<mode>3_compareC_cconly): New.
29331 (*add<mode>3_compareC_imm): New.
29332 (add<mode>3_compareC): New.
29333 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
29334 to be first. Use aarch64_carry_operation.
29335 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
29336 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
29337 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
29338 (subti3): Use subdi3_compare1.
29339 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
29340 (sub<mode>3_compare1): New.
29341 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
29342 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
29343 (*subsi3_carryin_uxtw): Likewise.
29344 (*ngc<mode>, *ngcsi_uxtw): Likewise.
29345 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
29346 * config/aarch64/iterators.md (DWI): New.
29347 * config/aarch64/predicates.md (aarch64_carry_operation): New.
29348 (aarch64_borrow_operation): New.
29349
29350 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29351
29352 * graphite-optimize-isl.c (optimize_isl): Print a different debug
29353 message when isl does not return a valid schedule.
29354
29355 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29356
29357 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
29358 Remove comments from class declarations: they are already in the code
29359 close by the defs.
29360
29361 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29362
29363 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
29364 codegen_error_p.
29365 (ternary_op_to_tree): Same.
29366 (unary_op_to_tree): Same.
29367 (nary_op_to_tree): Same.
29368 (gcc_expression_from_isl_expr_op): Same.
29369 (gcc_expression_from_isl_expression): Same.
29370 (graphite_create_new_loop): Same.
29371 (graphite_create_new_loop_guard): Same.
29372 (build_iv_mapping): Same.
29373 (graphite_create_new_guard): Same.
29374 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
29375 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
29376
29377 2016-01-28 Sebastian Pop <s.pop@samsung.com>
29378
29379 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
29380 instead of setting codegen_error to fail codegen.
29381
29382 2016-01-28 Jason Merrill <jason@redhat.com>
29383
29384 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
29385
29386 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29387
29388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29389 Remove CONST_INT_P check in CCMP cost calculation.
29390
29391 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29392
29393 * config/aarch64/aarch64.c (generic_vector_cost):
29394 Set vec_permute_cost.
29395 (cortexa57_vector_cost): Likewise.
29396 (exynosm1_vector_cost): Likewise.
29397 (xgene1_vector_cost): Likewise.
29398 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
29399 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
29400 Add vec_permute_cost entry.
29401
29402 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
29403
29404 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
29405 immediate as %1.
29406 (add<mode>3_compare0): Likewise.
29407 (addsi3_compare0_uxtw): Likewise.
29408 (add<mode>3nr_compare0): Likewise.
29409 (compare_neg<mode>): Likewise.
29410 (<optab><mode>3): Likewise.
29411
29412 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
29413
29414 * tree-vect-stmts.c (vectorizable_comparison): Add
29415 NULL check for vectype.
29416
29417 2016-01-28 Richard Biener <rguenther@suse.de>
29418
29419 PR tree-optimization/69466
29420 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
29421 Account for PHIs we couldn't duplicate.
29422
29423 2016-01-28 Martin Liska <mliska@suse.cz>
29424
29425 PR pch/68758
29426 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
29427 instead of ENABLE_VALGRIND_CHECKING.
29428
29429 2016-01-27 Richard Henderson <rth@redhat.com>
29430
29431 PR rtl-opt/69447
29432 * lra-remat.c (subreg_regs): New.
29433 (dump_candidates_and_remat_bb_data): Dump it.
29434 (operand_to_remat): Reject if operand in subreg_regs.
29435 (set_bb_regs): Collect subreg_regs.
29436 (lra_remat): Init and free subreg_regs. Compute
29437 calculate_local_reg_remat_bb_data before create_cands.
29438
29439 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
29440
29441 PR target/68986
29442 * config/i386/i386.c (ix86_update_stack_boundary): Don't
29443 change stack_alignment_needed for __tls_get_addr call.
29444
29445 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
29446
29447 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
29448
29449 2016-01-27 Jeff Law <law@redhat.com>
29450
29451 PR tree-optimization/68398
29452 PR tree-optimization/69196
29453 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
29454 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
29455 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29456 Only count PHIs in the last block in the path. The others will
29457 const/copy propagate away. Add heuristic to allow more irreducible
29458 subloops to be created when it is likely profitable to do so.
29459
29460 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29461 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
29462 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
29463
29464 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29465
29466 PR lto/69254
29467 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
29468 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
29469 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
29470 * tree-streamer-in.c: Include asan.h.
29471 (streamer_get_builtin_tree): For builtins in sanitizer
29472 range call initialize_sanitizer_builtins and retry.
29473
29474 2016-01-27 Ian Lance Taylor <iant@google.com>
29475
29476 * common.opt (fkeep-gc-roots-live): New undocumented option.
29477 * tree-ssa-loop-ivopts.c (add_candidate_1): If
29478 -fkeep-gc-roots-live, skip pointers.
29479 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
29480 NULL.
29481
29482 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
29483
29484 PR target/69512
29485 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
29486 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
29487
29488 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
29489
29490 PR target/68380
29491 * configure.ac: NetBSD provides SSP in its C library.
29492 * configure: Updated.
29493
29494 2016-01-27 Richard Biener <rguenther@suse.de>
29495
29496 PR tree-optimization/69166
29497 * tree-vect-loop.c (vect_is_simple_reduction): Always check
29498 reduction code for commutativity / associativity.
29499
29500 2016-01-27 Martin Jambor <mjambor@suse.cz>
29501
29502 PR tree-optimization/69355
29503 * tree-sra.c (analyze_access_subtree): Correct hole detection when
29504 total_scalarization fails.
29505
29506 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
29507
29508 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
29509 power9.
29510
29511 2016-01-27 Christian Bruel <christian.bruel@st.com>
29512
29513 PR target/69245
29514 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
29515 Move arm_reset_previous_fndecl and set_target_option_current_node in
29516 the conditional part. Call save_restore_target_globals.
29517 * config/arm/arm.c (arm_set_current_function):
29518 Refactor to better support #pragma target and attribute mix.
29519 Call save_restore_target_globals.
29520 * config/arm/arm-protos.h (save_restore_target_globals): New function.
29521
29522 2016-01-27 Martin Liska <mliska@suse.cz>
29523
29524 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
29525 reference for an HSA kernel and its host function.
29526
29527 2016-01-27 Jakub Jelinek <jakub@redhat.com>
29528
29529 PR tree-optimization/69399
29530 * wide-int.h (wi::lrshift): For larger precisions, only
29531 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
29532
29533 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
29534
29535 * config/arc/predicates.md (proper_comparison_operator): Reject
29536 constant-constant comparison.
29537
29538 2016-01-26 Tom de Vries <tom@codesourcery.com>
29539
29540 PR tree-optimization/69110
29541 * tree-data-ref.c (initialize_data_dependence_relation): Handle
29542 DR_NUM_DIMENSIONS == 0.
29543
29544 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
29545 Sebastian Pop <s.pop@samsung.com>
29546
29547 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
29548 isl_ast_op_cond and isl_ast_op_select.
29549 (gcc_expression_from_isl_expr_op): Same.
29550
29551 2016-01-26 Jason Merrill <jason@redhat.com>
29552
29553 PR c++/68782
29554 * tree.c (recompute_constructor_flags): Split out from
29555 build_constructor.
29556 (verify_constructor_flags): New.
29557 * tree.h: Declare them.
29558
29559 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
29560
29561 PR rtl-optimization/69217
29562 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
29563 are no TYPE_FIELDS set for the record type.
29564
29565 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29566
29567 PR target/68662
29568 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
29569 toc_label_name unconditionally.
29570 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
29571 SYMBOL_REF string. Use toc_label_name instead of constructing
29572 LCTOC1.
29573 (rs6000_elf_declare_function_name): Use toc_label_name instead of
29574 constructing LCTOC1.
29575
29576 2016-01-26 Martin Sebor <msebor@redhat.com>
29577
29578 PR other/69477
29579 * doc/extend.texi (Common Type Attributes): Move text that talks about
29580 attribute packed from attribute aligned to the section discussing
29581 the former attribute for clarity.
29582
29583 2016-01-26 Richard Henderson <rth@redhat.com>
29584
29585 PR middle-end/60908
29586 * trans-mem.c (tm_region_init): Mark entry block as visited.
29587
29588 2016-01-26 David Malcolm <dmalcolm@redhat.com>
29589
29590 PR other/69006
29591 * diagnostic-show-locus.c (layout::print_source_line): Replace
29592 call to pp_newline with call to layout::print_newline.
29593 (layout::print_annotation_line): Likewise.
29594 (layout::move_to_column): Likewise.
29595 (layout::print_any_fixits): After printing any fixits, print a
29596 trailing newline, if necessary.
29597 (layout::print_newline): New method, resetting any colorization
29598 before a newline.
29599 (diagnostic_show_locus): Move the pp_newline to before the
29600 early bailout. Remove dummy block enclosing the layout instance.
29601 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
29602 of pp_newline_and_flush with pp_flush.
29603 (diagnostic_append_note): Delete use of pp_newline.
29604 (diagnostic_append_note_at_rich_loc): Delete.
29605 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
29606 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
29607 when newline characters are added to the buffer.
29608
29609 2016-01-26 Michael Matz <matz@suse.de>
29610
29611 * configure.ac (ac_cv_std_swap_in_utility): New test.
29612 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
29613 * configure: Regenerate.
29614 * config.in: Regenerate.
29615
29616 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
29617
29618 * config/arc/arc.md (cstoresi4): Force operand into register.
29619 (arcset<code>): Fix predicate.
29620 (arcsetltu): Likewise.
29621 (arcsetgeu): Likewise.
29622 (arcsethi): Likewise.
29623 (arcsetls): Likewise.
29624
29625 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29626
29627 PR tree-optimization/69483
29628 * gimple-fold.c (canonicalize_constructor_val): Return NULL
29629 if base has error_mark_node type.
29630
29631 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
29632
29633 PR target/68620
29634 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
29635 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
29636 New helper macros.
29637 (vget_lane_f16): Handle big-endian.
29638 (vgetq_lane_f16): Likewise.
29639 (vset_lane_f16): Likewise.
29640 (vsetq_lane_f16): Likewise.
29641 * config/arm/iterators.md (VQXMOV): Add V8HF.
29642 (VDQ): Add V4HF and V8HF.
29643 (V_reg): Handle V4HF and V8HF.
29644 (Is_float_mode): Likewise.
29645 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
29646 neon_vdup_nv8hf): New patterns.
29647 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
29648 Use VD_LANE iterator.
29649 (neon_vld1_dup<mode>): Use VQ2 iterator.
29650
29651 2016-01-26 Nathan Sidwell <nathan@acm.org>
29652
29653 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
29654 (set_oacc_fn_attrib): Add IS_KERNEL arg.
29655 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
29656 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
29657 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
29658 (oacc_validate_dims): Add LEVEL arg, don't return level.
29659 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
29660 oacc_validate_dims.
29661 (execute_oacc_device_lower): Adjust, add more dump output.
29662 * tree-ssa-loop.c (gate_oacc_kernels): Use
29663 oacc_fn_attrib_kernels_p.
29664 * tree-parloops.c (create_parallel_loop): Adjust
29665 set_oacc_fn_attrib call.
29666
29667 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29668
29669 PR lto/69254
29670 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
29671 (append_compiler_options): Handle -fcilkplus.
29672 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
29673
29674 2016-01-26 Nick Clifton <nickc@redhat.com>
29675
29676 PR target/66655
29677 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
29678 been marked as DECL_ONE_ONLY but we do not the means to make it
29679 so, then do not allow it to bind locally.
29680
29681 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29682
29683 PR lto/69254
29684 * opts.h (parse_sanitizer_options): New prototype.
29685 * opts.c (sanitizer_opts): New array.
29686 (parse_sanitizer_options): New function.
29687 (common_handle_option): Use parse_sanitizer_options.
29688
29689 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
29690
29691 PR target/68986
29692 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
29693 alignment adjustment to ...
29694 (ix86_update_stack_boundary): Here. Don't over-align stack for
29695 __tls_get_addr.
29696 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
29697 if __tls_get_addr is called.
29698
29699 2016-01-26 Christian Bruel <christian.bruel@st.com>
29700
29701 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
29702
29703 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
29704
29705 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
29706
29707 2016-01-26 Richard Biener <rguenther@suse.de>
29708
29709 PR middle-end/69467
29710 * match.pd: Guard X * CST CMP 0 pattern with single_use.
29711
29712 2016-01-26 Richard Biener <rguenther@suse.de>
29713
29714 PR tree-optimization/69452
29715 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
29716 (move_computations_dom_walker::before_dom_children): Rename
29717 to ...
29718 (move_computations_worker): This.
29719 (move_computations): Perform an RPO rather than a DOM walk.
29720
29721 2016-01-26 Jakub Jelinek <jakub@redhat.com>
29722
29723 PR target/69442
29724 * combine.c (combine_instructions): For REG_EQUAL note with
29725 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
29726 to the underlying register.
29727 * doc/rtl.texi (REG_EQUAL): Document the behavior of
29728 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
29729
29730 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
29731
29732 PR target/67896
29733 * config/aarch64/aarch64-builtins.c
29734 (aarch64_init_simd_builtin_types): Do not set structural
29735 equality to __Poly{8,16,64,128}_t types.
29736
29737 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
29738
29739 PR tree-optimization/69400
29740 * wide-int.cc (wi_pack): Take the precision as argument and
29741 perform canonicalization here rather than in the callers.
29742 Use the main loop to handle all full-width HWIs. Add a
29743 zero HWI if in_len isn't a full result.
29744 (wi::divmod_internal): Update accordingly.
29745 (wi::mul_internal): Likewise. Simplify.
29746
29747 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29748 Sebastian Pop <s.pop@samsung.com>
29749
29750 * graphite-poly.c (apply_poly_transforms): Simplify.
29751 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
29752 (print_isl_map): Same.
29753 (print_isl_union_map): Same.
29754 (print_isl_schedule): New.
29755 (debug_isl_schedule): New.
29756 * graphite-dependences.c (scop_get_reads): Do not call
29757 isl_union_map_add_map that is undocumented isl functionality.
29758 (scop_get_must_writes): Same.
29759 (scop_get_may_writes): Same.
29760 (scop_get_original_schedule): Remove.
29761 (scop_get_dependences): Do not call isl_union_map_compute_flow that
29762 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
29763 (compute_deps): Remove.
29764 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
29765 (debug_schedule_ast): New.
29766 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
29767 set_separate_option.
29768 (graphite_regenerate_ast_isl): Add dump.
29769 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
29770 from scop->transformed_schedule.
29771 (graphite_regenerate_ast_isl): Add more dump.
29772 * graphite-optimize-isl.c (optimize_isl): Set
29773 scop->transformed_schedule. Check whether schedules are equal.
29774 (apply_poly_transforms): Move here.
29775 * graphite-poly.c (apply_poly_transforms): ... from here.
29776 (free_poly_bb): Static.
29777 (free_scop): Static.
29778 (pbb_number_of_iterations_at_time): Remove.
29779 (print_isl_ast): New.
29780 (debug_isl_ast): New.
29781 (debug_scop_pbb): New.
29782 * graphite-scop-detection.c (print_edge): Move.
29783 (print_sese): Move.
29784 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
29785 (build_scop_scattering): Remove.
29786 (create_pw_aff_from_tree): Assert instead of bailing out.
29787 (add_condition_to_pbb): Remove unused code, do not fail.
29788 (add_conditions_to_domain): Same.
29789 (add_conditions_to_constraints): Remove.
29790 (build_scop_context): New.
29791 (add_iter_domain_dimension): New.
29792 (build_iteration_domains): Initialize pbb->iterators.
29793 Call add_conditions_to_domain.
29794 (nested_in): New.
29795 (loop_at): New.
29796 (index_outermost_in_loop): New.
29797 (index_pbb_in_loop): New.
29798 (outermost_pbb_in): New.
29799 (add_in_sequence): New.
29800 (add_outer_projection): New.
29801 (outer_projection_mupa): New.
29802 (add_loop_schedule): New.
29803 (build_schedule_pbb): New.
29804 (build_schedule_loop): New.
29805 (embed_in_surrounding_loops): New.
29806 (build_schedule_loop_nest): New.
29807 (build_original_schedule): New.
29808 (build_poly_scop): Call build_original_schedule.
29809 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
29810 (free_poly_dr): Remove.
29811 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
29812 (free_poly_bb): Remove.
29813 (debug_loop_vec): Remove.
29814 (print_isl_ast): Declare.
29815 (debug_isl_ast): Declare.
29816 (scop_do_interchange): Remove.
29817 (scop_do_strip_mine): Remove.
29818 (scop_do_block): Remove.
29819 (flatten_all_loops): Remove.
29820 (optimize_isl): Remove.
29821 (pbb_number_of_iterations_at_time): Remove.
29822 (debug_scop_pbb): Declare.
29823 (print_schedule_ast): Declare.
29824 (debug_schedule_ast): Declare.
29825 (struct scop): Remove schedule. Add original_schedule,
29826 transformed_schedule.
29827 (free_gimple_poly_bb): Remove.
29828 (print_generated_program): Remove.
29829 (debug_generated_program): Remove.
29830 (unify_scattering_dimensions): Remove.
29831 * sese.c (print_edge): ... here.
29832 (print_sese): ... here.
29833 (debug_edge): ... here.
29834 (debug_sese): ... here.
29835 * sese.h (print_edge): Declare.
29836 (print_sese): Declare.
29837 (dump_edge): Declare.
29838 (dump_sese): Declare.
29839
29840 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
29841 Sebastian Pop <s.pop@samsung.com>
29842
29843 * Makefile.in: Set ISLVER in site.exp.
29844
29845 2016-01-25 Jakub Jelinek <jakub@redhat.com>
29846
29847 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
29848 DECL_VALUE_EXPR of new_var even for the non-array case. Look
29849 through DECL_VALUE_EXPR for expansion.
29850
29851 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
29852
29853 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
29854 the frame info after reload completed.
29855
29856 2016-01-25 Jeff Law <law@redhat.com>
29857
29858 PR tree-optimization/69196
29859 PR tree-optimization/68398
29860 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
29861 tree-ssa-threadupdate.c.
29862 (determine_bb_domination_status): Prototype
29863 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
29864 (determine_bb_domination_status): No longer static.
29865 (valid_jump_thread_path): Remove code to detect characteristics
29866 of the jump thread path not associated with correctness.
29867 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
29868 Correct test for thread path length. Count PHIs for real operands as
29869 statements that need to be copied. Do not count ASSERT_EXPRs.
29870 Look at all the blocks in the thread path. Compute and selectively
29871 filter thread paths based on threading through the latch, threading
29872 a multiway branch or crossing a multiway branch.
29873
29874 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29875
29876 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
29877 decl with __attribute__ ((unused)) annotation.
29878
29879 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
29880
29881 PR target/69421
29882 * tree-vect-stmts.c (vectorizable_condition): Check vectype
29883 of operands is compatible with a statement vectype.
29884
29885 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
29886
29887 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
29888 improve wording for mixed storage order support.
29889
29890 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
29891
29892 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
29893 (vcvt_u64_f64): Likewise.
29894 (vcvta_s64_f64): Likewise.
29895 (vcvta_u64_f64): Likewise.
29896 (vcvtm_s64_f64): Likewise.
29897 (vcvtm_u64_f64): Likewise.
29898 (vcvtn_s64_f64): Likewise.
29899 (vcvtn_u64_f64): Likewise.
29900 (vcvtp_s64_f64): Likewise.
29901 (vcvtp_u64_f64): Likewise.
29902
29903 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
29904
29905 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
29906 (arc_init): Check validity mll64 option.
29907 (arc_save_restore): Use double load/store instruction.
29908 (arc_expand_movmem): Likewise.
29909 (arc_split_move): Don't split if we have double load/store
29910 instructions. Returns a boolean.
29911 (arc_process_double_reg_moves): Change function to return boolean
29912 instead of a sequence of instructions.
29913 (arc_dwarf_register_span): New function.
29914 * config/arc/arc-protos.h (arc_split_move): Change prototype.
29915 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
29916 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
29917 (*movdf_insn): Likewise.
29918 * config/arc/arc.opt (mll64): New option.
29919 * config/arc/predicates.md (even_register_operand): New predicate.
29920 * doc/invoke.texi (ARC Options): Add mll64 documentation.
29921
29922 2016-01-25 Richard Biener <rguenther@suse.de>
29923
29924 PR lto/69393
29925 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
29926 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
29927 DECL_NAMELESS.
29928 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
29929
29930 2016-01-25 Richard Biener <rguenther@suse.de>
29931
29932 PR tree-optimization/69376
29933 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
29934 flag.
29935 (VN_INFO_ANTI_RANGE_P): New inline.
29936 (VN_INFO_RANGE_TYPE): Likewise.
29937 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
29938 SSA_NAME_ANTI_RANGE_P.
29939 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
29940 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29941 Properly query VN_INFO_RANGE_TYPE.
29942
29943 2016-01-25 Nick Clifton <nickc@redhat.com>
29944
29945 PR target/66655
29946 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
29947
29948 2016-01-23 Tom de Vries <tom@codesourcery.com>
29949
29950 PR tree-optimization/69426
29951 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
29952 removed clobber.
29953
29954 2016-01-23 Jakub Jelinek <jakub@redhat.com>
29955
29956 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
29957 "the the" with "the" in the comments.
29958 * ipa-devirt.c (build_type_inheritance_graph,
29959 update_type_inheritance_graph): Likewise.
29960 * tree.c (build_function_type_list_1): Likewise.
29961 * cfgloopmanip.c (scale_loop_profile): Likewise.
29962 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
29963 * gimple-ssa-split-paths.c
29964 (find_block_to_duplicate_for_splitting_paths): Likewise.
29965 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
29966 * expr.c (convert_move): Likewise.
29967 * var-tracking.c (vt_stack_adjustments): Likewise.
29968 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
29969 * tree-vrp.c (test_for_singularity): Likewise.
29970
29971 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
29972 directly instead of building a temporary tree.
29973
29974 PR bootstrap/69434
29975 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
29976 remove <algorithm> include.
29977
29978 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29979
29980 PR target/69432
29981 * config/i386/i386.c: Include dojump.h.
29982 (expand_small_movmem_or_setmem,
29983 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
29984 fixes.
29985 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
29986 if dynamic_check != -1.
29987
29988 2016-01-21 Jeff Law <law@redhat.com>
29989
29990 PR middle-end/69347
29991 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
29992 record_temporary_equivalences. Rewritten to avoid unnecessary calls
29993 into dominated_by_p.
29994 (cprop_into_successor_phis): Avoid unnecessary tests.
29995
29996 2016-01-22 Richard Henderson <rth@redhat.com>
29997
29998 PR target/69416
29999 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
30000 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
30001
30002 2016-01-22 Michael Matz <matz@suse.de>
30003
30004 * system.h (string, algorithm): Include only conditionally.
30005 (new): Include always under C++.
30006 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
30007 * final.c (toplevel): Ditto.
30008 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
30009 * genconditions.c (write_header): Make gencondmd.c define
30010 INCLUDE_STRING.
30011 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
30012
30013 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
30014 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
30015
30016 2016-01-22 Christian Bruel <christian.bruel@st.com>
30017
30018 PR target/68674
30019 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
30020
30021 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30022
30023 PR target/69403
30024 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
30025 define_insn_and_split. Ensure operands[1] and operands[0] do not
30026 get assigned the same register.
30027
30028 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
30029
30030 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
30031
30032 2016-01-22 Christian Bruel <christian.bruel@st.com>
30033
30034 * config/arm/arm-c.c (arm_pragma_target_parse):
30035 Remove warn_builtin_macro_redefined overwrite.
30036
30037 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30038
30039 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
30040 flag_non_call_exceptions compatibility.
30041
30042 2016-01-22 Jakub Jelinek <jakub@redhat.com>
30043
30044 PR debug/66668
30045 * dwarf2out.c (add_child_die_after): New function.
30046 (dwarf_qual_info_t): New type.
30047 (dwarf_qual_info): New variable.
30048 (qualified_die_p): New function.
30049 (modified_type_die): For -fdebug-types-section, ensure
30050 canonical order of qualifiers. Put qualified DIEs adjacent
30051 to the corresponding non-qualified type DIE and search there
30052 for existing qualified DIEs.
30053
30054 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
30055
30056 * doc/extend.texi (scalar_storage_order type attribute): Document
30057 restriction on type punning and aliasing, and remove future tense.
30058
30059 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
30060
30061 PR target/69252
30062 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
30063 first stage.
30064
30065 2016-01-21 Jeff Law <law@redhat.com>
30066
30067 PR middle-end/69347
30068 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
30069 useless call to record_temporary_equivalences.
30070 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
30071 allocate 10 slots in the bb_path vector and let it grow as needed.
30072 (fsm_find_control_statement_thread_paths): Similarly for the next_path
30073 vector.
30074
30075 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30076
30077 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
30078 Detangle.
30079 * configure: Regenerate.
30080
30081 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
30082
30083 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
30084 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
30085
30086 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
30087
30088 PR middle-end/66178
30089 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
30090 drop EXPAND_INITIALIZER.
30091 * rtl.h (contains_symbolic_reference_p): Declare.
30092 * rtlanal.c (contains_symbolic_reference_p): New function.
30093 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
30094 a subtraction into a NOT if symbolic constants are involved.
30095
30096 2016-01-21 Anton Blanchard <anton@samba.org>
30097 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30098
30099 PR target/63354
30100 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
30101 #define.
30102 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30103 function.
30104
30105 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30106
30107 * config/microblaze/microblaze.c
30108 (get_branch_target): New.
30109 (insert_wic_for_ilb_runout): New.
30110 (insert_wic): New.
30111 (microblaze_machine_dependent_reorg): New.
30112 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
30113 * config/microblaze/microblaze.md
30114 (UNSPEC_IPREFETCH): Define.
30115 (iprefetch): New pattern
30116 * config/microblaze/microblaze.opt
30117 (mxl-prefetch): New flag.
30118
30119 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
30120
30121 * config/microblaze/microblaze.h
30122 (FIXED_REGISTERS): Update in macro.
30123 (CALL_USED_REGISTERS): Update in macro.
30124
30125 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
30126
30127 PR rtl-optimization/68920
30128 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
30129 moves.
30130
30131 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
30132
30133 PR rtl-optimization/68990
30134 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
30135 pseudo instead of inheritance ones.
30136
30137 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30138 Nick Clifton <nickc@redhat.com>
30139
30140 PR target/69129
30141 PR target/69012
30142 * config/mips/mips.c (mips_compute_frame_info): Initialise
30143 args_size and hard_frame_pointer_offset fields of the frame
30144 structure before calling mips_global_pointer.
30145
30146 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
30147
30148 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
30149 label reference.
30150 * configure: Regenerate.
30151
30152 2016-01-21 Richard Biener <rguenther@suse.de>
30153
30154 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
30155
30156 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30157
30158 * config/s390/s390.c (s390_asm_declare_function_size): Add code
30159 to actually emit the .size directive.
30160
30161 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
30162 Jakub Jelinek <jakub@redhat.com>
30163
30164 PR target/69187
30165 PR target/65624
30166 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
30167 args array size by one to avoid buffer overflow.
30168
30169 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
30170
30171 * config/s390/s390.md (pool_section_start): Use switch_to_section
30172 to select proper read-only data section instead of hardcoding
30173 .rodata.
30174 (pool_section_end): Use switch_to_section to match the above.
30175
30176 2016-01-21 Richard Biener <rguenther@suse.de>
30177
30178 PR tree-optimization/69378
30179 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
30180 (set_ssa_val_to): Use it for dominance checks taking into
30181 account not executable edges.
30182
30183 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30184
30185 PR c++/69355
30186 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
30187 for bitsize instead of GET_MODE_PRECISION (mode).
30188
30189 2016-01-20 Martin Sebor <msebor@redhat.com>
30190
30191 PR c/52291
30192 * extend.texi (__sync Builtins): Clarify the semantics of
30193 __sync_fetch_and_OP built-ins on pointers.
30194 (__atomic Builtins): Same.
30195
30196 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30197 Sebastian Pop <s.pop@samsung.com>
30198
30199 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
30200 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
30201 (is_valid_rename): Same.
30202 (translate_isl_ast_to_gimple::get_rename): Same.
30203 (translate_isl_ast_to_gimple::rename_all_uses): Same.
30204 (translate_isl_ast_to_gimple::rename_uses): Same.
30205 (get_new_name): Check for close_phi nodes.
30206 (copy_loop_phi_args): Use phi_node_kind.
30207 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
30208 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
30209
30210 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30211 Sebastian Pop <s.pop@samsung.com>
30212
30213 Revert commit r229783.
30214 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
30215 Remove use of parameter_rename_map.
30216 (copy_def): Remove.
30217 (copy_internal_parameters): Remove.
30218 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
30219 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
30220 (free_sese_info): Do not free parameter_rename_map.
30221 (set_rename): Do not use parameter_rename_map.
30222 (rename_uses): Update call to set_rename.
30223 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
30224 * sese.h (parameter_rename_map_t): Remove.
30225 (struct sese_info_t): Remove field parameter_rename_map.
30226
30227 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30228 Sebastian Pop <s.pop@samsung.com>
30229
30230 * graphite-isl-ast-to-gimple.c: Fix comment.
30231 * graphite-scop-detection.c (defined_in_loop_p): New.
30232 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
30233 names defined in loop.
30234
30235 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30236 Sebastian Pop <s.pop@samsung.com>
30237
30238 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
30239 Discard unstructured if-then-else regions.
30240
30241 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30242 Sebastian Pop <s.pop@samsung.com>
30243
30244 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
30245 (cleanup_loop_iter_dom): Remove.
30246 (build_loop_iteration_domains): Remove.
30247 (build_scop_context): Remove.
30248 (build_scop_iteration_domain): Remove.
30249 (add_loop_constraints): New.
30250 (build_iteration_domains): New.
30251 (build_poly_scop): Call build_iteration_domains.
30252
30253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30254 Sebastian Pop <s.pop@samsung.com>
30255
30256 * graphite-scop-detection.c
30257 (scop_detection::harmful_loop_in_region): Free dom and loops.
30258 (scop_detection::loop_body_is_valid_scop): Free bbs.
30259
30260 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30261 Sebastian Pop <s.pop@samsung.com>
30262
30263 * graphite-scop-detection.c (record_loop_in_sese): New.
30264 (gather_bbs::before_dom_children): Call record_loop_in_sese.
30265 (build_scops): Remove call to build_sese_loop_nests.
30266 * sese.c (sese_record_loop): Remove.
30267 (build_sese_loop_nests): Remove.
30268 (new_sese_info): Remove region->loops.
30269 (free_sese_info): Same.
30270 * sese.h (sese_contains_loop): Same.
30271 (build_sese_loop_nests): Remove.
30272 (sese_contains_loop): Remove.
30273
30274 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30275 Sebastian Pop <s.pop@samsung.com>
30276
30277 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
30278 loop_is_valid_in_scop.
30279 (scop_detection::harmful_stmt_in_region): Renamed
30280 harmful_loop_in_region.
30281 Call loop_is_valid_in_scop.
30282
30283 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30284 Sebastian Pop <s.pop@samsung.com>
30285
30286 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
30287 isl_ast_node_mark.
30288
30289 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30290 Sebastian Pop <s.pop@samsung.com>
30291
30292 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
30293 * graphite.h (struct poly_bb): Remove field is_reduction.
30294 (PBB_IS_REDUCTION): Remove.
30295
30296 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
30297 Sebastian Pop <s.pop@samsung.com>
30298
30299 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
30300 (add_pdr_constraints): Same.
30301 (scop_get_reads): Same.
30302 (scop_get_must_writes): Same.
30303 (scop_get_may_writes): Same.
30304 (scop_get_original_schedule): Same.
30305 (extend_schedule): Same.
30306 (apply_schedule_on_deps): Same.
30307 (carries_deps): Same.
30308 (compute_deps): Same.
30309 (scop_get_dependences): Same.
30310 * graphite-isl-ast-to-gimple.c
30311 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
30312 * graphite-optimize-isl.c (get_schedule_for_band): Same.
30313 (get_schedule_for_band_list): Same.
30314 (get_schedule_map): Same.
30315 (apply_schedule_map_to_scop): Same.
30316 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30317 (build_loop_iteration_domains): Same.
30318 (add_condition_to_pbb): Same.
30319 (add_param_constraints): Same.
30320 (pdr_add_memory_accesses): Same.
30321 (pdr_add_data_dimensions): Same.
30322
30323 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30324
30325 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
30326 requirements.
30327
30328 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
30329
30330 * common.opt (feliminate-dwarf2-dups): Replace references to
30331 "DWARF 2" with just "DWARF".
30332 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
30333 * doc/extend.texi: Likewise.
30334 * doc/cpp.texi: Likewise.
30335 * doc/invoke.texi: Likewise.
30336 (Option Summary): Add -gdwarf to list of Debugging Options.
30337 (Debugging Options): Document -gdwarf.
30338 * doc/contrib.texi: Spell "DWARF" like that.
30339
30340 2016-01-21 Jakub Jelinek <jakub@redhat.com>
30341
30342 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
30343 warning. Fix up formatting.
30344
30345 PR middle-end/67653
30346 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
30347 attempt to mark memory input operand addressable and
30348 call prepare_gimple_addressable in that case. Don't adjust
30349 input_location for diagnostics, use error_at instead.
30350
30351 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
30352
30353 * config/rs6000/ppc-auxv.h: New file.
30354 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
30355 (cpu_is): Likewise.
30356 (cpu_supports): Likewise.
30357 * config/rs6000/rs6000.c: include "ppc-auxv.h".
30358 (cpu_is_info): New variable.
30359 (cpu_supports_info): Likewise.
30360 (tcb_verification_symbol): Likewise.
30361 (cpu_builtin_p): Likewise.
30362 (cpu_expand_builtin): New function.
30363 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
30364 (rs6000_init_builtins): Likewise.
30365 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
30366 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
30367 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
30368 * configure: Regenerate.
30369 * config.in: Likewise.
30370 * doc/extend.texi (PowerPC Built-in Functions): Document
30371 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
30372
30373 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
30374
30375 PR target/68609
30376 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
30377 domain check.
30378 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
30379 for V4SFmode.
30380
30381 2016-01-20 Richard Henderson <rth@redhat.com>
30382
30383 PR bootstrap/69343
30384 PR bootstrap/69339
30385 PR tree-opt/68964
30386 Revert:
30387 * tree.c (tm_define_builtin): New.
30388 (find_tm_vector_type): New.
30389 (build_tm_vector_builtins): New.
30390 (build_common_builtin_nodes): Call it.
30391
30392 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
30393
30394 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
30395 (arm_fp_ok): Likewise.
30396 (arm_fp): Likewise.
30397 (arm_crypto): Likewise.
30398
30399 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30400 Richard Biener <rguenther@suse.de>
30401
30402 PR tree-optimization/69328
30403 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
30404 vectors have same number of elements.
30405 (vectorizable_condition): Fix masked version recognition.
30406
30407 2016-01-20 Richard Biener <rguenther@suse.de>
30408
30409 PR tree-optimization/69345
30410 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
30411 (VN_INFO_PTR_INFO): Likewise.
30412 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
30413 info when it is equal between non-dominating SSA names.
30414 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30415 Make sure to look at original SSA infos.
30416
30417 2016-01-20 Jeff Law <law@redhat.com>
30418
30419 PR target/25114
30420 * config/m68k/predicates.md (pow2_m1_operand): New predicate
30421 extracted from ...
30422 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
30423 (pc_or_label_operand): New predicate.
30424 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
30425 tests for small integers that are 2^n - 1.
30426
30427 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
30428
30429 * doc/invoke.texi (Options Summary): Add '.' after @xref.
30430
30431 2016-01-19 Jeff Law <law@redhat.com>
30432
30433 PR middle-end/69347
30434 * tree-ssa-threadbackwards.c
30435 (fsm_find_control_statement_thread_paths): Do not try to lookup
30436 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
30437
30438 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30439
30440 * doc/lto.texi: Remove text that says only Gold has linker plugin
30441 support.
30442
30443 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
30444
30445 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
30446 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
30447 the DIE accordingly.
30448 (modified_type_die): Add REVERSE parameter and pass it recursively,
30449 as well as to base_type_die. Adjust presence check accordingly.
30450 (base_type_for_mode): Adjust call to modified_type_die.
30451 (add_type_attribute): Add REVERSE parameter and pass it to
30452 modified_type_die.
30453 (generic_parameter_die): Adjust call to add_type_attribute.
30454 (add_scalar_info): Likewise.
30455 (add_subscript_info): Likewise.
30456 (gen_array_type_die): Likewise.
30457 (gen_descr_array_type_die): Likewise.
30458 (gen_entry_point_die): Likewise.
30459 (gen_enumeration_type_die): Likewise.
30460 (gen_formal_parameter_die): Likewise.
30461 (gen_subprogram_die): Likewise.
30462 (gen_variable_die ): Likewise.
30463 (gen_const_die): Likewise.
30464 (gen_field_die): Likewise.
30465 (gen_pointer_type_die): Likewise.
30466 (gen_reference_type_die): Likewise.
30467 (gen_ptr_to_mbr_type_die): Likewise.
30468 (gen_inheritance_die): Likewise.
30469 (gen_subroutine_type_die): Likewise.
30470 (gen_typedef_die): Likewise.
30471 (force_type_die): Adjust call to modified_type_die.
30472
30473 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
30474
30475 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
30476 flow throughout the file. Fix broken link to Objective-C 2.0
30477 documentation.
30478 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
30479 errors.
30480
30481 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30482
30483 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
30484
30485 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30486
30487 PR ipa/66223
30488 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
30489 (maybe_record_node): Record cxa_pure_virtual as the only possible
30490 target if there are not ohter candidates.
30491 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
30492
30493 2016-01-19 Richard Biener <rguenther@suse.de>
30494
30495 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
30496 (get_memory_order): Likewise.
30497
30498 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
30499
30500 * tree-vect-stmts.c (vectorizable_store): Check
30501 rhs vectype.
30502
30503 2016-01-19 David Malcolm <dmalcolm@redhat.com>
30504
30505 PR jit/68446
30506 * gcc.c (driver::decode_argv): Add call to
30507 init_opts_obstack before init_options_struct.
30508 * opts.c (init_opts_obstack): Remove idempotency.
30509 (init_options_struct): Replace call to init_opts_obstack
30510 with a gcc_assert to verify that it has already been called.
30511 * toplev.c (toplev::main): Add call to init_opts_obstack before
30512 calls to init_options_struct.
30513 (toplev::finalize): Move cleanup of opts_obstack next to
30514 cleanup of save_decoded_options, clearing the latter, and
30515 save_decoded_options_count.
30516
30517 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30518
30519 PR target/69135
30520 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
30521 attribute to unconditional. Remove %? from output template.
30522
30523 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30524 Jiong Wang <jiong.wang@arm.com>
30525
30526 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
30527 generated from different expand order.
30528
30529 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30530
30531 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
30532 Add support for CCMP costing.
30533
30534 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30535
30536 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
30537 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
30538 (fccmpe<mode>): Likewise.
30539 (fcmp): Rename to fcmp and globalize pattern.
30540 (fcmpe): Likewise.
30541 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
30542 (aarch64_gen_ccmp_next): Add FP support.
30543
30544 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
30545
30546 * target.def (gen_ccmp_first): Update documentation.
30547 (gen_ccmp_next): Likewise.
30548 * doc/tm.texi (gen_ccmp_first): Update documentation.
30549 (gen_ccmp_next): Likewise.
30550 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
30551 expand_ccmp_expr_1. Improve comments.
30552 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
30553 (ccmp_ior<mode>): Remove pattern.
30554 (cmp<mode>): Remove expand.
30555 (cmp): Globalize pattern.
30556 (cstorecc4): Use cc_register.
30557 (mov<mode>cc): Remove ccmp_cc_register check.
30558 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
30559 Simplify after removal of CC_DNE/* modes.
30560 (aarch64_ccmp_mode_to_code): Remove.
30561 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
30562 In 'k' case use integer as condition.
30563 (aarch64_nzcv_codes): Remove inverted cases.
30564 (aarch64_code_to_ccmode): Remove.
30565 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
30566 comparison with CC register to be used in folowing CCMP/branch/CSEL.
30567 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
30568 pattern. Return the comparison with CC register. Invert conditions
30569 when bitcode is OR.
30570 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
30571 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
30572
30573 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30574
30575 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30576 instrumented_version.
30577
30578 2016-01-19 Richard Biener <rguenther@suse.de>
30579
30580 PR tree-optimization/69336
30581 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
30582 handled components with get_ref_base_and_extent.
30583 (equal_mem_array_ref_p): Adjust.
30584
30585 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30586
30587 PR debug/65779
30588 * shrink-wrap.c: Include valtrack.h.
30589 (move_insn_for_shrink_wrap): Add DEBUG argument. If
30590 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
30591 in between insn and where it will be moved to. Call
30592 dead_debug_insert_temp.
30593 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
30594 first and dead_debug_local_finish at the end.
30595 For uses and defs bitmap, handle all regs in between REGNO and
30596 END_REGNO, not just the first one.
30597
30598 2016-01-19 Richard Biener <rguenther@suse.de>
30599
30600 PR tree-optimization/69352
30601 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
30602 (equal_mem_array_ref_p): Constrain size and max size properly.
30603 Compare the reverse flag.
30604
30605 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
30606
30607 * ira.c (ira): Update regstat data if we deleted insns.
30608
30609 2016-01-19 Jakub Jelinek <jakub@redhat.com>
30610
30611 PR rtl-optimization/68955
30612 PR rtl-optimization/64557
30613 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
30614 here. Fix up formatting.
30615 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
30616
30617 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30618
30619 PR lto/69133
30620 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
30621 assume that the node has body.
30622 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
30623 check.
30624
30625 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30626
30627 * lto-streamer-out.c (lto_output): Do not stream instrumentation
30628 thunks.
30629
30630 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30631
30632 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
30633 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
30634
30635 2016-01-19 Martin Jambor <mjambor@suse.cz>
30636 Martin Liska <mliska@suse.cz>
30637 Michael Matz <matz@suse.de>
30638
30639 * Makefile.in (OBJS): Add new source files.
30640 (GTFILES): Add hsa.c.
30641 * common.opt (disable_hsa): New variable.
30642 (-Whsa): New warning.
30643 * config.in (ENABLE_HSA): New.
30644 * configure.ac: Treat hsa differently from other accelerators.
30645 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
30646 $enable_offloading.
30647 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
30648 * doc/install.texi (Configuration): Document --with-hsa-runtime,
30649 --with-hsa-runtime-include, --with-hsa-runtime-lib and
30650 --with-hsa-kmt-lib.
30651 * doc/invoke.texi (-Whsa): Document.
30652 (hsa-gen-debug-stores): Likewise.
30653 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
30654 to invoke offload compiler for hsa acclerator.
30655 * opts.c (common_handle_option): Determine whether HSA offloading
30656 should be performed.
30657 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
30658 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
30659 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
30660 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
30661 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
30662 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
30663 GF_OMP_FOR_KIND_GRID_LOOP.
30664 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
30665 (pp_gimple_stmt_1): Likewise.
30666 * gimple-walk.c (walk_gimple_stmt): Likewise.
30667 * gimple.c (gimple_build_omp_grid_body): New function.
30668 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
30669 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
30670 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
30671 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
30672 GF_OMP_TEAMS_GRID_PHONY.
30673 (gimple_statement_omp_single_layout): Updated comments.
30674 (gimple_build_omp_grid_body): New function.
30675 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
30676 (gimple_omp_for_grid_phony): New function.
30677 (gimple_omp_for_set_grid_phony): Likewise.
30678 (gimple_omp_parallel_grid_phony): Likewise.
30679 (gimple_omp_parallel_set_grid_phony): Likewise.
30680 (gimple_omp_teams_grid_phony): Likewise.
30681 (gimple_omp_teams_set_grid_phony): Likewise.
30682 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
30683 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
30684 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
30685 (BUILT_IN_GOMP_TARGET): Updated type.
30686 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
30687 (adjust_for_condition): New function.
30688 (get_omp_for_step_from_incr): Likewise.
30689 (extract_omp_for_data): Moved parts to adjust_for_condition and
30690 get_omp_for_step_from_incr.
30691 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
30692 (fixup_child_record_type): Bail out if receiver_decl is NULL.
30693 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
30694 (scan_omp_parallel): Do not create child functions for phony
30695 constructs.
30696 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
30697 (scan_omp_1_op): Checking assert we are not remapping to
30698 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
30699 (parallel_needs_hsa_kernel_p): New function.
30700 (expand_parallel_call): Register apprpriate parallel child
30701 functions as HSA kernels.
30702 (grid_launch_attributes_trees): New type.
30703 (grid_attr_trees): New variable.
30704 (grid_create_kernel_launch_attr_types): New function.
30705 (grid_insert_store_range_dim): Likewise.
30706 (grid_get_kernel_launch_attributes): Likewise.
30707 (get_target_argument_identifier_1): Likewise.
30708 (get_target_argument_identifier): Likewise.
30709 (get_target_argument_value): Likewise.
30710 (push_target_argument_according_to_value): Likewise.
30711 (get_target_arguments): Likewise.
30712 (expand_omp_target): Call get_target_arguments instead of looking
30713 up for teams and thread limit.
30714 (grid_expand_omp_for_loop): New function.
30715 (grid_arg_decl_map): New type.
30716 (grid_remap_kernel_arg_accesses): New function.
30717 (grid_expand_target_kernel_body): New function.
30718 (expand_omp): Call it.
30719 (lower_omp_for): Do not emit phony constructs.
30720 (lower_omp_taskreg): Do not emit phony constructs but create for them
30721 a temporary variable receiver_decl.
30722 (lower_omp_taskreg): Do not emit phony constructs.
30723 (lower_omp_teams): Likewise.
30724 (lower_omp_grid_body): New function.
30725 (lower_omp_1): Call it.
30726 (grid_reg_assignment_to_local_var_p): New function.
30727 (grid_seq_only_contains_local_assignments): Likewise.
30728 (grid_find_single_omp_among_assignments_1): Likewise.
30729 (grid_find_single_omp_among_assignments): Likewise.
30730 (grid_find_ungridifiable_statement): Likewise.
30731 (grid_target_follows_gridifiable_pattern): Likewise.
30732 (grid_remap_prebody_decls): Likewise.
30733 (grid_copy_leading_local_assignments): Likewise.
30734 (grid_process_kernel_body_copy): Likewise.
30735 (grid_attempt_target_gridification): Likewise.
30736 (grid_gridify_all_targets_stmt): Likewise.
30737 (grid_gridify_all_targets): Likewise.
30738 (execute_lower_omp): Call grid_gridify_all_targets.
30739 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
30740 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
30741 (tree_omp_clause): Added union field dimension.
30742 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
30743 * tree.c (omp_clause_num_ops): Added number of arguments of
30744 OMP_CLAUSE__GRIDDIM_.
30745 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
30746 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
30747 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
30748 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
30749 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
30750 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
30751 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
30752 * tree-pass.h (make_pass_gen_hsail): Declare.
30753 (make_pass_ipa_hsa): Likewise.
30754 * ipa-hsa.c: New file.
30755 * lto-section-in.c (lto_section_name): Add hsa section name.
30756 * lto-streamer.h (lto_section_type): Add hsa section.
30757 * timevar.def (TV_IPA_HSA): New.
30758 * hsa-brig-format.h: New file.
30759 * hsa-brig.c: New file.
30760 * hsa-dump.c: Likewise.
30761 * hsa-gen.c: Likewise.
30762 * hsa.c: Likewise.
30763 * hsa.h: Likewise.
30764 * toplev.c (compile_file): Call hsa_output_brig.
30765 * hsa-regalloc.c: New file.
30766
30767 2016-01-18 Jeff Law <law@redhat.com>
30768
30769 PR tree-optimization/69320
30770 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
30771 ranged object, do nothing if the RHS constant is not [0..1].
30772 (optimize_stmt): Comparing a boolean ranged object against a
30773 constant outside [0..1] results in a compile-time constant.
30774
30775 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
30776 test.
30777
30778 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
30779
30780 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30781 (Option Summary): Update to reflect new section and moved options.
30782 (C++ Dialect Options): Move -fstats to new section.
30783 (Debugging Options): Move all dump, statistics, and other GCC
30784 developer options to new section. Rewrite section introduction
30785 and re-order remaining options to put the more basic ones first.
30786 (Optimization Options): Move -fira-verbose and -flto-report* to
30787 new section.
30788 (Developer Options): New section incorporating moved options.
30789 * doc/cppopts.texi (-dM): Update cross-reference.
30790
30791 2016-01-18 Richard Henderson <rth@redhat.com>
30792
30793 PR target/69176
30794 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
30795 operands to pseudo only if CSE is expected. Split long immediate
30796 operands only after reload, and for the stack pointer.
30797 (*add<GPI>3_pluslong): Remove.
30798 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
30799 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
30800 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
30801 (*add<GPI>3 peepholes): New.
30802 (*add<GPI>3 splitters): New.
30803 * config/aarch64/constraints.md (Upl): New.
30804 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
30805
30806 2016-01-18 Richard Biener <rguenther@suse.de>
30807
30808 PR tree-optimization/69297
30809 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
30810 stmt at most once.
30811 (vect_bb_vectorization_profitable_p): Clear visited flag again.
30812
30813 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30814
30815 PR middle-end/68542
30816 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
30817 of mixind vector and scalar types.
30818 (fold_relational_const): Add handling of vector
30819 comparison with boolean result.
30820 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
30821 comparison of vector operands with boolean result for EQ/NE only.
30822 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
30823 (verify_gimple_cond): Likewise.
30824 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
30825 valid type of VAL.
30826
30827 2016-01-18 Joseph Myers <joseph@codesourcery.com>
30828
30829 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
30830 !TARGET_OCTEON.
30831
30832 2016-01-18 Richard Biener <rguenther@suse.de>
30833
30834 PR middle-end/69308
30835 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
30836
30837 2016-01-18 Tom de Vries <tom@codesourcery.com>
30838
30839 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
30840
30841 2016-01-18 Tom de Vries <tom@codesourcery.com>
30842
30843 * omp-low.c (set_oacc_fn_attrib): Make extern.
30844 * omp-low.h (set_oacc_fn_attrib): Declare.
30845 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
30846 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
30847 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
30848 Add and handle function parameter oacc_kernels_p.
30849 (find_reduc_addr, get_omp_data_i_param): New function.
30850 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
30851 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
30852 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
30853 Calculate dominance info. Skip loops that are not in a kernels region
30854 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
30855 (pass_parallelize_loops::execute): Call parallelize_loops with
30856 oacc_kernels_p argument.
30857 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
30858 New member function.
30859 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
30860 * passes.def: Add argument to pass_parallelize_loops instantation.
30861
30862 2016-01-18 Tom de Vries <tom@codesourcery.com>
30863
30864 * tree-parloops.c (pass_parallelize_loops::execute): Allow
30865 pass_parallelize_loops to be run outside the loop pipeline.
30866
30867 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30868
30869 * tree-scalar-evolution.c (follow_copies_to_constant): New.
30870 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
30871
30872 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30873
30874 PR target/63679
30875 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
30876 using get_ref_base_and_extent.
30877 (equal_mem_array_ref_p): New.
30878 (hashable_expr_equal_p): Add call to previous.
30879
30880 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
30881
30882 PR target/63679
30883 * tree-sra.c (disqualified_constants, constant_decl_p): New.
30884 (sra_initialize): Allocate disqualified_constants.
30885 (sra_deinitialize): Free disqualified_constants.
30886 (disqualify_candidate): Update disqualified_constants when appropriate.
30887 (create_access): Scan for constant-pool entries as we go along.
30888 (scalarizable_type_p): Add check against type_contains_placeholder_p.
30889 (maybe_add_sra_candidate): Allow constant-pool entries.
30890 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
30891 (initialize_constant_pool_replacements): New.
30892 (sra_modify_assign): Avoid mangling assignments created by previous,
30893 and don't generate writes into constant pool.
30894 (sra_modify_function_body): Call initialize_constant_pool_replacements.
30895
30896 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
30897
30898 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
30899 andnot instruction.
30900 (scalar_chain::convert_op): Likewise.
30901 * config/i386/i386.md (*andndi3_doubleword): New.
30902
30903 2016-01-18 Richard Biener <rguenther@suse.de>
30904
30905 PR tree-optimization/69170
30906 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
30907 building a vector from scalar results of a pattern stmt.
30908
30909 2016-01-18 Jakub Jelinek <jakub@redhat.com>
30910
30911 * haifa-sched.c (autopref_multipass_init): Work around
30912 -Wmaybe-uninitialized warning.
30913
30914 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30915
30916 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
30917 against the constant 0.
30918
30919 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30920
30921 PR tree-optimization/68799
30922 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
30923 look up phi candidates in the statement-candidate map.
30924 (phi_add_costs): Likewise.
30925 (record_phi_increments): Likewise.
30926 (phi_incr_cost): Likewise.
30927 (ncd_with_phi): Likewise.
30928 (all_phi_incrs_profitable): Likewise.
30929
30930 2016-01-17 Jakub Jelinek <jakub@redhat.com>
30931
30932 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
30933 -Wmaybe-uninitialized warning.
30934
30935 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
30936
30937 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30938 (Option Summary): Update to reflect new section and moved options.
30939 (C++ Dialect Options): Move -fvtable-verify and related options.
30940 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
30941 and profiling-related options.
30942 (Optimization Options): Move profile generation options and
30943 -fstack-protector and related options.
30944 (Instrumentation Options): New section incorporating moved options.
30945 (Code Generation Options): Move -finstrument-functions and
30946 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
30947
30948 2016-01-16 Tom de Vries <tom@codesourcery.com>
30949
30950 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
30951
30952 2016-01-16 Tom de Vries <tom@codesourcery.com>
30953
30954 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
30955
30956 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
30957
30958 * hash-table.h (hash_table::empty): Turn into an inline wrapper
30959 that checks whether the table is already empty. Rename the
30960 original implementation to...
30961 (hash_table::empty_slot): ...this new private function.
30962
30963 2016-01-15 David Malcolm <dmalcolm@redhat.com>
30964
30965 PR diagnostic/68899
30966 * diagnostic-show-locus.c (layout::print_source_line): Move x
30967 offset of line until after call to
30968 get_line_width_without_trailing_whitespace.
30969
30970 2016-01-15 Jeff Law <law@redhat.com>
30971
30972 PR tree-optimization/69270
30973 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
30974 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
30975 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
30976 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
30977 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
30978 ssa_name_has_boolean_range and constant_boolean_node.
30979
30980 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
30981
30982 PR rtl-optimization/69030
30983 * lra-spills.c (remove_pseudos): Check nrefs and make the function
30984 returning bool.
30985 (spill_pseudos): Delete debug insn for dead pseudo.
30986 (lra_spill): Initiate spill_hard_reg and slots memory separately.
30987
30988 2016-01-15 Jiong Wang <jiong.wang@arm.com>
30989
30990 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
30991 New.
30992 (TYPES_UNOPUS): Likewise.
30993 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
30994 builtin type, from UNOP to UNOPUS.
30995 (lbtruncuv4sf): Likewise.
30996 (lbtruncuv2df): Likewise.
30997 (lrounduv2sf): Likewise.
30998 (lrounduv4sf): Likewise.
30999 (lrounduv2df): Likewise.
31000 (lroundusf): Likewise.
31001 (lroundusf): Likewise.
31002 (lceiluv2sf): Likewise.
31003 (lceiluv4sf): Likewise.
31004 (lceiluv2df): Likewise.
31005 (lceilusf): Likewise.
31006 (lceiludf): Likewise.
31007 (lflooruv2sf): Likewise.
31008 (lflooruv4sf): Likewise.
31009 (lflooruv2df): Likewise.
31010 (lfloorusf): Likewise.
31011 (lfloorudf): Likewise.
31012 (lfrintnuv2sf): Likewise.
31013 (lfrintnuv4sf): Likewise.
31014 (lfrintnuv2df): Likewise.
31015 (lfrintnusf): Likewise.
31016 (lfrintnudf): Likewise.
31017 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
31018 conversion.
31019 (vcvtq_u32_f32): Likewise.
31020 (vcvtq_u64_f64): Likewise.
31021 (vcvta_u32_f32): Likewise.
31022 (vcvtaq_u32_f32): Likewise.
31023 (vcvtaq_u64_f64): Likewise.
31024 (vcvtm_u32_f32): Likewise.
31025 (vcvtmq_u32_f32): Likewise.
31026 (vcvtmq_u64_f64): Likewise.
31027 (vcvtn_u32_f32): Likwise.
31028 (vcvtnq_u32_f32): Likewise.
31029 (vcvtnq_u64_f64): Likewise.
31030 (vcvtp_u32_f32): Likewise.
31031 (vcvtpq_u32_f32): Likewise.
31032 (vcvtpq_u64_f64): Likewise.
31033 (vcvtmd_u64_f64): Likewise.
31034 (vcvtms_u32_f32): Likewise.
31035 (vcvtad_u64_f64): Likewise.
31036 (vcvtas_u32_f32): Likewise.
31037 (vcvtnd_u64_f64): Likewise.
31038 (vcvtns_u32_f32): Likewise.
31039 (vcvtpd_u64_f64): Likewise.
31040 (vcvtps_u32_f32): Likewise.
31041
31042 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31043
31044 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
31045 CSEL of zero_extended registers.
31046
31047 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31048
31049 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31050 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
31051
31052 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31053
31054 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
31055 false when argument string is not found in the attributes table
31056 at all.
31057
31058 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
31059
31060 PR target/68609
31061 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
31062 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
31063 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
31064 precision estimate.
31065
31066 2016-01-15 Richard Biener <rguenther@suse.de>
31067
31068 PR tree-optimization/66856
31069 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
31070 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
31071 (vect_create_new_slp_node): Increment stmt reference count.
31072 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
31073 an SLP tree before swapping operands.
31074 (vect_build_slp_tree): Likewise.
31075 (destroy_bb_vec_info): Free stmt info after SLP instances.
31076 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
31077 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
31078 (STMT_VINFO_NUM_SLP_USES): New macro.
31079
31080 2016-01-15 Richard Biener <rguenther@suse.de>
31081
31082 PR debug/69137
31083 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
31084 (add_linkage_name): ... here.
31085 (gen_typedef_die): Use add_linkage_name_raw instead of
31086 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
31087 if necessary.
31088
31089 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
31090
31091 * gimplify.c (oacc_default_clause): Decode reference and pointer
31092 types for both kernels and parallel regions.
31093
31094 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
31095
31096 PR middle-end/69246
31097 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
31098
31099 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31100
31101 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
31102 (convert_scalars_to_vector): Likewise.
31103
31104 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
31105
31106 * doc/extend.texi (Type Traits): Fix grammar.
31107
31108 2016-01-15 Martin Jambor <mjambor@suse.cz>
31109
31110 * tree-inline.c (remap_decl): Use existing dclarations if
31111 remapping a type and prevent_decl_creation_for_types.
31112 (replace_locals_stmt): Do an initial remapping of non-VLA typed
31113 decls first. Do real remapping with
31114 prevent_decl_creation_for_types set.
31115 * tree-inline.h (copy_body_data): New field
31116 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
31117 padding.
31118
31119 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31120
31121 * config/s390/s390.opt (mmvcle): More verbose help text.
31122
31123 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
31124
31125 * config/s390/s390.opt: Add period to -mzvector option text.
31126
31127 2016-01-15 Richard Biener <rguenther@suse.de>
31128
31129 PR tree-optimization/68961
31130 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
31131 of invariants in stores again.
31132
31133 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
31134
31135 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
31136
31137 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31138
31139 * config/i386/i386.c (ix86_expand_branch): Don't split
31140 DI mode xor instruction to SI mode.
31141
31142 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31143
31144 PR ipa/68148
31145 * ipa-icf.c (sem_function::merge): Virtual functions may become
31146 reachable even if they address is not taken and there are no
31147 idrect calls.
31148
31149 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
31150
31151 * lto-streamer-out.c (subtract_estimated_size): New function.
31152 (get_symbol_initial_value): Use it.
31153
31154 2016-01-15 Christian Bruel <christian.bruel@st.com>
31155
31156 PR target/65837
31157 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
31158 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
31159 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
31160 use add_builtin_function_ext_scope instead of add_builtin_function.
31161 (neon_set_p, neon_crypto_set_p): Remove.
31162 (arm_init_builtins): Always call arm_init_neon_builtins and
31163 arm_init_crypto_builtins.
31164 (arm_expand_builtin): Check that builtins are allowed for the arch.
31165 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
31166 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
31167 arm_init_neon_builtins call.
31168
31169 2016-01-15 Richard Biener <rguenther@suse.de>
31170
31171 PR tree-optimization/69117
31172 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
31173 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
31174 of the leader conservatively.
31175 (free_scc_vn): Restore original SSA name infos.
31176
31177 2016-01-14 Jeff Law <law@redhat.com>
31178
31179 PR tree-optimization/69270
31180 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
31181 single bit of precision, verify it's also unsigned.
31182 (record_edge_info): Use constant_boolean_node rather than fold_convert
31183 to convert boolean_true/boolean_false to the right type.
31184
31185 2016-01-14 Richard Henderson <rth@redhat.com>
31186
31187 PR rtl-opt/69014
31188 * loop-doloop.c (record_reg_sets): New.
31189 (doloop_optimize): Reject the transform if the sequence
31190 clobbers registers live at the end of the loop block.
31191 (doloop_optimize_loops): Enable df_live if needed.
31192
31193 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31194
31195 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
31196 * config/rs6000/rs6000.c: Likewise.
31197 * config/rs6000/rs6000.h: Likewise.
31198 * config/rs6000/rs6000.md: Likewise.
31199 * doc/extend.texi: Likewsie.
31200
31201 2016-01-14 Jeff Law <law@redhat.com>
31202
31203 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
31204 typo.
31205
31206 2016-01-14 Richard Henderson <rth@redhat.com>
31207
31208 PR c/69272
31209 PR tree-opt/68964
31210 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
31211 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
31212 instead of builtin_decl_declared_p to test for declaration.
31213
31214 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
31215
31216 * doc/loop.texi (Loop Analysis and Representation): Document
31217 loop_depth function.
31218
31219 2016-01-14 Tom de Vries <tom@codesourcery.com>
31220
31221 PR tree-optimization/68773
31222 * omp-low.c (expand_omp_target): Don't set force_output.
31223 * varpool.c (varpool_node::get_create): Same.
31224 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
31225 offload_funcs with force_output.
31226
31227 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31228
31229 PR debug/69244
31230 * lra-eliminations.c (move_plus_up): Don't change anything if either
31231 the outer or inner subreg mode is not MODE_INT.
31232 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
31233 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
31234
31235 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31236
31237 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
31238 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
31239 reduc_uplus_@var{m}): Remove.
31240 * expr.c (expand_expr_real_2): Remove expansion path for
31241 reduc_[us](min|max|plus) optabs.
31242 * optabs-tree.c (scalar_reduc_to_vector): Remove.
31243 * optabs-tree.h (scalar_reduc_to_vector): Remove.
31244 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
31245 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
31246 * tree-vect-loop.c (vectorizable_reduction): Remove test for
31247 reduc_[us](min|max|plus) optabs.
31248
31249 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
31250
31251 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
31252 (reduc_plus_scal_v2sf): New.
31253 (reduc_smax_v2sf): Rename to...
31254 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
31255 (reduc_smin_v2sf): Rename to...
31256 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
31257
31258 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
31259
31260 * alias.c (compare_base_symbol_refs): New function.
31261 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
31262 it.
31263
31264 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31265
31266 PR middle-end/68146
31267 PR tree-optimization/69155
31268 * tree-complex.c: Include cfganal.h.
31269 (phis_to_revisit): New variable.
31270 (extract_component): Add phiarg_p argument. Assert that returned
31271 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
31272 (update_phi_components): Partly rewrite to use loop over real/imag
31273 components instead of code duplication. If extract_component returns
31274 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
31275 create_tmp_reg into the PHI node instead, and mention the phi triplet
31276 in phis_to_revisit.
31277 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
31278 in phis_to_revisit at the end.
31279
31280 2016-01-14 Richard Biener <rguenther@suse.de>
31281
31282 PR tree-optimization/68060
31283 * tree-vect-loop.c (vect_is_simple_reduction): Check the
31284 outer loop reduction is only used in the inner loop before
31285 detecting a double reduction.
31286
31287 2016-01-14 Jakub Jelinek <jakub@redhat.com>
31288
31289 PR target/68269
31290 * combine.c (expand_field_assignment): Punt if compute_mode is
31291 unsupported scalar mode.
31292
31293 2016-01-14 Richard Biener <rguenther@suse.de>
31294
31295 PR tree-optimization/66856
31296 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
31297 SLP node only if it built successfully.
31298 (vect_analyze_slp_instance): Adjust.
31299
31300 2016-01-14 Jeff Law <law@redhat.com>
31301
31302 PR tree-optimization/69270
31303 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
31304 (record_edge_info): Use it. Convert boolean_{true,false}_node
31305 to the type of op0.
31306
31307 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
31308
31309 PR ipa/66487
31310 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
31311 use block_ultimate_origin
31312 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
31313
31314 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31315
31316 * doc/invoke.texi (Submodel Options): Rename section to
31317 "Machine-Dependent Options" to better reflect its content.
31318 Rewrite introductory text to remove archaic CPU names.
31319 Update references.
31320
31321 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
31322
31323 * doc/invoke.texi (Code Gen Options): Move section up in file,
31324 before target-specific options. Update menu and option summary
31325 to reflect the new section ordering.
31326
31327 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31328
31329 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
31330 (C++ Dialect Options): Add cross-reference to -std option.
31331 * doc/standards.texi (C++ Language): Document C++14 support.
31332
31333 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
31334
31335 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
31336 for pack/unpack functions for __ibm128.
31337 (PACK_IF): Likewise.
31338 (UNPACK_IF): Likewise.
31339
31340 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31341 support for __ibm128 pack/unpack functions.
31342 (rs6000_invalid_builtin): Likewise.
31343 (rs6000_init_builtins): Likewise.
31344 (rs6000_opt_masks): Likewise.
31345
31346 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
31347 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
31348 functions
31349 (RS6000_BTM_COMMON): Likewise.
31350
31351 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
31352 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
31353 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
31354 128-bit floating point. Add support for the double values to be
31355 in Altivec registers for TF/IF packing and unpacking, but restrict
31356 TD packing sub-fields to be FPR registers. Don't allow overlapped
31357 register support for packing. Allow pack inputs to be memory
31358 locations. Don't build generator functions for unpack<mode>_dm
31359 and unpack<mode>_nodm.
31360 (unpack<mode>_dm): Likewise.
31361 (unpack<mode>_nodm): Likewise.
31362 (pack<mode>): Likewise.
31363
31364 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
31365 built-in functions to pack/unpack explicit __ibm128 values.
31366 (__builtin_unpack_ibm128): Likewise.
31367
31368 * doc/extend.texi (PowerPC Built-in Functions): Document
31369 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
31370
31371 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
31372
31373 PR c/66208
31374 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
31375 Add new arg loc and pass it down as context.
31376 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
31377 to the location to use for the warning.
31378 (check_function_arguments): New arg loc. All callers changed. Pass
31379 it to check_function_nonnull.
31380 * c-common.h (check_function_arguments): Adjust declaration.
31381
31382 2016-01-13 Jakub Jelinek <jakub@redhat.com>
31383
31384 PR tree-optimization/69156
31385 * gimple.c (validate_type): Removed.
31386 (gimple_builtin_call_types_compatible_p): Use
31387 useless_type_conversion_p instead of validate_type.
31388 * value-prof.c (gimple_stringop_fixed_value): Fold
31389 icall_size to correct type.
31390
31391 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
31392
31393 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
31394 effects.
31395
31396 2016-01-13 Richard Henderson <rth@redhat.com>
31397
31398 PR tree-opt/68964
31399 * target.def (builtin_tm_load, builtin_tm_store): Remove.
31400 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
31401 (ix86_builtin_tm_store): Remove.
31402 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31403 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
31405 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
31406 * doc/tm.texi: Rebuild.
31407
31408 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
31409 (BUILT_IN_TM_MEMCPY_RTWN): New.
31410 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
31411 fallback from vector to integer helpers.
31412 (build_tm_load): Handle vector types directly, instead of
31413 via target hook.
31414 (build_tm_store): Likewise.
31415 (expand_assign_tm): Prepare for register types not handled by
31416 the above. Copy them to memory and use memcpy.
31417 * tree.c (tm_define_builtin): New.
31418 (find_tm_vector_type): New.
31419 (build_tm_vector_builtins): New.
31420 (build_common_builtin_nodes): Call it.
31421
31422 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
31423
31424 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
31425 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
31426
31427 2016-01-13 Tom de Vries <tom@codesourcery.com>
31428
31429 PR tree-optimization/69169
31430 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
31431 handled_struct_type param.
31432 (create_variable_info_for, intra_create_variable_infos): Call
31433 create_variable_info_for_1 with extra arg.
31434
31435 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
31436
31437 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
31438 and "armv8.1-a+crc" entries.
31439
31440 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
31441
31442 PR target/69228
31443 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
31444 Change first operand predicate from register_or_constm1_operand
31445 to register_operand.
31446 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
31447 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
31448 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
31449 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
31450 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
31451 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
31452 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
31453 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
31454 comparison with constm1_rtx from vec_prefetch_gen part.
31455
31456 2016-01-13 Richard Biener <rguenther@suse.de>
31457
31458 PR tree-optimization/69013
31459 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
31460 Exchange assert for a test.
31461
31462 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31463
31464 PR target/69247
31465 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
31466
31467 2016-01-13 Richard Biener <rguenther@suse.de>
31468
31469 PR tree-optimization/69242
31470 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
31471 assert with a check.
31472
31473 2016-01-13 Richard Biener <rguenther@suse.de>
31474
31475 PR tree-optimization/69186
31476 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31477 Properly guard vect_update_misalignment_for_peel call.
31478
31479 2016-01-12 Jeff Law <law@redhat.com>
31480
31481 PR tree-optimization/pr67755
31482 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
31483 "need_profile_correction".
31484 (thread_block_1): Initialize new field to false by default. If we
31485 have multiple thread paths through a common joiner to different
31486 final targets, then set new field to true.
31487 (compute_path_counts): Only do count adjustment when it's really
31488 needed.
31489
31490 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31491
31492 * doc/invoke.texi (Spec Files): Move section down in file, past
31493 all command-line option descriptions.
31494
31495 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31496
31497 PR middle-end/54809
31498 * doc/gty.texi: Remove documentation of mark_hook.
31499 * gengtype.c (struct write_types_data): Remove code to support
31500 mark_hook attribute.
31501 (walk_type): Likewise.
31502 (write_func_for_structure): Likewise.
31503
31504 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31505
31506 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
31507 Directory Options, and -specs= to Overall Options.
31508 (Overall Options): Adjust similarly. Reorder to group related
31509 options together. Make -specs= cross-reference the spec file details.
31510 (Directory Options): Adjust similarly.
31511
31512 2016-01-12 Jeff Law <law@redhat.com>
31513
31514 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
31515
31516 2016-01-12 Olivier Hainque <hainque@adacore.com>
31517
31518 * gcc.c (spec_undefvar_allowed): New global.
31519 (process_command): Set to true when running for --version or --help,
31520 alone or together.
31521 (getenv_spec_function): When the variable is not defined, use the
31522 variable name as the variable value if we're allowed not to issue
31523 a fatal error.
31524
31525 2016-01-12 Bin Cheng <bin.cheng@arm.com>
31526
31527 PR tree-optimization/68911
31528 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
31529 information computed for expression "init + nit * step".
31530
31531 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
31532
31533 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
31534 about name of GCC executable. Remove deleted node from menu.
31535 (Directory Options) <-B>: Remove cross-reference to deleted node.
31536 (Target Options): Delete section.
31537
31538 2016-01-12 Christian Bruel <christian.bruel@st.com>
31539
31540 PR target/69180
31541 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
31542 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
31543
31544 2016-01-12 Jakub Jelinek <jakub@redhat.com>
31545
31546 PR target/69198
31547 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
31548 aligned_mem is properly set for AVX512-VL floating point masked
31549 stores.
31550
31551 PR target/69175
31552 * ifcvt.c (cond_exec_process_if_block): When removing the last
31553 insn from then_bb, remove also any possible barriers that follow it.
31554
31555 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
31556
31557 PR target/68456
31558 PR target/69226
31559 * config/i386/iamcu.h (SIZE_TYPE): New macro.
31560 (PTRDIFF_TYPE): Likewise.
31561 (WCHAR_TYPE): Likewise.
31562 (WCHAR_TYPE_SIZE): Likewise.
31563 (STDINT_LONG32): Likewise.
31564
31565 2016-01-12 Richard Biener <rguenther@suse.de>
31566
31567 PR tree-optimization/69053
31568 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
31569 convert initial value for cond reductions.
31570
31571 2016-01-12 Richard Biener <rguenther@suse.de>
31572
31573 PR tree-optimization/69007
31574 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
31575 widen_sum after dot_prod and sad.
31576
31577 2016-01-12 Richard Biener <rguenther@suse.de>
31578
31579 PR tree-optimization/69168
31580 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
31581 pattern stmt SLP type.
31582 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
31583 end up unused so cope with that case.
31584
31585 2016-01-12 Richard Biener <rguenther@suse.de>
31586
31587 PR tree-optimization/69157
31588 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
31589 stmts def type only during analyze phase.
31590 (vectorizable_call): Likewise.
31591 (vectorizable_simd_clone_call): Likewise.
31592 (vectorizable_conversion): Likewise.
31593 (vectorizable_assignment): Likewise.
31594 (vectorizable_shift): Likewise.
31595 (vectorizable_operation): Likewise.
31596 (vectorizable_store): Likewise.
31597 (vectorizable_load): Likewise.
31598
31599 2016-01-12 Richard Biener <rguenther@suse.de>
31600
31601 PR tree-optimization/69174
31602 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
31603 space.
31604 (vectorizable_load): Properly compute the number of loads needed
31605 for permuted strided SLP loads and do not spuriously assign
31606 to SLP_TREE_VEC_STMTS.
31607
31608 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
31609
31610 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
31611 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
31612 (MD_EXEC_PREFIX): Remove.
31613 (MD_STARTFILE_PREFIX) Removee.
31614 (FILE_NAME_ABSOLUTE_P): Remove.
31615 (CPP_SPEC): Do not read macros from sys/version.h.
31616 (LINK_COMMAND_SPEC): Remove.
31617 (LOCAL_INCLUDE_DIR): Remove.
31618 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
31619 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
31620 (POST_LINK_SPEC): Define to invoke stubify after linker
31621 (LIBSTDCXX): Remove define
31622 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
31623 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
31624 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
31625 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
31626 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
31627 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
31628 (i386_djgpp_asm_named_section): Add propotype of new procedure
31629
31630 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
31631 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
31632 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
31633 in config/i386/djgpp.h).
31634 (STANDARD_STARTFILE_PREFIX_2): Define identical to
31635 STANDARD_STARTFILE_PREFIX_1.
31636 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
31637 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
31638 installation errors.
31639 (MAX_OFILE_ALIGNMENT): Define to 128.
31640 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
31641
31642 * config/i386/djgpp.c: New file. Add implementation of
31643 i386_djgpp_asm_named_section.
31644
31645 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
31646
31647 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
31648 Add rule for building djgpp.o.
31649
31650 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31651
31652 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
31653 (rtx_is_swappable_p): Reductions are swappable.
31654 (insn_is_swappable_p): V2DF reductions are swappable.
31655
31656 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
31657
31658 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
31659 reloads for other unsupported memory operands.
31660
31661 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31662 Jim Wilson <jim.wilson@linaro.org>
31663
31664 PR target/69194
31665 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
31666 copy_to_mode_reg instead of force_reg.
31667
31668 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31669
31670 PR target/69225
31671 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
31672 TARGET_80387 is true.
31673
31674 2016-01-11 Jakub Jelinek <jakub@redhat.com>
31675
31676 PR target/69071
31677 * lra-eliminations.c (move_plus_up): Only move plus up
31678 if subreg of the constant can be simplified into constant
31679 and use the simplified subreg of the constant instead of
31680 the original constant.
31681
31682 * fold-const.c (fold_convertible_p): Don't return true
31683 for conversion of VECTOR_TYPE to same sized integral type.
31684 (fold_convert_loc): Fix up formatting. Fold conversion of
31685 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
31686 instead of NOP_EXPR.
31687
31688 PR tree-optimization/69214
31689 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
31690 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
31691 Formatting fix.
31692
31693 PR tree-optimization/69207
31694 * tree-vect-slp.c (vect_get_constant_vectors): For
31695 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
31696 fold_convertible_p to vector_type's element type, and always
31697 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
31698
31699 2016-01-11 Richard Biener <rguenther@suse.de>
31700
31701 PR tree-optimization/69173
31702 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
31703 fixup the cycle if all stmts are in a pattern.
31704
31705 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
31706
31707 PR middle-end/68999
31708 * alias.c (base_alias_check): Move check for addresses with
31709 alignment ANDs before the call for compare_base_decls.
31710 (memrefs_conflict_p): Return -1 for different decls
31711 that went through alignment adjustments.
31712
31713 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31714
31715 PR rtl-optimization/68796
31716 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
31717 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
31718 and QImode comparisons against zero with CC_NZmode.
31719 * config/aarch64/iterators.md (short_mask): New mode_attr.
31720
31721 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
31722
31723 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
31724 (<avx512>_store<mode>_mask): Likewise.
31725
31726 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
31727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31728
31729 PR rtl-optimization/68841
31730 * ifcvt.c (struct noce_if_info): Add orig_x field.
31731 (bbs_ok_for_cmove_arith): Add to_rename parameter.
31732 Don't record conflicts on to_rename if it's present.
31733 Allow memory destinations in sets.
31734 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
31735 blocks, passing orig_x to the checks.
31736 (noce_process_if_block): Set if_info->orig_x appropriately.
31737
31738 2016-01-11 Tom de Vries <tom@codesourcery.com>
31739
31740 PR tree-optimization/69069
31741 * tree-parloops.c (create_parallel_loop): Add missing phi args.
31742
31743 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
31744
31745 PR rtl-optimization/68920
31746 * config/i386/i386.c (ix86_option_override_internal): Restrict number
31747 of conditional moves for RTL if-conversion to 1 for
31748 TARGET_ONE_IF_CONV_INSN.
31749 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
31750 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
31751 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
31752 parameter to restirct number of conditional moves for
31753 RTL if-conversion.
31754 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
31755 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
31756 conditionl moves.
31757
31758 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
31759
31760 PR bootstrap/69123
31761 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
31762 onepart vars. Fix typo in comment. Fix reversed condition in
31763 unshare test.
31764 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
31765
31766 PR bootstrap/69123
31767 * var-tracking.c (dump_onepart_variable_differences): New.
31768 (dataflow_set_different): If a detailed dump is requested,
31769 delay early returns and dump differences between onepart
31770 variables present before and after, and added variables.
31771
31772 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
31773
31774 PR target/69010
31775 * expr.c (expand_expr_real_1): For boolean vector constants
31776 with a scalar mode use const_scalar_mask_from_tree.
31777 (const_scalar_mask_from_tree): New.
31778 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
31779 assigned to a mask type to handle constants.
31780
31781 2016-01-11 Martin Jambor <mjambor@suse.cz>
31782
31783 PR ipa/69044
31784 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
31785 useless parameters if we cannot change function signature.
31786
31787 2016-01-11 Martin Jambor <mjambor@suse.cz>
31788
31789 PR ipa/66616
31790 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
31791 flag.
31792
31793 2016-01-11 Tom de Vries <tom@codesourcery.com>
31794
31795 PR tree-optimization/69109
31796 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
31797 latch with phi.
31798
31799 2016-01-11 Tom de Vries <tom@codesourcery.com>
31800
31801 PR tree-optimization/69108
31802 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
31803 res is not used in a phi.
31804
31805 2016-01-11 Yury Gribov <y.gribov@samsung.com>
31806
31807 PR 67425
31808 * common.opt (frandom-seed): Fix parameter name.
31809 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
31810
31811 2016-01-11 Tom de Vries <tom@codesourcery.com>
31812
31813 PR tree-optimization/69058
31814 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
31815 not supported.
31816
31817 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
31818
31819 * config/arc/arc.opt (mdiv-rem): Add period to the end.
31820 (mcode-density): Likewise.
31821
31822 2016-01-10 Tom de Vries <tom@codesourcery.com>
31823
31824 PR tree-optimization/69062
31825 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
31826 (parallelize_loops): Don't paralelize loop that has phi with address
31827 arg.
31828
31829 2016-01-10 Tom de Vries <tom@codesourcery.com>
31830
31831 PR tree-optimization/69039
31832 * tree-parloops.c (try_create_reduction_list): Only allow single exit
31833 phi for reduction.
31834
31835 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
31836
31837 PR middle-end/68743
31838 * match.pd: Require target has function_c99_misc before doing
31839 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
31840
31841 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
31842
31843 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
31844 use GMPINC.
31845 * configure: Regenerate.
31846
31847 2016-01-09 Jakub Jelinek <jakub@redhat.com>
31848
31849 PR middle-end/50865
31850 PR tree-optimization/69097
31851 * fold-const.h (expr_not_equal_to): New prototype.
31852 * fold-const.c: Include stringpool.h and tree-ssanames.h.
31853 (expr_not_equal_to): New function.
31854 * match.pd (X % -Y is the same as X % Y): Don't optimize
31855 unless X is known not to be equal to minimum or Y is known
31856 not to be equal to -1.
31857 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
31858 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
31859 (simplify_stmt_using_ranges): Adjust caller.
31860 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
31861 substitute_and_fold.
31862
31863 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
31864
31865 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
31866 w/o DECL_NAME.
31867
31868 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31869
31870 PR tree-optimization/69167
31871 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
31872 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
31873 ops[0] comparison.
31874 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
31875
31876 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31877 Richard Biener <rguenther@suse.de>
31878
31879 PR tree-optimization/68707
31880 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
31881 instances that can be handled via vect_load_lanes.
31882
31883 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
31884
31885 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
31886 if we can't determine address equivalence.
31887 * alias.c (compare_base_decl): Update for changed return value of
31888 symtab_node::equal_address_to.
31889
31890 2016-01-08 Jason Merrill <jason@redhat.com>
31891
31892 PR c++/68983
31893 PR c++/67557
31894 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
31895 * expr.c (store_field): Not here.
31896 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
31897 call with TREE_ADDRESSABLE type.
31898 * tree-cfg.c (verify_gimple_call): Adjust.
31899
31900 2016-01-08 Olivier Hainque <hainque@adacore.com>
31901
31902 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
31903 libc_internal.
31904
31905 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31906
31907 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
31908 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
31909 (reduc_smin_v2sf): Rename to...
31910 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
31911 (reduc_splus_v2sf): Rename to...
31912 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
31913
31914 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31915
31916 PR tree-optimization/69162
31917 * gimplify.c (gimplify_va_arg_expr): Encode original type of
31918 valist argument in another argument.
31919 (gimplify_modify_expr): Adjust for the above change. Cleanup.
31920 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
31921 to determine the va_list type, build a MEM_REF instead of
31922 build_fold_indirect_ref.
31923
31924 PR tree-optimization/69172
31925 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
31926 gimple_build.
31927
31928 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
31929
31930 PR tree-optimization/67781
31931 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
31932 and cmpnop in two steps: first the ones not accessed in original
31933 gimple expression in a endian independent way and then the ones not
31934 accessed in the final result in an endian-specific way.
31935
31936 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31937
31938 PR tree-optimization/69083
31939 * tree-vect-slp.c (vect_get_constant_vectors): For
31940 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
31941 element type. If op is fold_convertible_p to vector_type's element
31942 type, use NOP_EXPR instead of VCE.
31943
31944 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
31945
31946 PR rtl-optimization/67778
31947 PR rtl-optimization/68634
31948 PR rtl-optimization/68909
31949 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
31950 block from the stack until done with it. Remove a superfluous
31951 bitmap set. Remove a superfluous bitmap test.
31952
31953 2016-01-07 Martin Sebor <msebor@redhat.com>
31954
31955 PR c/68966
31956 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
31957 constraint on the type of arguments.
31958
31959 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
31960
31961 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
31962 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
31963 unaligned_access on the gcc_options set.
31964 * config/arm/arm.c (arm_option_override_internal): Use
31965 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
31966
31967 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31968
31969 PR target/69140
31970 * config/i386/i386.c (ix86_frame_pointer_required): Enable
31971 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
31972
31973 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31974
31975 Revert
31976 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31977
31978 PR target/69140
31979 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31980 depending on frame_pointer_needed before remaining integer and SSE
31981 registers are saved.
31982
31983 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
31984
31985 PR 1078
31986 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
31987
31988 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
31989
31990 PR target/69171
31991 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
31992 Use the "xBm" constraint.
31993 (float<sseintvecmodelower><mode>2<mask_name><round_name):
31994 Likewise.
31995 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
31996 (sse_cvtsi2ssq<round_name>): Likewise.
31997 (sse_cvtss2si<round_name>): Likewise.
31998 (sse_cvtss2siq<round_name>): Likewise.
31999 (sse2_cvtsi2sdq<round_name>): Likewise.
32000 (sse2_cvtsd2si<round_name>): Likewise.
32001 (sse2_cvtsd2siq<round_name>): Likewise.
32002 * config/i386/subst.md (round_nimm_scalar_predicate): New
32003 predicate.
32004
32005 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
32006
32007 PR middle-end/67639
32008 * varasm.c (make_decl_rtl): Mark invalid register vars as
32009 DECL_EXTERNAL.
32010
32011 PR rtl-optimization/66206
32012 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
32013 All callers changed.
32014
32015 2016-01-07 Jakub Jelinek <jakub@redhat.com>
32016
32017 PR tree-optimization/69141
32018 * tree-ssa-pre.c: Include langhooks.h.
32019 (eliminate_dom_walker::before_dom_children): Use
32020 lang_hooks.decl_printable_name instead of
32021 cgraph_node::get ()->name ().
32022
32023 PR middle-end/68960
32024 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
32025 it and DECL_ALIGN too.
32026
32027 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
32028
32029 * config/mips/mips-ftypes.def: Sort to lexicographical order.
32030
32031 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
32032
32033 PR target/69140
32034 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
32035 depending on frame_pointer_needed before remaining integer and SSE
32036 registers are saved.
32037
32038 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32039
32040 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
32041 mode iterator with VSX_M2.
32042 (*p9_vecstore_<mode>): Likewise.
32043 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
32044 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
32045 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
32046 (define_split for VSX_LE128 stores): Likewise.
32047 (define_peephole2 for TImode LE swaps): Likewise.
32048 (define_split for VSX_LE128 post-reload stores): Likewise.
32049
32050 2016-01-06 Marek Polacek <polacek@redhat.com>
32051
32052 PR sanitizer/69099
32053 * convert.c (convert_to_integer_1): Adjust call to
32054 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
32055 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
32056 EXPR instead of ARG.
32057 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
32058
32059 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32060
32061 PR 1078
32062 * doc/extend.texi (RL78 Variable Attributes): New section.
32063
32064 2016-01-05 Marek Polacek <polacek@redhat.com>
32065
32066 PR c/69104
32067 * builtins.c (get_memmodel): Use expansion point location rather than
32068 the input location. Call warning_at rather than warning.
32069 (expand_builtin_atomic_compare_exchange): Likewise.
32070 (expand_builtin_atomic_load): Likewise.
32071 (expand_builtin_atomic_store): Likewise.
32072 (expand_builtin_atomic_clear): Likewise.
32073
32074 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32075
32076 PR target/68991
32077 * config/i386/i386.c (ix86_expand_vector_logical_operator):
32078 Replace nonimmediate_operand with vector_operand.
32079 * config/i386/predicates.md (vector_operand): New predicate.
32080 (general_vector_operand): Replace nonimmediate_operand with
32081 vector_operand.
32082 * config/i386/sse.md: Replace nonimmediate_operand with
32083 vector_operand and m constraint with Bm constraint on SSE
32084 patterns with 16-byte memory operand.
32085 * config/i386/subst.md (round_nimm_predicate): Replace
32086 nonimmediate_operand with vector_operand.
32087 (round_saeonly_nimm_predicate): Likewise.
32088 (round_saeonly_nimm_scalar_predicate): New.
32089
32090 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
32091
32092 PR target/68991
32093 * config/i386/constraints.md (Bm): New constraint.
32094 * config/i386/predicates.md (vector_memory_operand): New
32095 predicate.
32096 * config/i386/sse.md: Replace xm with xBm in plusminus and
32097 any_logic patterns.
32098
32099 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32100
32101 PR 1078
32102 * doc/extend.texi (V850 Function Attributes): New section.
32103 (V850 Variable Attributes): New section.
32104
32105 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
32106
32107 PR 1078
32108 * doc/extend.texi (MicroBlaze Function Attributes): Document
32109 interrupt_handler and fast_interrupt attributes.
32110
32111 2016-01-05 Sergei Trofimovich <siarheit@google.com>
32112
32113 PR other/60465
32114 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
32115 for local symbolic operands.
32116 * config/ia64/predicates.md (local_symbolic_operand64): New
32117 predicate.
32118
32119 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32120
32121 PR rtl-optimization/68651
32122 * combine.c (combine_simplify_rtx): Canonicalize x + x into
32123 x << 1.
32124
32125 2016-01-05 Nathan Sidwell <nathan@acm.org>
32126
32127 * alias.c (compare_base_decls): Use symtab_node::get.
32128
32129 2016-01-05 Nick Clifton <nickc@redhat.com>
32130
32131 PR target/68770
32132 * ira-costs.c (copy_cost): Initialise the t_icode field of the
32133 secondary_reload_info structure.
32134
32135 PR target/66655
32136 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
32137 decls if weak support is available.
32138
32139 2016-01-04 Martin Sebor <msebor@redhat.com>
32140
32141 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
32142
32143 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32144
32145 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
32146 OPTION_MASK_P9_DFORM.
32147
32148 * config/rs6000/constraints.md (wo constraint): New constraint for
32149 ISA 3.0 (power9).
32150
32151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
32152 for wo constraint.
32153 (rs6000_init_hard_regno_mode_ok): Likewise.
32154
32155 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
32156 wo constraint.
32157
32158 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
32159 expanders not to have constraints. Add support for ISA 3.0 xxperm
32160 instruction. Add support for fusing xxlor with xxperm.
32161 (altivec_vperm_<mode>_internal): Likewise.
32162 (altivec_vperm_v8hiv16qi): Likewise.
32163 (altivec_vperm_<mode>v16q): Likewise.
32164 (altivec_vperm_<mode>_uns): Likewise.
32165 (vperm_v8hiv4si): Likewise.
32166 (vperm_v16qiv8hi): Likewise.
32167
32168 * doc/md.texi (RS/6000 constraints): Document wo constraint.
32169
32170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
32171
32172 Update copyright years.
32173
32174 * gcc.c (process_command): Update copyright notice dates.
32175 * gcov-dump.c (print_version): Ditto.
32176 * gcov.c (print_version): Ditto.
32177 * gcov-tool.c (print_version): Ditto.
32178 * gengtype.c (create_file): Ditto.
32179 * doc/cpp.texi: Bump @copying's copyright year.
32180 * doc/cppinternals.texi: Ditto.
32181 * doc/gcc.texi: Ditto.
32182 * doc/gccint.texi: Ditto.
32183 * doc/gcov.texi: Ditto.
32184 * doc/install.texi: Ditto.
32185 * doc/invoke.texi: Ditto.
32186
32187 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32188
32189 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
32190 modes larger than TImode as TImode if NEON is not enabled.
32191
32192 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32193
32194 PR target/69100
32195 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
32196 mode for %f0-%f31 only if TARGET_FPU.
32197
32198 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
32199
32200 PR target/69072
32201 * config/sparc/sparc.c (scan_record_type): Take into account subfields
32202 to compute the PACKED_P predicate.
32203 (function_arg_record_value): Minor tweaks.
32204
32205 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32206
32207 * doc/install.texi (--with-multilib-list): Describe the meaning of the
32208 option for arm*-*-* targets.
32209
32210 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
32211
32212 * doc/extend.texi (Common Function Attributes): Move docs for
32213 MSP430-specific attributes to....
32214 (MSP430 Function Attributes): ...here. Delete the redundant
32215 entries and copy-edit the remaining text.
32216 (MSP430 Variable Attributes): Use uniform format for index
32217 entries and add a cross-reference to the corresponding function
32218 attribute docs.
32219
32220 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
32221
32222 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
32223 -finite-math typo.
32224 (x86 Options): Likewise.
32225
32226 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32227
32228 PR 1078
32229
32230 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
32231 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
32232 to corresponding attribute.
32233
32234 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
32235
32236 * doc/extend.texi (Common Function Attributes) <noplt>: Move
32237 to correct alphabetization of table. Copy-edit and correct
32238 markup.
32239 <stack_protect>: Likewise.
32240 <target_clones>: Likewise.
32241 <simd>: Likewise.
32242 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
32243 Correct punctuation.
32244 (Code Gen Options) <-fno-plt>: Copy-edit.
32245
32246 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
32247
32248 PR target/68917
32249 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
32250 SI values. Explicitly convert SI to DI and vice-versa.
32251
32252 2016-01-01 Jakub Jelinek <jakub@redhat.com>
32253
32254 PR tree-optimization/69070
32255 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
32256 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
32257
32258 PR sanitizer/69055
32259 * ubsan.c (ubsan_instrument_float_cast): Call
32260 initialize_sanitizer_builtins.
32261
32262 PR target/69015
32263 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
32264 \f
32265 Copyright (C) 2016 Free Software Foundation, Inc.
32266
32267 Copying and distribution of this file, with or without modification,
32268 are permitted in any medium without royalty provided the copyright
32269 notice and this notice are preserved.