1 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
6 2016-01-18 Richard Biener <rguenther@suse.de>
9 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
11 2016-01-18 Tom de Vries <tom@codesourcery.com>
13 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
15 2016-01-18 Tom de Vries <tom@codesourcery.com>
17 * omp-low.c (set_oacc_fn_attrib): Make extern.
18 * omp-low.h (set_oacc_fn_attrib): Declare.
19 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
20 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
21 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
22 Add and handle function parameter oacc_kernels_p.
23 (find_reduc_addr, get_omp_data_i_param): New function.
24 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
26 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
27 Calculate dominance info. Skip loops that are not in a kernels region
28 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
29 (pass_parallelize_loops::execute): Call parallelize_loops with
30 oacc_kernels_p argument.
31 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34 * passes.def: Add argument to pass_parallelize_loops instantation.
36 2016-01-18 Tom de Vries <tom@codesourcery.com>
38 * tree-parloops.c (pass_parallelize_loops::execute): Allow
39 pass_parallelize_loops to be run outside the loop pipeline.
41 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
43 * tree-scalar-evolution.c (follow_copies_to_constant): New.
44 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
46 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
49 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
50 using get_ref_base_and_extent.
51 (equal_mem_array_ref_p): New.
52 (hashable_expr_equal_p): Add call to previous.
54 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
57 * tree-sra.c (disqualified_constants, constant_decl_p): New.
58 (sra_initialize): Allocate disqualified_constants.
59 (sra_deinitialize): Free disqualified_constants.
60 (disqualify_candidate): Update disqualified_constants when appropriate.
61 (create_access): Scan for constant-pool entries as we go along.
62 (scalarizable_type_p): Add check against type_contains_placeholder_p.
63 (maybe_add_sra_candidate): Allow constant-pool entries.
64 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
65 (initialize_constant_pool_replacements): New.
66 (sra_modify_assign): Avoid mangling assignments created by previous,
67 and don't generate writes into constant pool.
68 (sra_modify_function_body): Call initialize_constant_pool_replacements.
70 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
72 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
74 (scalar_chain::convert_op): Likewise.
75 * config/i386/i386.md (*andndi3_doubleword): New.
77 2016-01-18 Richard Biener <rguenther@suse.de>
79 PR tree-optimization/69170
80 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
81 building a vector from scalar results of a pattern stmt.
83 2016-01-18 Jakub Jelinek <jakub@redhat.com>
85 * haifa-sched.c (autopref_multipass_init): Work around
86 -Wmaybe-uninitialized warning.
88 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
90 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
91 against the constant 0.
93 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
95 PR tree-optimization/68799
96 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
97 look up phi candidates in the statement-candidate map.
98 (phi_add_costs): Likewise.
99 (record_phi_increments): Likewise.
100 (phi_incr_cost): Likewise.
101 (ncd_with_phi): Likewise.
102 (all_phi_incrs_profitable): Likewise.
104 2016-01-17 Jakub Jelinek <jakub@redhat.com>
106 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
107 -Wmaybe-uninitialized warning.
109 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
111 * doc/invoke.texi (Invoking GCC): Add new section to menu.
112 (Option Summary): Update to reflect new section and moved options.
113 (C++ Dialect Options): Move -fvtable-verify and related options.
114 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
115 and profiling-related options.
116 (Optimization Options): Move profile generation options and
117 -fstack-protector and related options.
118 (Instrumentation Options): New section incorporating moved options.
119 (Code Generation Options): Move -finstrument-functions and
120 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
122 2016-01-16 Tom de Vries <tom@codesourcery.com>
124 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
126 2016-01-16 Tom de Vries <tom@codesourcery.com>
128 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
130 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
132 * hash-table.h (hash_table::empty): Turn into an inline wrapper
133 that checks whether the table is already empty. Rename the
134 original implementation to...
135 (hash_table::empty_slot): ...this new private function.
137 2016-01-15 David Malcolm <dmalcolm@redhat.com>
140 * diagnostic-show-locus.c (layout::print_source_line): Move x
141 offset of line until after call to
142 get_line_width_without_trailing_whitespace.
144 2016-01-15 Jeff Law <law@redhat.com>
146 PR tree-optimization/69270
147 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
148 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
149 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
150 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
151 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
152 ssa_name_has_boolean_range and constant_boolean_node.
154 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
156 PR rtl-optimization/69030
157 * lra-spills.c (remove_pseudos): Check nrefs and make the function
159 (spill_pseudos): Delete debug insn for dead pseudo.
160 (lra_spill): Initiate spill_hard_reg and slots memory separately.
162 2016-01-15 Jiong Wang <jiong.wang@arm.com>
164 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
166 (TYPES_UNOPUS): Likewise.
167 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
168 builtin type, from UNOP to UNOPUS.
169 (lbtruncuv4sf): Likewise.
170 (lbtruncuv2df): Likewise.
171 (lrounduv2sf): Likewise.
172 (lrounduv4sf): Likewise.
173 (lrounduv2df): Likewise.
174 (lroundusf): Likewise.
175 (lroundusf): Likewise.
176 (lceiluv2sf): Likewise.
177 (lceiluv4sf): Likewise.
178 (lceiluv2df): Likewise.
179 (lceilusf): Likewise.
180 (lceiludf): Likewise.
181 (lflooruv2sf): Likewise.
182 (lflooruv4sf): Likewise.
183 (lflooruv2df): Likewise.
184 (lfloorusf): Likewise.
185 (lfloorudf): Likewise.
186 (lfrintnuv2sf): Likewise.
187 (lfrintnuv4sf): Likewise.
188 (lfrintnuv2df): Likewise.
189 (lfrintnusf): Likewise.
190 (lfrintnudf): Likewise.
191 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
193 (vcvtq_u32_f32): Likewise.
194 (vcvtq_u64_f64): Likewise.
195 (vcvta_u32_f32): Likewise.
196 (vcvtaq_u32_f32): Likewise.
197 (vcvtaq_u64_f64): Likewise.
198 (vcvtm_u32_f32): Likewise.
199 (vcvtmq_u32_f32): Likewise.
200 (vcvtmq_u64_f64): Likewise.
201 (vcvtn_u32_f32): Likwise.
202 (vcvtnq_u32_f32): Likewise.
203 (vcvtnq_u64_f64): Likewise.
204 (vcvtp_u32_f32): Likewise.
205 (vcvtpq_u32_f32): Likewise.
206 (vcvtpq_u64_f64): Likewise.
207 (vcvtmd_u64_f64): Likewise.
208 (vcvtms_u32_f32): Likewise.
209 (vcvtad_u64_f64): Likewise.
210 (vcvtas_u32_f32): Likewise.
211 (vcvtnd_u64_f64): Likewise.
212 (vcvtns_u32_f32): Likewise.
213 (vcvtpd_u64_f64): Likewise.
214 (vcvtps_u32_f32): Likewise.
216 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
218 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
219 CSEL of zero_extended registers.
221 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
223 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
224 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
226 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
228 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
229 false when argument string is not found in the attributes table
232 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
235 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
236 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
237 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
240 2016-01-15 Richard Biener <rguenther@suse.de>
242 PR tree-optimization/66856
243 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
244 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
245 (vect_create_new_slp_node): Increment stmt reference count.
246 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
247 an SLP tree before swapping operands.
248 (vect_build_slp_tree): Likewise.
249 (destroy_bb_vec_info): Free stmt info after SLP instances.
250 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
251 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
252 (STMT_VINFO_NUM_SLP_USES): New macro.
254 2016-01-15 Richard Biener <rguenther@suse.de>
257 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
258 (add_linkage_name): ... here.
259 (gen_typedef_die): Use add_linkage_name_raw instead of
260 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
263 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
265 * gimplify.c (oacc_default_clause): Decode reference and pointer
266 types for both kernels and parallel regions.
268 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
271 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
273 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
275 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
276 (convert_scalars_to_vector): Likewise.
278 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
280 * doc/extend.texi (Type Traits): Fix grammar.
282 2016-01-15 Martin Jambor <mjambor@suse.cz>
284 * tree-inline.c (remap_decl): Use existing dclarations if
285 remapping a type and prevent_decl_creation_for_types.
286 (replace_locals_stmt): Do an initial remapping of non-VLA typed
287 decls first. Do real remapping with
288 prevent_decl_creation_for_types set.
289 * tree-inline.h (copy_body_data): New field
290 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
293 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
295 * config/s390/s390.opt (mmvcle): More verbose help text.
297 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
299 * config/s390/s390.opt: Add period to -mzvector option text.
301 2016-01-15 Richard Biener <rguenther@suse.de>
303 PR tree-optimization/68961
304 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
305 of invariants in stores again.
307 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
309 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
311 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
313 * config/i386/i386.c (ix86_expand_branch): Don't split
314 DI mode xor instruction to SI mode.
316 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
319 * ipa-icf.c (sem_function::merge): Virtual functions may become
320 reachable even if they address is not taken and there are no
323 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
325 * lto-streamer-out.c (subtract_estimated_size): New function.
326 (get_symbol_initial_value): Use it.
328 2016-01-15 Christian Bruel <christian.bruel@st.com>
331 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
332 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
333 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
334 use add_builtin_function_ext_scope instead of add_builtin_function.
335 (neon_set_p, neon_crypto_set_p): Remove.
336 (arm_init_builtins): Always call arm_init_neon_builtins and
337 arm_init_crypto_builtins.
338 (arm_expand_builtin): Check that builtins are allowed for the arch.
339 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
340 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
341 arm_init_neon_builtins call.
343 2016-01-15 Richard Biener <rguenther@suse.de>
345 PR tree-optimization/69117
346 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
347 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
348 of the leader conservatively.
349 (free_scc_vn): Restore original SSA name infos.
351 2016-01-14 Jeff Law <law@redhat.com>
353 PR tree-optimization/69270
354 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
355 single bit of precision, verify it's also unsigned.
356 (record_edge_info): Use constant_boolean_node rather than fold_convert
357 to convert boolean_true/boolean_false to the right type.
359 2016-01-14 Richard Henderson <rth@redhat.com>
362 * loop-doloop.c (record_reg_sets): New.
363 (doloop_optimize): Reject the transform if the sequence
364 clobbers registers live at the end of the loop block.
365 (doloop_optimize_loops): Enable df_live if needed.
367 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
369 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
370 * gcc/config/rs6000/rs6000.c: Likewise.
371 * gcc/config/rs6000/rs6000.h: Likewise.
372 * gcc/config/rs6000/rs6000.md: Likewise.
373 * gcc/doc/extend.texi: Likewsie.
375 2016-01-14 Jeff Law <law@redhat.com>
377 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
380 2016-01-14 Richard Henderson <rth@redhat.com>
384 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
385 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
386 instead of builtin_decl_declared_p to test for declaration.
388 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
390 * doc/loop.texi (Loop Analysis and Representation): Document
393 2016-01-14 Tom de Vries <tom@codesourcery.com>
395 PR tree-optimization/68773
396 * omp-low.c (expand_omp_target): Don't set force_output.
397 * varpool.c (varpool_node::get_create): Same.
398 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
399 offload_funcs with force_output.
401 2016-01-14 Jakub Jelinek <jakub@redhat.com>
404 * lra-eliminations.c (move_plus_up): Don't change anything if either
405 the outer or inner subreg mode is not MODE_INT.
406 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
407 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
409 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
411 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
412 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
413 reduc_uplus_@var{m}): Remove.
414 * expr.c (expand_expr_real_2): Remove expansion path for
415 reduc_[us](min|max|plus) optabs.
416 * optabs-tree.c (scalar_reduc_to_vector): Remove.
417 * optabs-tree.h (scalar_reduc_to_vector): Remove.
418 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
419 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
420 * tree-vect-loop.c (vectorizable_reduction): Remove test for
421 reduc_[us](min|max|plus) optabs.
423 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
425 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
426 (reduc_plus_scal_v2sf): New.
427 (reduc_smax_v2sf): Rename to...
428 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
429 (reduc_smin_v2sf): Rename to...
430 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
432 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
434 * alias.c (compare_base_symbol_refs): New function.
435 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
438 2016-01-14 Jakub Jelinek <jakub@redhat.com>
441 PR tree-optimization/69155
442 * tree-complex.c: Include cfganal.h.
443 (phis_to_revisit): New variable.
444 (extract_component): Add phiarg_p argument. Assert that returned
445 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
446 (update_phi_components): Partly rewrite to use loop over real/imag
447 components instead of code duplication. If extract_component returns
448 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
449 create_tmp_reg into the PHI node instead, and mention the phi triplet
451 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
452 in phis_to_revisit at the end.
454 2016-01-14 Richard Biener <rguenther@suse.de>
456 PR tree-optimization/68060
457 * tree-vect-loop.c (vect_is_simple_reduction): Check the
458 outer loop reduction is only used in the inner loop before
459 detecting a double reduction.
461 2016-01-14 Jakub Jelinek <jakub@redhat.com>
464 * combine.c (expand_field_assignment): Punt if compute_mode is
465 unsupported scalar mode.
467 2016-01-14 Richard Biener <rguenther@suse.de>
469 PR tree-optimization/66856
470 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
471 SLP node only if it built successfully.
472 (vect_analyze_slp_instance): Adjust.
474 2016-01-14 Jeff Law <law@redhat.com>
476 PR tree-optimization/69270
477 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
478 (record_edge_info): Use it. Convert boolean_{true,false}_node
481 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
484 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
485 use block_ultimate_origin
486 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
488 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
490 * doc/invoke.texi (Submodel Options): Rename section to
491 "Machine-Dependent Options" to better reflect its content.
492 Rewrite introductory text to remove archaic CPU names.
495 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
497 * doc/invoke.texi (Code Gen Options): Move section up in file,
498 before target-specific options. Update menu and option summary
499 to reflect the new section ordering.
501 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
503 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
504 (C++ Dialect Options): Add cross-reference to -std option.
505 * doc/standards.texi (C++ Language): Document C++14 support.
507 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
509 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
510 for pack/unpack functions for __ibm128.
512 (UNPACK_IF): Likewise.
514 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
515 support for __ibm128 pack/unpack functions.
516 (rs6000_invalid_builtin): Likewise.
517 (rs6000_init_builtins): Likewise.
518 (rs6000_opt_masks): Likewise.
520 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
521 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
523 (RS6000_BTM_COMMON): Likewise.
525 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
526 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
527 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
528 128-bit floating point. Add support for the double values to be
529 in Altivec registers for TF/IF packing and unpacking, but restrict
530 TD packing sub-fields to be FPR registers. Don't allow overlapped
531 register support for packing. Allow pack inputs to be memory
532 locations. Don't build generator functions for unpack<mode>_dm
533 and unpack<mode>_nodm.
534 (unpack<mode>_dm): Likewise.
535 (unpack<mode>_nodm): Likewise.
536 (pack<mode>): Likewise.
538 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
539 built-in functions to pack/unpack explicit __ibm128 values.
540 (__builtin_unpack_ibm128): Likewise.
542 * doc/extend.texi (PowerPC Built-in Functions): Document
543 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
545 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
548 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
549 Add new arg loc and pass it down as context.
550 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
551 to the location to use for the warning.
552 (check_function_arguments): New arg loc. All callers changed. Pass
553 it to check_function_nonnull.
554 * c-common.h (check_function_arguments): Adjust declaration.
556 2016-01-13 Jakub Jelinek <jakub@redhat.com>
558 PR tree-optimization/69156
559 * gimple.c (validate_type): Removed.
560 (gimple_builtin_call_types_compatible_p): Use
561 useless_type_conversion_p instead of validate_type.
562 * value-prof.c (gimple_stringop_fixed_value): Fold
563 icall_size to correct type.
565 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
567 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
570 2016-01-13 Richard Henderson <rth@redhat.com>
573 * target.def (builtin_tm_load, builtin_tm_store): Remove.
574 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
575 (ix86_builtin_tm_store): Remove.
576 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
577 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
578 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
579 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
580 * doc/tm.texi: Rebuild.
582 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
583 (BUILT_IN_TM_MEMCPY_RTWN): New.
584 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
585 fallback from vector to integer helpers.
586 (build_tm_load): Handle vector types directly, instead of
588 (build_tm_store): Likewise.
589 (expand_assign_tm): Prepare for register types not handled by
590 the above. Copy them to memory and use memcpy.
591 * tree.c (tm_define_builtin): New.
592 (find_tm_vector_type): New.
593 (build_tm_vector_builtins): New.
594 (build_common_builtin_nodes): Call it.
596 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
598 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
599 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
601 2016-01-13 Tom de Vries <tom@codesourcery.com>
603 PR tree-optimization/69169
604 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
605 handled_struct_type param.
606 (create_variable_info_for, intra_create_variable_infos): Call
607 create_variable_info_for_1 with extra arg.
609 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
611 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
612 and "armv8.1-a+crc" entries.
614 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
617 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
618 Change first operand predicate from register_or_constm1_operand
620 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
621 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
622 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
623 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
624 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
625 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
626 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
627 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
628 comparison with constm1_rtx from vec_prefetch_gen part.
630 2016-01-13 Richard Biener <rguenther@suse.de>
632 PR tree-optimization/69013
633 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
634 Exchange assert for a test.
636 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
639 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
641 2016-01-13 Richard Biener <rguenther@suse.de>
643 PR tree-optimization/69242
644 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
647 2016-01-13 Richard Biener <rguenther@suse.de>
649 PR tree-optimization/69186
650 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
651 Properly guard vect_update_misalignment_for_peel call.
653 2016-01-12 Jeff Law <law@redhat.com>
655 PR tree-optimization/pr67755
656 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
657 "need_profile_correction".
658 (thread_block_1): Initialize new field to false by default. If we
659 have multiple thread paths through a common joiner to different
660 final targets, then set new field to true.
661 (compute_path_counts): Only do count adjustment when it's really
664 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
666 * doc/invoke.texi (Spec Files): Move section down in file, past
667 all command-line option descriptions.
669 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
672 * doc/gty.texi: Remove documentation of mark_hook.
673 * gengtype.c (struct write_types_data): Remove code to support
675 (walk_type): Likewise.
676 (write_func_for_structure): Likewise.
678 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
680 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
681 Directory Options, and -specs= to Overall Options.
682 (Overall Options): Adjust similarly. Reorder to group related
683 options together. Make -specs= cross-reference the spec file details.
684 (Directory Options): Adjust similarly.
686 2016-01-12 Jeff Law <law@redhat.com>
688 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
690 2016-01-12 Olivier Hainque <hainque@adacore.com>
692 * gcc.c (spec_undefvar_allowed): New global.
693 (process_command): Set to true when running for --version or --help,
695 (getenv_spec_function): When the variable is not defined, use the
696 variable name as the variable value if we're allowed not to issue
699 2016-01-12 Bin Cheng <bin.cheng@arm.com>
701 PR tree-optimization/68911
702 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
703 information computed for expression "init + nit * step".
705 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
707 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
708 about name of GCC executable. Remove deleted node from menu.
709 (Directory Options) <-B>: Remove cross-reference to deleted node.
710 (Target Options): Delete section.
712 2016-01-12 Christian Bruel <christian.bruel@st.com>
715 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
716 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
718 2016-01-12 Jakub Jelinek <jakub@redhat.com>
721 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
722 aligned_mem is properly set for AVX512-VL floating point masked
726 * ifcvt.c (cond_exec_process_if_block): When removing the last
727 insn from then_bb, remove also any possible barriers that follow it.
729 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
733 * config/i386/iamcu.h (SIZE_TYPE): New macro.
734 (PTRDIFF_TYPE): Likewise.
735 (WCHAR_TYPE): Likewise.
736 (WCHAR_TYPE_SIZE): Likewise.
737 (STDINT_LONG32): Likewise.
739 2016-01-12 Richard Biener <rguenther@suse.de>
741 PR tree-optimization/69053
742 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
743 convert initial value for cond reductions.
745 2016-01-12 Richard Biener <rguenther@suse.de>
747 PR tree-optimization/69007
748 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
749 widen_sum after dot_prod and sad.
751 2016-01-12 Richard Biener <rguenther@suse.de>
753 PR tree-optimization/69168
754 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
755 pattern stmt SLP type.
756 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
757 end up unused so cope with that case.
759 2016-01-12 Richard Biener <rguenther@suse.de>
761 PR tree-optimization/69157
762 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
763 stmts def type only during analyze phase.
764 (vectorizable_call): Likewise.
765 (vectorizable_simd_clone_call): Likewise.
766 (vectorizable_conversion): Likewise.
767 (vectorizable_assignment): Likewise.
768 (vectorizable_shift): Likewise.
769 (vectorizable_operation): Likewise.
770 (vectorizable_store): Likewise.
771 (vectorizable_load): Likewise.
773 2016-01-12 Richard Biener <rguenther@suse.de>
775 PR tree-optimization/69174
776 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
778 (vectorizable_load): Properly compute the number of loads needed
779 for permuted strided SLP loads and do not spuriously assign
780 to SLP_TREE_VEC_STMTS.
782 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
784 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
785 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
786 (MD_EXEC_PREFIX): Remove.
787 (MD_STARTFILE_PREFIX) Removee.
788 (FILE_NAME_ABSOLUTE_P): Remove.
789 (CPP_SPEC): Do not read macros from sys/version.h.
790 (LINK_COMMAND_SPEC): Remove.
791 (LOCAL_INCLUDE_DIR): Remove.
792 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
793 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
794 (POST_LINK_SPEC): Define to invoke stubify after linker
795 (LIBSTDCXX): Remove define
796 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
797 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
798 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
799 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
800 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
801 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
802 (i386_djgpp_asm_named_section): Add propotype of new procedure
804 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
805 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
806 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h).
807 (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1.
808 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
809 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors.
810 (MAX_OFILE_ALIGNMENT): Define to 128.
811 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
813 * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section.
815 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
817 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
818 Add rule for building djgpp.o.
820 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
822 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
823 (rtx_is_swappable_p): Reductions are swappable.
824 (insn_is_swappable_p): V2DF reductions are swappable.
826 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
828 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
829 reloads for other unsupported memory operands.
831 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
832 Jim Wilson <jim.wilson@linaro.org>
835 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
836 copy_to_mode_reg instead of force_reg.
838 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
841 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
842 TARGET_80387 is true.
844 2016-01-11 Jakub Jelinek <jakub@redhat.com>
847 * lra-eliminations.c (move_plus_up): Only move plus up
848 if subreg of the constant can be simplified into constant
849 and use the simplified subreg of the constant instead of
850 the original constant.
852 * fold-const.c (fold_convertible_p): Don't return true
853 for conversion of VECTOR_TYPE to same sized integral type.
854 (fold_convert_loc): Fix up formatting. Fold conversion of
855 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
858 PR tree-optimization/69214
859 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
860 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
863 PR tree-optimization/69207
864 * tree-vect-slp.c (vect_get_constant_vectors): For
865 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
866 fold_convertible_p to vector_type's element type, and always
867 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
869 2016-01-11 Richard Biener <rguenther@suse.de>
871 PR tree-optimization/69173
872 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
873 fixup the cycle if all stmts are in a pattern.
875 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
878 * alias.c (base_alias_check): Move check for addresses with
879 alignment ANDs before the call for compare_base_decls.
880 (memrefs_conflict_p): Return -1 for different decls
881 that went through alignment adjustments.
883 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
885 PR rtl-optimization/68796
886 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
887 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
888 and QImode comparisons against zero with CC_NZmode.
889 * config/aarch64/iterators.md (short_mask): New mode_attr.
891 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
893 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
894 (<avx512>_store<mode>_mask): Likewise.
896 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
897 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
899 PR rtl-optimization/68841
900 * ifcvt.c (struct noce_if_info): Add orig_x field.
901 (bbs_ok_for_cmove_arith): Add to_rename parameter.
902 Don't record conflicts on to_rename if it's present.
903 Allow memory destinations in sets.
904 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
905 blocks, passing orig_x to the checks.
906 (noce_process_if_block): Set if_info->orig_x appropriately.
908 2016-01-11 Tom de Vries <tom@codesourcery.com>
910 PR tree-optimization/69069
911 * tree-parloops.c (create_parallel_loop): Add missing phi args.
913 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
915 PR rtl-optimization/68920
916 * config/i386/i386.c (ix86_option_override_internal): Restrict number
917 of conditional moves for RTL if-conversion to 1 for
918 TARGET_ONE_IF_CONV_INSN.
919 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
920 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
921 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
922 parameter to restirct number of conditional moves for
924 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
925 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
928 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
931 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
932 onepart vars. Fix typo in comment. Fix reversed condition in
934 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
937 * var-tracking.c (dump_onepart_variable_differences): New.
938 (dataflow_set_different): If a detailed dump is requested,
939 delay early returns and dump differences between onepart
940 variables present before and after, and added variables.
942 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
945 * expr.c (expand_expr_real_1): For boolean vector constants
946 with a scalar mode use const_scalar_mask_from_tree.
947 (const_scalar_mask_from_tree): New.
948 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
949 assigned to a mask type to handle constants.
951 2016-01-11 Martin Jambor <mjambor@suse.cz>
954 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
955 useless parameters if we cannot change function signature.
957 2016-01-11 Martin Jambor <mjambor@suse.cz>
960 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
963 2016-01-11 Tom de Vries <tom@codesourcery.com>
965 PR tree-optimization/69109
966 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
969 2016-01-11 Tom de Vries <tom@codesourcery.com>
971 PR tree-optimization/69108
972 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
973 res is not used in a phi.
975 2016-01-11 Yury Gribov <y.gribov@samsung.com>
978 * common.opt (frandom-seed): Fix parameter name.
979 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
981 2016-01-11 Tom de Vries <tom@codesourcery.com>
983 PR tree-optimization/69058
984 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
987 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
989 * config/arc/arc.opt (mdiv-rem): Add period to the end.
990 (mcode-density): Likewise.
992 2016-01-10 Tom de Vries <tom@codesourcery.com>
994 PR tree-optimization/69062
995 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
996 (parallelize_loops): Don't paralelize loop that has phi with address
999 2016-01-10 Tom de Vries <tom@codesourcery.com>
1001 PR tree-optimization/69039
1002 * tree-parloops.c (try_create_reduction_list): Only allow single exit
1005 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
1008 * match.pd: Require target has function_c99_misc before doing
1009 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
1011 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
1013 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
1015 * configure: Regenerate.
1017 2016-01-09 Jakub Jelinek <jakub@redhat.com>
1020 PR tree-optimization/69097
1021 * fold-const.h (expr_not_equal_to): New prototype.
1022 * fold-const.c: Include stringpool.h and tree-ssanames.h.
1023 (expr_not_equal_to): New function.
1024 * match.pd (X % -Y is the same as X % Y): Don't optimize
1025 unless X is known not to be equal to minimum or Y is known
1026 not to be equal to -1.
1027 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
1028 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
1029 (simplify_stmt_using_ranges): Adjust caller.
1030 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
1031 substitute_and_fold.
1033 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
1035 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
1038 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1040 PR tree-optimization/69167
1041 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
1042 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
1044 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1046 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1047 Richard Biener <rguenther@suse.de>
1049 PR tree-optimization/68707
1050 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
1051 instances that can be handled via vect_load_lanes.
1053 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
1055 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
1056 if we can't determine address equivalence.
1057 * alias.c (compare_base_decl): Update for changed return value of
1058 symtab_node::equal_address_to.
1060 2016-01-08 Jason Merrill <jason@redhat.com>
1064 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
1065 * expr.c (store_field): Not here.
1066 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
1067 call with TREE_ADDRESSABLE type.
1068 * tree-cfg.c (verify_gimple_call): Adjust.
1070 2016-01-08 Olivier Hainque <hainque@adacore.com>
1072 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
1075 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1077 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
1078 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
1079 (reduc_smin_v2sf): Rename to...
1080 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
1081 (reduc_splus_v2sf): Rename to...
1082 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
1084 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1086 PR tree-optimization/69162
1087 * gimplify.c (gimplify_va_arg_expr): Encode original type of
1088 valist argument in another argument.
1089 (gimplify_modify_expr): Adjust for the above change. Cleanup.
1090 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
1091 to determine the va_list type, build a MEM_REF instead of
1092 build_fold_indirect_ref.
1094 PR tree-optimization/69172
1095 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
1098 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1100 PR tree-optimization/67781
1101 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1102 and cmpnop in two steps: first the ones not accessed in original
1103 gimple expression in a endian independent way and then the ones not
1104 accessed in the final result in an endian-specific way.
1106 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1108 PR tree-optimization/69083
1109 * tree-vect-slp.c (vect_get_constant_vectors): For
1110 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
1111 element type. If op is fold_convertible_p to vector_type's element
1112 type, use NOP_EXPR instead of VCE.
1114 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
1116 PR rtl-optimization/67778
1117 PR rtl-optimization/68634
1118 PR rtl-optimization/68909
1119 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
1120 block from the stack until done with it. Remove a superfluous
1121 bitmap set. Remove a superfluous bitmap test.
1123 2016-01-07 Martin Sebor <msebor@redhat.com>
1126 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
1127 constraint on the type of arguments.
1129 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
1131 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
1132 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
1133 unaligned_access on the gcc_options set.
1134 * config/arm/arm.c (arm_option_override_internal): Use
1135 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
1137 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1140 * config/i386/i386.c (ix86_frame_pointer_required): Enable
1141 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
1143 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1146 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1149 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1150 depending on frame_pointer_needed before remaining integer and SSE
1151 registers are saved.
1153 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
1156 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
1158 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1161 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
1162 Use the "xBm" constraint.
1163 (float<sseintvecmodelower><mode>2<mask_name><round_name):
1165 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
1166 (sse_cvtsi2ssq<round_name>): Likewise.
1167 (sse_cvtss2si<round_name>): Likewise.
1168 (sse_cvtss2siq<round_name>): Likewise.
1169 (sse2_cvtsi2sdq<round_name>): Likewise.
1170 (sse2_cvtsd2si<round_name>): Likewise.
1171 (sse2_cvtsd2siq<round_name>): Likewise.
1172 * config/i386/subst.md (round_nimm_scalar_predicate): New
1175 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1178 * varasm.c (make_decl_rtl): Mark invalid register vars as
1181 PR rtl-optimization/66206
1182 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
1183 All callers changed.
1185 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1187 PR tree-optimization/69141
1188 * tree-ssa-pre.c: Include langhooks.h.
1189 (eliminate_dom_walker::before_dom_children): Use
1190 lang_hooks.decl_printable_name instead of
1191 cgraph_node::get ()->name ().
1194 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
1195 it and DECL_ALIGN too.
1197 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
1199 * config/mips/mips-ftypes.def: Sort to lexicographical order.
1201 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1204 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1205 depending on frame_pointer_needed before remaining integer and SSE
1206 registers are saved.
1208 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1210 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
1211 mode iterator with VSX_M2.
1212 (*p9_vecstore_<mode>): Likewise.
1213 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
1214 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
1215 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
1216 (define_split for VSX_LE128 stores): Likewise.
1217 (define_peephole2 for TImode LE swaps): Likewise.
1218 (define_split for VSX_LE128 post-reload stores): Likewise.
1220 2016-01-06 Marek Polacek <polacek@redhat.com>
1223 * convert.c (convert_to_integer_1): Adjust call to
1224 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
1225 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
1226 EXPR instead of ARG.
1227 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
1229 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1232 * doc/extend.texi (RL78 Variable Attributes): New section.
1234 2016-01-05 Marek Polacek <polacek@redhat.com>
1237 * builtins.c (get_memmodel): Use expansion point location rather than
1238 the input location. Call warning_at rather than warning.
1239 (expand_builtin_atomic_compare_exchange): Likewise.
1240 (expand_builtin_atomic_load): Likewise.
1241 (expand_builtin_atomic_store): Likewise.
1242 (expand_builtin_atomic_clear): Likewise.
1244 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1247 * config/i386/i386.c (ix86_expand_vector_logical_operator):
1248 Replace nonimmediate_operand with vector_operand.
1249 * config/i386/predicates.md (vector_operand): New predicate.
1250 (general_vector_operand): Replace nonimmediate_operand with
1252 * config/i386/sse.md: Replace nonimmediate_operand with
1253 vector_operand and m constraint with Bm constraint on SSE
1254 patterns with 16-byte memory operand.
1255 * config/i386/subst.md (round_nimm_predicate): Replace
1256 nonimmediate_operand with vector_operand.
1257 (round_saeonly_nimm_predicate): Likewise.
1258 (round_saeonly_nimm_scalar_predicate): New.
1260 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1263 * config/i386/constraints.md (Bm): New constraint.
1264 * config/i386/predicates.md (vector_memory_operand): New
1266 * config/i386/sse.md: Replace xm with xBm in plusminus and
1269 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1272 * doc/extend.texi (V850 Function Attributes): New section.
1273 (V850 Variable Attributes): New section.
1275 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1278 * doc/extend.texi (MicroBlaze Function Attributes): Document
1279 interrupt_handler and fast_interrupt attributes.
1281 2016-01-05 Sergei Trofimovich <siarheit@google.com>
1284 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
1285 for local symbolic operands.
1286 * config/ia64/predicates.md (local_symbolic_operand64): New
1289 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1291 PR rtl-optimization/68651
1292 * combine.c (combine_simplify_rtx): Canonicalize x + x into
1295 2016-01-05 Nathan Sidwell <nathan@acm.org>
1297 * alias.c (compare_base_decls): Use symtab_node::get.
1299 2016-01-05 Nick Clifton <nickc@redhat.com>
1302 * ira-costs.c (copy_cost): Initialise the t_icode field of the
1303 secondary_reload_info structure.
1306 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
1307 decls if weak support is available.
1309 2016-01-04 Martin Sebor <msebor@redhat.com>
1311 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
1313 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1315 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1316 OPTION_MASK_P9_DFORM.
1318 * config/rs6000/constraints.md (wo constraint): New constraint for
1321 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
1323 (rs6000_init_hard_regno_mode_ok): Likewise.
1325 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
1328 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
1329 expanders not to have constraints. Add support for ISA 3.0 xxperm
1330 instruction. Add support for fusing xxlor with xxperm.
1331 (altivec_vperm_<mode>_internal): Likewise.
1332 (altivec_vperm_v8hiv16qi): Likewise.
1333 (altivec_vperm_<mode>v16q): Likewise.
1334 (altivec_vperm_<mode>_uns): Likewise.
1335 (vperm_v8hiv4si): Likewise.
1336 (vperm_v16qiv8hi): Likewise.
1338 * doc/md.texi (RS/6000 constraints): Document wo constraint.
1340 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1342 Update copyright years.
1344 * gcc.c (process_command): Update copyright notice dates.
1345 * gcov-dump.c (print_version): Ditto.
1346 * gcov.c (print_version): Ditto.
1347 * gcov-tool.c (print_version): Ditto.
1348 * gengtype.c (create_file): Ditto.
1349 * doc/cpp.texi: Bump @copying's copyright year.
1350 * doc/cppinternals.texi: Ditto.
1351 * doc/gcc.texi: Ditto.
1352 * doc/gccint.texi: Ditto.
1353 * doc/gcov.texi: Ditto.
1354 * doc/install.texi: Ditto.
1355 * doc/invoke.texi: Ditto.
1357 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1359 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
1360 modes larger than TImode as TImode if NEON is not enabled.
1362 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1365 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
1366 mode for %f0-%f31 only if TARGET_FPU.
1368 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
1371 * config/sparc/sparc.c (scan_record_type): Take into account subfields
1372 to compute the PACKED_P predicate.
1373 (function_arg_record_value): Minor tweaks.
1375 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1377 * doc/install.texi (--with-multilib-list): Describe the meaning of the
1378 option for arm*-*-* targets.
1380 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
1382 * doc/extend.texi (Common Function Attributes): Move docs for
1383 MSP430-specific attributes to....
1384 (MSP430 Function Attributes): ...here. Delete the redundant
1385 entries and copy-edit the remaining text.
1386 (MSP430 Variable Attributes): Use uniform format for index
1387 entries and add a cross-reference to the corresponding function
1390 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
1392 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
1394 (x86 Options): Likewise.
1396 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
1400 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
1401 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
1402 to corresponding attribute.
1404 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
1406 * doc/extend.texi (Common Function Attributes) <noplt>: Move
1407 to correct alphabetization of table. Copy-edit and correct
1409 <stack_protect>: Likewise.
1410 <target_clones>: Likewise.
1412 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
1413 Correct punctuation.
1414 (Code Gen Options) <-fno-plt>: Copy-edit.
1416 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1419 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
1420 SI values. Explicitly convert SI to DI and vice-versa.
1422 2016-01-01 Jakub Jelinek <jakub@redhat.com>
1424 PR tree-optimization/69070
1425 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
1426 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
1429 * ubsan.c (ubsan_instrument_float_cast): Call
1430 initialize_sanitizer_builtins.
1433 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
1435 Copyright (C) 2016 Free Software Foundation, Inc.
1437 Copying and distribution of this file, with or without modification,
1438 are permitted in any medium without royalty provided the copyright
1439 notice and this notice are preserved.