1 2016-01-18 Richard Henderson <rth@redhat.com>
4 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
5 operands to pseudo only if CSE is expected. Split long immediate
6 operands only after reload, and for the stack pointer.
7 (*add<GPI>3_pluslong): Remove.
8 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
9 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
10 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
11 (*add<GPI>3 peepholes): New.
12 (*add<GPI>3 splitters): New.
13 * config/aarch64/constraints.md (Upl): New.
14 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
16 2016-01-18 Richard Biener <rguenther@suse.de>
18 PR tree-optimization/69297
19 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
21 (vect_bb_vectorization_profitable_p): Clear visited flag again.
23 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
26 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
27 of mixind vector and scalar types.
28 (fold_relational_const): Add handling of vector
29 comparison with boolean result.
30 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
31 comparison of vector operands with boolean result for EQ/NE only.
32 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33 (verify_gimple_cond): Likewise.
34 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
37 2016-01-18 Joseph Myers <joseph@codesourcery.com>
39 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
42 2016-01-18 Richard Biener <rguenther@suse.de>
45 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
47 2016-01-18 Tom de Vries <tom@codesourcery.com>
49 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
51 2016-01-18 Tom de Vries <tom@codesourcery.com>
53 * omp-low.c (set_oacc_fn_attrib): Make extern.
54 * omp-low.h (set_oacc_fn_attrib): Declare.
55 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
56 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
57 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
58 Add and handle function parameter oacc_kernels_p.
59 (find_reduc_addr, get_omp_data_i_param): New function.
60 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
61 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
62 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
63 Calculate dominance info. Skip loops that are not in a kernels region
64 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
65 (pass_parallelize_loops::execute): Call parallelize_loops with
66 oacc_kernels_p argument.
67 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
69 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
70 * passes.def: Add argument to pass_parallelize_loops instantation.
72 2016-01-18 Tom de Vries <tom@codesourcery.com>
74 * tree-parloops.c (pass_parallelize_loops::execute): Allow
75 pass_parallelize_loops to be run outside the loop pipeline.
77 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
79 * tree-scalar-evolution.c (follow_copies_to_constant): New.
80 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
82 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
85 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
86 using get_ref_base_and_extent.
87 (equal_mem_array_ref_p): New.
88 (hashable_expr_equal_p): Add call to previous.
90 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
93 * tree-sra.c (disqualified_constants, constant_decl_p): New.
94 (sra_initialize): Allocate disqualified_constants.
95 (sra_deinitialize): Free disqualified_constants.
96 (disqualify_candidate): Update disqualified_constants when appropriate.
97 (create_access): Scan for constant-pool entries as we go along.
98 (scalarizable_type_p): Add check against type_contains_placeholder_p.
99 (maybe_add_sra_candidate): Allow constant-pool entries.
100 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
101 (initialize_constant_pool_replacements): New.
102 (sra_modify_assign): Avoid mangling assignments created by previous,
103 and don't generate writes into constant pool.
104 (sra_modify_function_body): Call initialize_constant_pool_replacements.
106 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
108 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
110 (scalar_chain::convert_op): Likewise.
111 * config/i386/i386.md (*andndi3_doubleword): New.
113 2016-01-18 Richard Biener <rguenther@suse.de>
115 PR tree-optimization/69170
116 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
117 building a vector from scalar results of a pattern stmt.
119 2016-01-18 Jakub Jelinek <jakub@redhat.com>
121 * haifa-sched.c (autopref_multipass_init): Work around
122 -Wmaybe-uninitialized warning.
124 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
126 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
127 against the constant 0.
129 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
131 PR tree-optimization/68799
132 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
133 look up phi candidates in the statement-candidate map.
134 (phi_add_costs): Likewise.
135 (record_phi_increments): Likewise.
136 (phi_incr_cost): Likewise.
137 (ncd_with_phi): Likewise.
138 (all_phi_incrs_profitable): Likewise.
140 2016-01-17 Jakub Jelinek <jakub@redhat.com>
142 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
143 -Wmaybe-uninitialized warning.
145 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
147 * doc/invoke.texi (Invoking GCC): Add new section to menu.
148 (Option Summary): Update to reflect new section and moved options.
149 (C++ Dialect Options): Move -fvtable-verify and related options.
150 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
151 and profiling-related options.
152 (Optimization Options): Move profile generation options and
153 -fstack-protector and related options.
154 (Instrumentation Options): New section incorporating moved options.
155 (Code Generation Options): Move -finstrument-functions and
156 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
158 2016-01-16 Tom de Vries <tom@codesourcery.com>
160 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
162 2016-01-16 Tom de Vries <tom@codesourcery.com>
164 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
166 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
168 * hash-table.h (hash_table::empty): Turn into an inline wrapper
169 that checks whether the table is already empty. Rename the
170 original implementation to...
171 (hash_table::empty_slot): ...this new private function.
173 2016-01-15 David Malcolm <dmalcolm@redhat.com>
176 * diagnostic-show-locus.c (layout::print_source_line): Move x
177 offset of line until after call to
178 get_line_width_without_trailing_whitespace.
180 2016-01-15 Jeff Law <law@redhat.com>
182 PR tree-optimization/69270
183 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
184 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
185 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
186 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
187 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
188 ssa_name_has_boolean_range and constant_boolean_node.
190 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
192 PR rtl-optimization/69030
193 * lra-spills.c (remove_pseudos): Check nrefs and make the function
195 (spill_pseudos): Delete debug insn for dead pseudo.
196 (lra_spill): Initiate spill_hard_reg and slots memory separately.
198 2016-01-15 Jiong Wang <jiong.wang@arm.com>
200 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
202 (TYPES_UNOPUS): Likewise.
203 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
204 builtin type, from UNOP to UNOPUS.
205 (lbtruncuv4sf): Likewise.
206 (lbtruncuv2df): Likewise.
207 (lrounduv2sf): Likewise.
208 (lrounduv4sf): Likewise.
209 (lrounduv2df): Likewise.
210 (lroundusf): Likewise.
211 (lroundusf): Likewise.
212 (lceiluv2sf): Likewise.
213 (lceiluv4sf): Likewise.
214 (lceiluv2df): Likewise.
215 (lceilusf): Likewise.
216 (lceiludf): Likewise.
217 (lflooruv2sf): Likewise.
218 (lflooruv4sf): Likewise.
219 (lflooruv2df): Likewise.
220 (lfloorusf): Likewise.
221 (lfloorudf): Likewise.
222 (lfrintnuv2sf): Likewise.
223 (lfrintnuv4sf): Likewise.
224 (lfrintnuv2df): Likewise.
225 (lfrintnusf): Likewise.
226 (lfrintnudf): Likewise.
227 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
229 (vcvtq_u32_f32): Likewise.
230 (vcvtq_u64_f64): Likewise.
231 (vcvta_u32_f32): Likewise.
232 (vcvtaq_u32_f32): Likewise.
233 (vcvtaq_u64_f64): Likewise.
234 (vcvtm_u32_f32): Likewise.
235 (vcvtmq_u32_f32): Likewise.
236 (vcvtmq_u64_f64): Likewise.
237 (vcvtn_u32_f32): Likwise.
238 (vcvtnq_u32_f32): Likewise.
239 (vcvtnq_u64_f64): Likewise.
240 (vcvtp_u32_f32): Likewise.
241 (vcvtpq_u32_f32): Likewise.
242 (vcvtpq_u64_f64): Likewise.
243 (vcvtmd_u64_f64): Likewise.
244 (vcvtms_u32_f32): Likewise.
245 (vcvtad_u64_f64): Likewise.
246 (vcvtas_u32_f32): Likewise.
247 (vcvtnd_u64_f64): Likewise.
248 (vcvtns_u32_f32): Likewise.
249 (vcvtpd_u64_f64): Likewise.
250 (vcvtps_u32_f32): Likewise.
252 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
254 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
255 CSEL of zero_extended registers.
257 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
259 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
260 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
262 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
264 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
265 false when argument string is not found in the attributes table
268 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
271 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
272 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
273 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
276 2016-01-15 Richard Biener <rguenther@suse.de>
278 PR tree-optimization/66856
279 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
280 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
281 (vect_create_new_slp_node): Increment stmt reference count.
282 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
283 an SLP tree before swapping operands.
284 (vect_build_slp_tree): Likewise.
285 (destroy_bb_vec_info): Free stmt info after SLP instances.
286 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
287 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
288 (STMT_VINFO_NUM_SLP_USES): New macro.
290 2016-01-15 Richard Biener <rguenther@suse.de>
293 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
294 (add_linkage_name): ... here.
295 (gen_typedef_die): Use add_linkage_name_raw instead of
296 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
299 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
301 * gimplify.c (oacc_default_clause): Decode reference and pointer
302 types for both kernels and parallel regions.
304 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
307 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
309 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
311 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
312 (convert_scalars_to_vector): Likewise.
314 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
316 * doc/extend.texi (Type Traits): Fix grammar.
318 2016-01-15 Martin Jambor <mjambor@suse.cz>
320 * tree-inline.c (remap_decl): Use existing dclarations if
321 remapping a type and prevent_decl_creation_for_types.
322 (replace_locals_stmt): Do an initial remapping of non-VLA typed
323 decls first. Do real remapping with
324 prevent_decl_creation_for_types set.
325 * tree-inline.h (copy_body_data): New field
326 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
329 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
331 * config/s390/s390.opt (mmvcle): More verbose help text.
333 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
335 * config/s390/s390.opt: Add period to -mzvector option text.
337 2016-01-15 Richard Biener <rguenther@suse.de>
339 PR tree-optimization/68961
340 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
341 of invariants in stores again.
343 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
345 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
347 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
349 * config/i386/i386.c (ix86_expand_branch): Don't split
350 DI mode xor instruction to SI mode.
352 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
355 * ipa-icf.c (sem_function::merge): Virtual functions may become
356 reachable even if they address is not taken and there are no
359 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
361 * lto-streamer-out.c (subtract_estimated_size): New function.
362 (get_symbol_initial_value): Use it.
364 2016-01-15 Christian Bruel <christian.bruel@st.com>
367 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
368 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
369 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
370 use add_builtin_function_ext_scope instead of add_builtin_function.
371 (neon_set_p, neon_crypto_set_p): Remove.
372 (arm_init_builtins): Always call arm_init_neon_builtins and
373 arm_init_crypto_builtins.
374 (arm_expand_builtin): Check that builtins are allowed for the arch.
375 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
376 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
377 arm_init_neon_builtins call.
379 2016-01-15 Richard Biener <rguenther@suse.de>
381 PR tree-optimization/69117
382 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
383 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
384 of the leader conservatively.
385 (free_scc_vn): Restore original SSA name infos.
387 2016-01-14 Jeff Law <law@redhat.com>
389 PR tree-optimization/69270
390 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
391 single bit of precision, verify it's also unsigned.
392 (record_edge_info): Use constant_boolean_node rather than fold_convert
393 to convert boolean_true/boolean_false to the right type.
395 2016-01-14 Richard Henderson <rth@redhat.com>
398 * loop-doloop.c (record_reg_sets): New.
399 (doloop_optimize): Reject the transform if the sequence
400 clobbers registers live at the end of the loop block.
401 (doloop_optimize_loops): Enable df_live if needed.
403 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
405 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
406 * gcc/config/rs6000/rs6000.c: Likewise.
407 * gcc/config/rs6000/rs6000.h: Likewise.
408 * gcc/config/rs6000/rs6000.md: Likewise.
409 * gcc/doc/extend.texi: Likewsie.
411 2016-01-14 Jeff Law <law@redhat.com>
413 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
416 2016-01-14 Richard Henderson <rth@redhat.com>
420 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
421 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
422 instead of builtin_decl_declared_p to test for declaration.
424 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
426 * doc/loop.texi (Loop Analysis and Representation): Document
429 2016-01-14 Tom de Vries <tom@codesourcery.com>
431 PR tree-optimization/68773
432 * omp-low.c (expand_omp_target): Don't set force_output.
433 * varpool.c (varpool_node::get_create): Same.
434 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
435 offload_funcs with force_output.
437 2016-01-14 Jakub Jelinek <jakub@redhat.com>
440 * lra-eliminations.c (move_plus_up): Don't change anything if either
441 the outer or inner subreg mode is not MODE_INT.
442 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
443 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
445 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
447 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
448 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
449 reduc_uplus_@var{m}): Remove.
450 * expr.c (expand_expr_real_2): Remove expansion path for
451 reduc_[us](min|max|plus) optabs.
452 * optabs-tree.c (scalar_reduc_to_vector): Remove.
453 * optabs-tree.h (scalar_reduc_to_vector): Remove.
454 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
455 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
456 * tree-vect-loop.c (vectorizable_reduction): Remove test for
457 reduc_[us](min|max|plus) optabs.
459 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
461 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
462 (reduc_plus_scal_v2sf): New.
463 (reduc_smax_v2sf): Rename to...
464 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
465 (reduc_smin_v2sf): Rename to...
466 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
468 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
470 * alias.c (compare_base_symbol_refs): New function.
471 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
474 2016-01-14 Jakub Jelinek <jakub@redhat.com>
477 PR tree-optimization/69155
478 * tree-complex.c: Include cfganal.h.
479 (phis_to_revisit): New variable.
480 (extract_component): Add phiarg_p argument. Assert that returned
481 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
482 (update_phi_components): Partly rewrite to use loop over real/imag
483 components instead of code duplication. If extract_component returns
484 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
485 create_tmp_reg into the PHI node instead, and mention the phi triplet
487 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
488 in phis_to_revisit at the end.
490 2016-01-14 Richard Biener <rguenther@suse.de>
492 PR tree-optimization/68060
493 * tree-vect-loop.c (vect_is_simple_reduction): Check the
494 outer loop reduction is only used in the inner loop before
495 detecting a double reduction.
497 2016-01-14 Jakub Jelinek <jakub@redhat.com>
500 * combine.c (expand_field_assignment): Punt if compute_mode is
501 unsupported scalar mode.
503 2016-01-14 Richard Biener <rguenther@suse.de>
505 PR tree-optimization/66856
506 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
507 SLP node only if it built successfully.
508 (vect_analyze_slp_instance): Adjust.
510 2016-01-14 Jeff Law <law@redhat.com>
512 PR tree-optimization/69270
513 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
514 (record_edge_info): Use it. Convert boolean_{true,false}_node
517 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
520 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
521 use block_ultimate_origin
522 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
524 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
526 * doc/invoke.texi (Submodel Options): Rename section to
527 "Machine-Dependent Options" to better reflect its content.
528 Rewrite introductory text to remove archaic CPU names.
531 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
533 * doc/invoke.texi (Code Gen Options): Move section up in file,
534 before target-specific options. Update menu and option summary
535 to reflect the new section ordering.
537 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
539 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
540 (C++ Dialect Options): Add cross-reference to -std option.
541 * doc/standards.texi (C++ Language): Document C++14 support.
543 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
545 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
546 for pack/unpack functions for __ibm128.
548 (UNPACK_IF): Likewise.
550 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
551 support for __ibm128 pack/unpack functions.
552 (rs6000_invalid_builtin): Likewise.
553 (rs6000_init_builtins): Likewise.
554 (rs6000_opt_masks): Likewise.
556 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
557 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
559 (RS6000_BTM_COMMON): Likewise.
561 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
562 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
563 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
564 128-bit floating point. Add support for the double values to be
565 in Altivec registers for TF/IF packing and unpacking, but restrict
566 TD packing sub-fields to be FPR registers. Don't allow overlapped
567 register support for packing. Allow pack inputs to be memory
568 locations. Don't build generator functions for unpack<mode>_dm
569 and unpack<mode>_nodm.
570 (unpack<mode>_dm): Likewise.
571 (unpack<mode>_nodm): Likewise.
572 (pack<mode>): Likewise.
574 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
575 built-in functions to pack/unpack explicit __ibm128 values.
576 (__builtin_unpack_ibm128): Likewise.
578 * doc/extend.texi (PowerPC Built-in Functions): Document
579 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
581 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
584 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
585 Add new arg loc and pass it down as context.
586 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
587 to the location to use for the warning.
588 (check_function_arguments): New arg loc. All callers changed. Pass
589 it to check_function_nonnull.
590 * c-common.h (check_function_arguments): Adjust declaration.
592 2016-01-13 Jakub Jelinek <jakub@redhat.com>
594 PR tree-optimization/69156
595 * gimple.c (validate_type): Removed.
596 (gimple_builtin_call_types_compatible_p): Use
597 useless_type_conversion_p instead of validate_type.
598 * value-prof.c (gimple_stringop_fixed_value): Fold
599 icall_size to correct type.
601 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
603 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
606 2016-01-13 Richard Henderson <rth@redhat.com>
609 * target.def (builtin_tm_load, builtin_tm_store): Remove.
610 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
611 (ix86_builtin_tm_store): Remove.
612 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
613 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
614 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
615 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
616 * doc/tm.texi: Rebuild.
618 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
619 (BUILT_IN_TM_MEMCPY_RTWN): New.
620 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
621 fallback from vector to integer helpers.
622 (build_tm_load): Handle vector types directly, instead of
624 (build_tm_store): Likewise.
625 (expand_assign_tm): Prepare for register types not handled by
626 the above. Copy them to memory and use memcpy.
627 * tree.c (tm_define_builtin): New.
628 (find_tm_vector_type): New.
629 (build_tm_vector_builtins): New.
630 (build_common_builtin_nodes): Call it.
632 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
634 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
635 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
637 2016-01-13 Tom de Vries <tom@codesourcery.com>
639 PR tree-optimization/69169
640 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
641 handled_struct_type param.
642 (create_variable_info_for, intra_create_variable_infos): Call
643 create_variable_info_for_1 with extra arg.
645 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
647 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
648 and "armv8.1-a+crc" entries.
650 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
653 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
654 Change first operand predicate from register_or_constm1_operand
656 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
657 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
658 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
659 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
660 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
661 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
662 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
663 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
664 comparison with constm1_rtx from vec_prefetch_gen part.
666 2016-01-13 Richard Biener <rguenther@suse.de>
668 PR tree-optimization/69013
669 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
670 Exchange assert for a test.
672 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
675 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
677 2016-01-13 Richard Biener <rguenther@suse.de>
679 PR tree-optimization/69242
680 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
683 2016-01-13 Richard Biener <rguenther@suse.de>
685 PR tree-optimization/69186
686 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
687 Properly guard vect_update_misalignment_for_peel call.
689 2016-01-12 Jeff Law <law@redhat.com>
691 PR tree-optimization/pr67755
692 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
693 "need_profile_correction".
694 (thread_block_1): Initialize new field to false by default. If we
695 have multiple thread paths through a common joiner to different
696 final targets, then set new field to true.
697 (compute_path_counts): Only do count adjustment when it's really
700 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
702 * doc/invoke.texi (Spec Files): Move section down in file, past
703 all command-line option descriptions.
705 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
708 * doc/gty.texi: Remove documentation of mark_hook.
709 * gengtype.c (struct write_types_data): Remove code to support
711 (walk_type): Likewise.
712 (write_func_for_structure): Likewise.
714 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
716 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
717 Directory Options, and -specs= to Overall Options.
718 (Overall Options): Adjust similarly. Reorder to group related
719 options together. Make -specs= cross-reference the spec file details.
720 (Directory Options): Adjust similarly.
722 2016-01-12 Jeff Law <law@redhat.com>
724 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
726 2016-01-12 Olivier Hainque <hainque@adacore.com>
728 * gcc.c (spec_undefvar_allowed): New global.
729 (process_command): Set to true when running for --version or --help,
731 (getenv_spec_function): When the variable is not defined, use the
732 variable name as the variable value if we're allowed not to issue
735 2016-01-12 Bin Cheng <bin.cheng@arm.com>
737 PR tree-optimization/68911
738 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
739 information computed for expression "init + nit * step".
741 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
743 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
744 about name of GCC executable. Remove deleted node from menu.
745 (Directory Options) <-B>: Remove cross-reference to deleted node.
746 (Target Options): Delete section.
748 2016-01-12 Christian Bruel <christian.bruel@st.com>
751 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
752 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
754 2016-01-12 Jakub Jelinek <jakub@redhat.com>
757 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
758 aligned_mem is properly set for AVX512-VL floating point masked
762 * ifcvt.c (cond_exec_process_if_block): When removing the last
763 insn from then_bb, remove also any possible barriers that follow it.
765 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
769 * config/i386/iamcu.h (SIZE_TYPE): New macro.
770 (PTRDIFF_TYPE): Likewise.
771 (WCHAR_TYPE): Likewise.
772 (WCHAR_TYPE_SIZE): Likewise.
773 (STDINT_LONG32): Likewise.
775 2016-01-12 Richard Biener <rguenther@suse.de>
777 PR tree-optimization/69053
778 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
779 convert initial value for cond reductions.
781 2016-01-12 Richard Biener <rguenther@suse.de>
783 PR tree-optimization/69007
784 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
785 widen_sum after dot_prod and sad.
787 2016-01-12 Richard Biener <rguenther@suse.de>
789 PR tree-optimization/69168
790 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
791 pattern stmt SLP type.
792 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
793 end up unused so cope with that case.
795 2016-01-12 Richard Biener <rguenther@suse.de>
797 PR tree-optimization/69157
798 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
799 stmts def type only during analyze phase.
800 (vectorizable_call): Likewise.
801 (vectorizable_simd_clone_call): Likewise.
802 (vectorizable_conversion): Likewise.
803 (vectorizable_assignment): Likewise.
804 (vectorizable_shift): Likewise.
805 (vectorizable_operation): Likewise.
806 (vectorizable_store): Likewise.
807 (vectorizable_load): Likewise.
809 2016-01-12 Richard Biener <rguenther@suse.de>
811 PR tree-optimization/69174
812 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
814 (vectorizable_load): Properly compute the number of loads needed
815 for permuted strided SLP loads and do not spuriously assign
816 to SLP_TREE_VEC_STMTS.
818 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
820 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
821 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
822 (MD_EXEC_PREFIX): Remove.
823 (MD_STARTFILE_PREFIX) Removee.
824 (FILE_NAME_ABSOLUTE_P): Remove.
825 (CPP_SPEC): Do not read macros from sys/version.h.
826 (LINK_COMMAND_SPEC): Remove.
827 (LOCAL_INCLUDE_DIR): Remove.
828 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
829 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
830 (POST_LINK_SPEC): Define to invoke stubify after linker
831 (LIBSTDCXX): Remove define
832 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
833 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
834 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
835 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
836 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
837 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
838 (i386_djgpp_asm_named_section): Add propotype of new procedure
840 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
841 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
842 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h).
843 (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1.
844 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
845 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors.
846 (MAX_OFILE_ALIGNMENT): Define to 128.
847 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
849 * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section.
851 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
853 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
854 Add rule for building djgpp.o.
856 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
858 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
859 (rtx_is_swappable_p): Reductions are swappable.
860 (insn_is_swappable_p): V2DF reductions are swappable.
862 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
864 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
865 reloads for other unsupported memory operands.
867 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
868 Jim Wilson <jim.wilson@linaro.org>
871 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
872 copy_to_mode_reg instead of force_reg.
874 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
877 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
878 TARGET_80387 is true.
880 2016-01-11 Jakub Jelinek <jakub@redhat.com>
883 * lra-eliminations.c (move_plus_up): Only move plus up
884 if subreg of the constant can be simplified into constant
885 and use the simplified subreg of the constant instead of
886 the original constant.
888 * fold-const.c (fold_convertible_p): Don't return true
889 for conversion of VECTOR_TYPE to same sized integral type.
890 (fold_convert_loc): Fix up formatting. Fold conversion of
891 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
894 PR tree-optimization/69214
895 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
896 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
899 PR tree-optimization/69207
900 * tree-vect-slp.c (vect_get_constant_vectors): For
901 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
902 fold_convertible_p to vector_type's element type, and always
903 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
905 2016-01-11 Richard Biener <rguenther@suse.de>
907 PR tree-optimization/69173
908 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
909 fixup the cycle if all stmts are in a pattern.
911 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
914 * alias.c (base_alias_check): Move check for addresses with
915 alignment ANDs before the call for compare_base_decls.
916 (memrefs_conflict_p): Return -1 for different decls
917 that went through alignment adjustments.
919 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
921 PR rtl-optimization/68796
922 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
923 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
924 and QImode comparisons against zero with CC_NZmode.
925 * config/aarch64/iterators.md (short_mask): New mode_attr.
927 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
929 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
930 (<avx512>_store<mode>_mask): Likewise.
932 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
933 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
935 PR rtl-optimization/68841
936 * ifcvt.c (struct noce_if_info): Add orig_x field.
937 (bbs_ok_for_cmove_arith): Add to_rename parameter.
938 Don't record conflicts on to_rename if it's present.
939 Allow memory destinations in sets.
940 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
941 blocks, passing orig_x to the checks.
942 (noce_process_if_block): Set if_info->orig_x appropriately.
944 2016-01-11 Tom de Vries <tom@codesourcery.com>
946 PR tree-optimization/69069
947 * tree-parloops.c (create_parallel_loop): Add missing phi args.
949 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
951 PR rtl-optimization/68920
952 * config/i386/i386.c (ix86_option_override_internal): Restrict number
953 of conditional moves for RTL if-conversion to 1 for
954 TARGET_ONE_IF_CONV_INSN.
955 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
956 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
957 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
958 parameter to restirct number of conditional moves for
960 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
961 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
964 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
967 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
968 onepart vars. Fix typo in comment. Fix reversed condition in
970 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
973 * var-tracking.c (dump_onepart_variable_differences): New.
974 (dataflow_set_different): If a detailed dump is requested,
975 delay early returns and dump differences between onepart
976 variables present before and after, and added variables.
978 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
981 * expr.c (expand_expr_real_1): For boolean vector constants
982 with a scalar mode use const_scalar_mask_from_tree.
983 (const_scalar_mask_from_tree): New.
984 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
985 assigned to a mask type to handle constants.
987 2016-01-11 Martin Jambor <mjambor@suse.cz>
990 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
991 useless parameters if we cannot change function signature.
993 2016-01-11 Martin Jambor <mjambor@suse.cz>
996 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
999 2016-01-11 Tom de Vries <tom@codesourcery.com>
1001 PR tree-optimization/69109
1002 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
1005 2016-01-11 Tom de Vries <tom@codesourcery.com>
1007 PR tree-optimization/69108
1008 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
1009 res is not used in a phi.
1011 2016-01-11 Yury Gribov <y.gribov@samsung.com>
1014 * common.opt (frandom-seed): Fix parameter name.
1015 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
1017 2016-01-11 Tom de Vries <tom@codesourcery.com>
1019 PR tree-optimization/69058
1020 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
1023 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
1025 * config/arc/arc.opt (mdiv-rem): Add period to the end.
1026 (mcode-density): Likewise.
1028 2016-01-10 Tom de Vries <tom@codesourcery.com>
1030 PR tree-optimization/69062
1031 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
1032 (parallelize_loops): Don't paralelize loop that has phi with address
1035 2016-01-10 Tom de Vries <tom@codesourcery.com>
1037 PR tree-optimization/69039
1038 * tree-parloops.c (try_create_reduction_list): Only allow single exit
1041 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
1044 * match.pd: Require target has function_c99_misc before doing
1045 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
1047 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
1049 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
1051 * configure: Regenerate.
1053 2016-01-09 Jakub Jelinek <jakub@redhat.com>
1056 PR tree-optimization/69097
1057 * fold-const.h (expr_not_equal_to): New prototype.
1058 * fold-const.c: Include stringpool.h and tree-ssanames.h.
1059 (expr_not_equal_to): New function.
1060 * match.pd (X % -Y is the same as X % Y): Don't optimize
1061 unless X is known not to be equal to minimum or Y is known
1062 not to be equal to -1.
1063 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
1064 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
1065 (simplify_stmt_using_ranges): Adjust caller.
1066 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
1067 substitute_and_fold.
1069 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
1071 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
1074 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1076 PR tree-optimization/69167
1077 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
1078 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
1080 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1082 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1083 Richard Biener <rguenther@suse.de>
1085 PR tree-optimization/68707
1086 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
1087 instances that can be handled via vect_load_lanes.
1089 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
1091 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
1092 if we can't determine address equivalence.
1093 * alias.c (compare_base_decl): Update for changed return value of
1094 symtab_node::equal_address_to.
1096 2016-01-08 Jason Merrill <jason@redhat.com>
1100 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
1101 * expr.c (store_field): Not here.
1102 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
1103 call with TREE_ADDRESSABLE type.
1104 * tree-cfg.c (verify_gimple_call): Adjust.
1106 2016-01-08 Olivier Hainque <hainque@adacore.com>
1108 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
1111 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1113 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
1114 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
1115 (reduc_smin_v2sf): Rename to...
1116 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
1117 (reduc_splus_v2sf): Rename to...
1118 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
1120 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1122 PR tree-optimization/69162
1123 * gimplify.c (gimplify_va_arg_expr): Encode original type of
1124 valist argument in another argument.
1125 (gimplify_modify_expr): Adjust for the above change. Cleanup.
1126 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
1127 to determine the va_list type, build a MEM_REF instead of
1128 build_fold_indirect_ref.
1130 PR tree-optimization/69172
1131 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
1134 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1136 PR tree-optimization/67781
1137 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1138 and cmpnop in two steps: first the ones not accessed in original
1139 gimple expression in a endian independent way and then the ones not
1140 accessed in the final result in an endian-specific way.
1142 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1144 PR tree-optimization/69083
1145 * tree-vect-slp.c (vect_get_constant_vectors): For
1146 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
1147 element type. If op is fold_convertible_p to vector_type's element
1148 type, use NOP_EXPR instead of VCE.
1150 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
1152 PR rtl-optimization/67778
1153 PR rtl-optimization/68634
1154 PR rtl-optimization/68909
1155 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
1156 block from the stack until done with it. Remove a superfluous
1157 bitmap set. Remove a superfluous bitmap test.
1159 2016-01-07 Martin Sebor <msebor@redhat.com>
1162 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
1163 constraint on the type of arguments.
1165 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
1167 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
1168 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
1169 unaligned_access on the gcc_options set.
1170 * config/arm/arm.c (arm_option_override_internal): Use
1171 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
1173 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1176 * config/i386/i386.c (ix86_frame_pointer_required): Enable
1177 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
1179 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1182 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1185 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1186 depending on frame_pointer_needed before remaining integer and SSE
1187 registers are saved.
1189 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
1192 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
1194 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1197 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
1198 Use the "xBm" constraint.
1199 (float<sseintvecmodelower><mode>2<mask_name><round_name):
1201 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
1202 (sse_cvtsi2ssq<round_name>): Likewise.
1203 (sse_cvtss2si<round_name>): Likewise.
1204 (sse_cvtss2siq<round_name>): Likewise.
1205 (sse2_cvtsi2sdq<round_name>): Likewise.
1206 (sse2_cvtsd2si<round_name>): Likewise.
1207 (sse2_cvtsd2siq<round_name>): Likewise.
1208 * config/i386/subst.md (round_nimm_scalar_predicate): New
1211 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1214 * varasm.c (make_decl_rtl): Mark invalid register vars as
1217 PR rtl-optimization/66206
1218 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
1219 All callers changed.
1221 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1223 PR tree-optimization/69141
1224 * tree-ssa-pre.c: Include langhooks.h.
1225 (eliminate_dom_walker::before_dom_children): Use
1226 lang_hooks.decl_printable_name instead of
1227 cgraph_node::get ()->name ().
1230 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
1231 it and DECL_ALIGN too.
1233 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
1235 * config/mips/mips-ftypes.def: Sort to lexicographical order.
1237 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1240 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1241 depending on frame_pointer_needed before remaining integer and SSE
1242 registers are saved.
1244 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1246 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
1247 mode iterator with VSX_M2.
1248 (*p9_vecstore_<mode>): Likewise.
1249 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
1250 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
1251 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
1252 (define_split for VSX_LE128 stores): Likewise.
1253 (define_peephole2 for TImode LE swaps): Likewise.
1254 (define_split for VSX_LE128 post-reload stores): Likewise.
1256 2016-01-06 Marek Polacek <polacek@redhat.com>
1259 * convert.c (convert_to_integer_1): Adjust call to
1260 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
1261 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
1262 EXPR instead of ARG.
1263 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
1265 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1268 * doc/extend.texi (RL78 Variable Attributes): New section.
1270 2016-01-05 Marek Polacek <polacek@redhat.com>
1273 * builtins.c (get_memmodel): Use expansion point location rather than
1274 the input location. Call warning_at rather than warning.
1275 (expand_builtin_atomic_compare_exchange): Likewise.
1276 (expand_builtin_atomic_load): Likewise.
1277 (expand_builtin_atomic_store): Likewise.
1278 (expand_builtin_atomic_clear): Likewise.
1280 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1283 * config/i386/i386.c (ix86_expand_vector_logical_operator):
1284 Replace nonimmediate_operand with vector_operand.
1285 * config/i386/predicates.md (vector_operand): New predicate.
1286 (general_vector_operand): Replace nonimmediate_operand with
1288 * config/i386/sse.md: Replace nonimmediate_operand with
1289 vector_operand and m constraint with Bm constraint on SSE
1290 patterns with 16-byte memory operand.
1291 * config/i386/subst.md (round_nimm_predicate): Replace
1292 nonimmediate_operand with vector_operand.
1293 (round_saeonly_nimm_predicate): Likewise.
1294 (round_saeonly_nimm_scalar_predicate): New.
1296 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1299 * config/i386/constraints.md (Bm): New constraint.
1300 * config/i386/predicates.md (vector_memory_operand): New
1302 * config/i386/sse.md: Replace xm with xBm in plusminus and
1305 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1308 * doc/extend.texi (V850 Function Attributes): New section.
1309 (V850 Variable Attributes): New section.
1311 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1314 * doc/extend.texi (MicroBlaze Function Attributes): Document
1315 interrupt_handler and fast_interrupt attributes.
1317 2016-01-05 Sergei Trofimovich <siarheit@google.com>
1320 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
1321 for local symbolic operands.
1322 * config/ia64/predicates.md (local_symbolic_operand64): New
1325 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1327 PR rtl-optimization/68651
1328 * combine.c (combine_simplify_rtx): Canonicalize x + x into
1331 2016-01-05 Nathan Sidwell <nathan@acm.org>
1333 * alias.c (compare_base_decls): Use symtab_node::get.
1335 2016-01-05 Nick Clifton <nickc@redhat.com>
1338 * ira-costs.c (copy_cost): Initialise the t_icode field of the
1339 secondary_reload_info structure.
1342 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
1343 decls if weak support is available.
1345 2016-01-04 Martin Sebor <msebor@redhat.com>
1347 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
1349 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1351 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1352 OPTION_MASK_P9_DFORM.
1354 * config/rs6000/constraints.md (wo constraint): New constraint for
1357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
1359 (rs6000_init_hard_regno_mode_ok): Likewise.
1361 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
1364 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
1365 expanders not to have constraints. Add support for ISA 3.0 xxperm
1366 instruction. Add support for fusing xxlor with xxperm.
1367 (altivec_vperm_<mode>_internal): Likewise.
1368 (altivec_vperm_v8hiv16qi): Likewise.
1369 (altivec_vperm_<mode>v16q): Likewise.
1370 (altivec_vperm_<mode>_uns): Likewise.
1371 (vperm_v8hiv4si): Likewise.
1372 (vperm_v16qiv8hi): Likewise.
1374 * doc/md.texi (RS/6000 constraints): Document wo constraint.
1376 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1378 Update copyright years.
1380 * gcc.c (process_command): Update copyright notice dates.
1381 * gcov-dump.c (print_version): Ditto.
1382 * gcov.c (print_version): Ditto.
1383 * gcov-tool.c (print_version): Ditto.
1384 * gengtype.c (create_file): Ditto.
1385 * doc/cpp.texi: Bump @copying's copyright year.
1386 * doc/cppinternals.texi: Ditto.
1387 * doc/gcc.texi: Ditto.
1388 * doc/gccint.texi: Ditto.
1389 * doc/gcov.texi: Ditto.
1390 * doc/install.texi: Ditto.
1391 * doc/invoke.texi: Ditto.
1393 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1395 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
1396 modes larger than TImode as TImode if NEON is not enabled.
1398 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1401 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
1402 mode for %f0-%f31 only if TARGET_FPU.
1404 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1407 * config/sparc/sparc.c (scan_record_type): Take into account subfields
1408 to compute the PACKED_P predicate.
1409 (function_arg_record_value): Minor tweaks.
1411 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1413 * doc/install.texi (--with-multilib-list): Describe the meaning of the
1414 option for arm*-*-* targets.
1416 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
1418 * doc/extend.texi (Common Function Attributes): Move docs for
1419 MSP430-specific attributes to....
1420 (MSP430 Function Attributes): ...here. Delete the redundant
1421 entries and copy-edit the remaining text.
1422 (MSP430 Variable Attributes): Use uniform format for index
1423 entries and add a cross-reference to the corresponding function
1426 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
1428 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
1430 (x86 Options): Likewise.
1432 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
1436 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
1437 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
1438 to corresponding attribute.
1440 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
1442 * doc/extend.texi (Common Function Attributes) <noplt>: Move
1443 to correct alphabetization of table. Copy-edit and correct
1445 <stack_protect>: Likewise.
1446 <target_clones>: Likewise.
1448 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
1449 Correct punctuation.
1450 (Code Gen Options) <-fno-plt>: Copy-edit.
1452 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1455 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
1456 SI values. Explicitly convert SI to DI and vice-versa.
1458 2016-01-01 Jakub Jelinek <jakub@redhat.com>
1460 PR tree-optimization/69070
1461 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
1462 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
1465 * ubsan.c (ubsan_instrument_float_cast): Call
1466 initialize_sanitizer_builtins.
1469 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
1471 Copyright (C) 2016 Free Software Foundation, Inc.
1473 Copying and distribution of this file, with or without modification,
1474 are permitted in any medium without royalty provided the copyright
1475 notice and this notice are preserved.