1 2017-01-24 Bin Cheng <bin.cheng@arm.com>
3 PR tree-optimization/79159
4 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
5 (record_nonwrapping_iv): Improve boundary using above function if no
6 value range information.
8 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
9 Martin Jambor <mjambor@suse.cz>
11 * brig-builtins.def: New file.
12 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
13 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
14 (DEF_HSAIL_SAT_BUILTIN): Likewise.
15 (DEF_HSAIL_INTR_BUILTIN): Likewise.
16 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
17 * builtin-types.def (BT_INT8): New.
20 (BT_UINT16): Likewise.
21 (BT_FN_ULONG): Likewise.
22 (BT_FN_UINT_INT): Likewise.
23 (BT_FN_UINT_ULONG): Likewise.
24 (BT_FN_UINT_LONG): Likewise.
25 (BT_FN_UINT_PTR): Likewise.
26 (BT_FN_ULONG_PTR): Likewise.
27 (BT_FN_INT8_FLOAT): Likewise.
28 (BT_FN_INT16_FLOAT): Likewise.
29 (BT_FN_UINT32_FLOAT): Likewise.
30 (BT_FN_UINT16_FLOAT): Likewise.
31 (BT_FN_UINT8_FLOAT): Likewise.
32 (BT_FN_UINT64_FLOAT): Likewise.
33 (BT_FN_UINT16_UINT32): Likewise.
34 (BT_FN_UINT32_UINT16): Likewise.
35 (BT_FN_UINT16_UINT16_UINT16): Likewise.
36 (BT_FN_INT_PTR_INT): Likewise.
37 (BT_FN_UINT_PTR_UINT): Likewise.
38 (BT_FN_LONG_PTR_LONG): Likewise.
39 (BT_FN_ULONG_PTR_ULONG): Likewise.
40 (BT_FN_VOID_UINT64_UINT64): Likewise.
41 (BT_FN_UINT8_UINT8_UINT8): Likewise.
42 (BT_FN_INT8_INT8_INT8): Likewise.
43 (BT_FN_INT16_INT16_INT16): Likewise.
44 (BT_FN_INT_INT_INT): Likewise.
45 (BT_FN_UINT_FLOAT_UINT): Likewise.
46 (BT_FN_FLOAT_UINT_UINT): Likewise.
47 (BT_FN_ULONG_UINT_UINT): Likewise.
48 (BT_FN_ULONG_UINT_PTR): Likewise.
49 (BT_FN_ULONG_ULONG_ULONG): Likewise.
50 (BT_FN_UINT_UINT_UINT): Likewise.
51 (BT_FN_VOID_UINT_PTR): Likewise.
52 (BT_FN_UINT_UINT_PTR: Likewise.
53 (BT_FN_UINT32_UINT64_PTR): Likewise.
54 (BT_FN_INT_INT_UINT_UINT): Likewise.
55 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
56 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
57 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
58 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
59 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
60 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
61 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
62 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
63 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
64 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
65 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
66 * doc/frontends.texi: List BRIG FE.
67 * doc/install.texi (Testing): Add BRIG tesring requirements.
68 * doc/invoke.texi (Overall Options): Mention BRIG.
69 * doc/standards.texi (Standards): Doucment BRIG HSA version.
71 2017-01-24 Richard Biener <rguenther@suse.de>
74 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
76 2017-01-24 Martin Jambor <mjambor@suse.cz>
79 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
80 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
83 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
86 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
87 casts from signed to unsigned really don't have a range.
89 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
91 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
92 GMP_RNDx for compatiblity.
94 2017-01-24 Martin Liska <mliska@suse.cz>
97 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
98 that would prevent us to call alloca with -1 as argument.
100 2017-01-24 Jakub Jelinek <jakub@redhat.com>
102 * dwarf2out.c (output_compilation_unit_header, output_file_names):
103 Avoid -Wformat-security warning.
105 2017-01-23 Andrew Pinski <apinski@cavium.com>
107 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
110 2017-01-23 Martin Sebor <msebor@redhat.com>
113 * gimple-ssa-sprintf.c (warn_level): New global.
114 (format_integer): Use it here and throughout the rest of the file.
115 Use the same switch to compute sign as base.
116 (maybe_warn): New function.
117 (format_directive): Factor out warnings into maybe_warn.
118 Add debugging output. Use warn_level.
119 (add_bytes): Use warn_level.
120 (pass_sprintf_length::compute_format_length): Add debugging output.
121 (try_substitute_return_value): Same.
122 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
125 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
126 (struct fmtresult, format_integer, format_floating): Adjust.
127 (fmtresult::fmtresult): Set max correctly in two argument ctor.
128 (get_string_length, format_string,format_directive): Same.
129 (pass_sprintf_length::compute_format_length): Same.
130 (try_substitute_return_value): Simplify slightly.
133 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
134 (fmtresult::operator+=): Outlined.
135 (struct fmtresult): Add ctors.
136 (struct conversion_spec): Rename...
137 (struct directive): ...to this. Add and remove data members.
138 (directive::set_width, directive::set_precision): New functions.
139 (format_percent): Use fmtresult ctor.
140 (get_width_and_precision): Remove.
141 (format_integer): Make naming changes. Avoid computing width and
143 (format_floating): Same. Adjust indentation.
144 (format_character, format_none): New functions.
145 (format_string): Moved character handling to format_character.
146 (format_directive): Remove arguments, change return type.
147 (parse_directive): New function.
148 (pass_sprintf_length::compute_format_length): Move directive
149 parsing to parse_directive.
151 2017-01-23 Jakub Jelinek <jakub@redhat.com>
153 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
154 (assign_assembler_name_if_needed): ... this.
155 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
156 (assign_assembler_name_if_needed): ... this.
157 (free_lang_data_in_cgraph): Adjust callers.
158 * cgraphunit.c (cgraph_node::analyze): Likewise.
159 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
162 2017-01-23 Richard Biener <rguenther@suse.de>
164 PR tree-optimization/79088
165 PR tree-optimization/79188
166 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
167 resetting loop bounds after last path deletion. Reset loop
168 bounds of the target loop, make code match the comments.
169 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
170 Make sure loops need no fixups.
172 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
174 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
175 exponent support with double type for first argument.
176 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
177 type returned by __builtin_vec_extract_sig,
178 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
179 functions from "vector int" to "vector unsigned int" or from
180 "vector long long int" to "vector unsigned long long int".
181 Changed type returned by __builtin_vec_extract_exp,
182 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
183 functions from "vector int" to "vector unsigned int" or from
184 "vector long long int" to "vector unsigned long long int".
185 Changed return type of __builtin_vec_test_data_class,
186 __builtin_vec_test_data_class_sp, and
187 __builtin_vec_test_data_class_dp from "vector int" to
188 "vector bool int" or from "vector long long int" to "vector bool
189 long long int" and changed second argument type from "unsigned
190 int" to "int". Added new overloaded function forms "vector float
191 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
192 "vector float __builtin_vec_insert_exp_sp (vector float, vector
193 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
194 double, vector unsigned long long int)" and "vector double
195 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
196 long int)". Changed return type of
197 __builtin_scalar_test_data_class and
198 __builtin_scalar_test_data_class_sp and
199 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
200 int" and changed second argument from "unsigned int" to "int".
201 Changed type returned by __builtin_scalar_test_neg,
202 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
203 from "int" to "bool int". Added new overloaded function form
204 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
205 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
206 exponent double-precision with floating point first argument.
207 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
208 documentation of scalar_test_data_class, scalar_test_neg,
209 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
210 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
211 vec_test_data_class built-in functions to reflect refinements in
212 their type signatures.
214 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
216 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
218 (aarch64_elf_asm_destructor): Likewise.
220 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
222 PR rtl-optimization/78634
223 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
224 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
225 * ifcvt.c (noce_try_cmove): Add missing cost check.
227 PR rtl-optimization/71724
228 * combine.c (if_then_else_cond): Look for situations where it is
229 beneficial to undo the work of one of the recursive calls.
231 2017-01-23 Bin Cheng <bin.cheng@arm.com>
233 PR tree-optimization/70754
234 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
235 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
236 combined stmt before it if not NULL.
237 (combine_chains): Process refs reversely and compute dominance point
240 2017-01-23 Martin Liska <mliska@suse.cz>
242 PR tree-optimization/79196
243 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
244 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
246 (strlen_optimize_stmt): Call the renamed function.
248 2017-01-23 Michael Matz <matz@suse.de>
250 PR tree-optimization/78384
251 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
253 2017-01-23 Richard Biener <rguenther@suse.de>
255 PR tree-optimization/79186
256 * tree-vrp.c (register_new_assert_for): Make sure we've seen
257 both incoming edges before moving an assert.
259 2017-01-23 Martin Jambor <mjambor@suse.cz>
261 * ipa-prop.c (load_from_param_1): Removed.
262 (load_from_unmodified_param): Bits from load_from_param_1 put back
264 (load_from_param): Removed.
265 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
266 with stmt. Reverted back to use of load_from_unmodified_param.
268 2017-01-23 Martin Jambor <mjambor@suse.cz>
271 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
272 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
273 field a pointer to garbage collected vector, mark lattices and
274 ipcp_orig_node with GTY((skip)).
275 (ipa_get_param_count): Adjust to descriptors being a pointer.
276 (ipa_get_param): Likewise.
277 (ipa_get_type): Likewise.
278 (ipa_get_param_move_cost): Likewise.
279 (ipa_set_param_used): Likewise.
280 (ipa_get_controlled_uses): Likewise.
281 (ipa_set_controlled_uses): Likewise.
282 (ipa_is_param_used): Likewise.
283 (ipa_node_params_t): Move into garbage collector. New methods insert
285 (ipa_node_params_sum): Annotate wth GTY(()).
286 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
288 (ipa_load_from_parm_agg): Adjust declaration.
289 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
290 * ipa-profile.c (ipa_profile): Likewise.
291 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
292 (ipa_populate_param_decls): Make descriptors parameter garbage
294 (ipa_dump_param): Adjust to descriptors being a pointer.
295 (ipa_alloc_node_params): Likewise.
296 (ipa_initialize_node_params): Likewise.
297 (load_from_param_1): Make descriptors parameter garbage collected.
298 (load_from_unmodified_param): Likewise.
299 (load_from_param): Likewise.
300 (ipa_load_from_parm_agg): Likewise.
301 (ipa_node_params::~ipa_node_params): Removed.
302 (ipa_free_all_node_params): Remove call to delete operator.
303 (ipa_node_params_t::insert): New.
304 (ipa_node_params_t::remove): Likewise.
305 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
306 copy known_csts and known_contexts vectors.
307 (ipa_read_node_info): Adjust to descriptors being a pointer.
308 (ipcp_modif_dom_walker): Make m_descriptors field garbage
310 (ipcp_transform_function): Make descriptors variable garbage
313 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
315 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
316 * config/i386/avx512dqintrin.h: Ditto.
317 * config/i386/avx512fintrin.h: Ditto.
318 * gcc/config/i386/i386.c: Handle new builtins.
319 * config/i386/i386-builtin.def: Add new builtins.
320 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
321 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
323 2017-01-23 Jakub Jelinek <jakub@redhat.com>
324 Martin Liska <mliska@suse.cz>
326 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
327 * asan.c (asan_expand_poison_ifn): Support stores and use
328 appropriate ASAN report function.
329 * internal-fn.c (expand_ASAN_POISON_USE): New function.
330 * internal-fn.def (ASAN_POISON_USE): Declare.
331 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
332 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
333 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
334 ASAN_POISON calls w/o LHS.
335 * tree-ssa.c (execute_update_addresses_taken): Create clobber
336 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
337 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
338 * gimplify.c (asan_poison_variables): Add attribute
339 use_after_scope_memory to variables that really needs to live
341 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
342 having the attribute.
344 2017-01-23 Martin Liska <mliska@suse.cz>
346 * asan.c (create_asan_shadow_var): New function.
347 (asan_expand_poison_ifn): Likewise.
348 * asan.h (asan_expand_poison_ifn): New declaration.
349 * internal-fn.c (expand_ASAN_POISON): Likewise.
350 * internal-fn.def (ASAN_POISON): New builtin.
351 * sanopt.c (pass_sanopt::execute): Expand
352 asan_expand_poison_ifn.
353 * tree-inline.c (copy_decl_for_dup_finish): Make function
355 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
356 * tree-ssa.c (is_asan_mark_p): New function.
357 (execute_update_addresses_taken): Rewrite local variables
358 (identified just by use-after-scope as addressable) into SSA.
360 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
362 * doc/install.texi (Specific): opensource.apple.com uses https
363 now. Remove trailing slash.
365 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
367 * README.Portability: Remove note on an Irix compatibility issue.
369 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
371 * gcov.c (INCLUDE_ALGORITHM): Define.
372 (INCLUDE_VECTOR): Define.
373 No longer include <vector> and <algorithm> directly.
375 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
377 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
379 * doc/invoke.texi (Code Gen Options): Ditto.
381 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
384 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
386 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
388 rtl-optimization/79125
389 * cprop.c (local_cprop_pass): Handle cases where we make an
392 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
396 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
397 read from, for big endian.
399 2017-01-20 Jiong Wang <jiong.wang@arm.com>
401 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
402 register pauth builtins for LP64 only.
404 2017-01-20 Marek Polacek <polacek@redhat.com>
407 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
410 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
412 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
414 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
415 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
416 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
418 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
421 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
422 in big-endian mode when they are not a single duplicated value.
424 2017-01-20 Richard Biener <rguenther@suse.de>
426 * BASE-VER: Bump to 7.0.1.
428 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
430 * omp-low.c (omplow_simd_context): New struct. Use it...
431 (lower_rec_simd_input_clauses): ...here and...
432 (lower_rec_input_clauses): ...here to hold common data. Adjust all
433 references to idx, lane, max_vf, is_simt.
435 2017-01-20 Graham Markall <graham.markall@embecosm.com>
437 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
440 2017-01-20 Martin Jambor <mjambor@suse.cz>
442 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
443 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
445 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
446 (GTFILES): Rename hsa.c to hsa-common.c.
447 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
448 * hsa-dump.c: Likewise.
449 * hsa-gen.c: Likewise.
450 * hsa-regalloc.c: Likewise.
451 * ipa-hsa.c: Likewise.
452 * omp-expand.c: Likewise.
453 * omp-low.c: Likewise.
454 * toplev.c: Likewise.
456 2017-01-20 Marek Polacek <polacek@redhat.com>
459 * doc/invoke.texi: Document -Wduplicated-branches.
460 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
461 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
462 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
463 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
464 return 0 only when not OEP_LEXICOGRAPHIC.
465 (fold_build_cleanup_point_expr): Use the expression
466 location when building CLEANUP_POINT_EXPR.
467 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
468 * tree.c (add_expr): Handle error_mark_node.
470 2017-01-20 Martin Liska <mliska@suse.cz>
473 * tree-profile.c (init_ic_make_global_vars): Do not call
475 (gimple_init_gcov_profiler): Likewise.
477 2017-01-20 Martin Liska <mliska@suse.cz>
480 * cgraph.h (maybe_create_reference): Remove argument and
482 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
484 * ipa-cp.c (create_specialized_node): Likewise.
485 * symtab.c (symtab_node::maybe_create_reference): Handle
486 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
488 2017-01-20 Martin Liska <mliska@suse.cz>
490 * read-rtl-function.c (function_reader::create_function): Use
491 build_decl instread of build_decl_stat.
493 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
495 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
496 * config/i386/avx512dqintrin.h: Ditto.
497 * config/i386/avx512fintrin.h: Ditto.
498 * config/i386/i386-builtin-types.def: Add new types.
499 * gcc/config/i386/i386.c: Handle new types.
500 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
501 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
502 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
503 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
504 (__builtin_ia32_kshiftridi): New.
505 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
507 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
511 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
512 define to rs6000_init_stack_protect_guard.
513 (rs6000_init_stack_protect_guard): New function.
515 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
516 Yunqiang Su <yunqiang.su@imgtec.com>
518 * config.gcc (supported_defaults): Add madd4.
519 (with_madd4): Add validation.
520 (all_defaults): Add madd4.
521 * config/mips/mips.opt (mmadd4): New option.
522 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
524 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
526 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
527 (ISA_HAS_FUSED_MADD4): Likewise.
528 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
529 * gcc/doc/install.texi (--with-madd4): Document the new option.
531 2017-01-19 Jiong Wang <jiong.wang@arm.com>
533 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
534 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
535 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
536 (aarch64_init_pauth_hint_builtins): New.
537 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
538 (aarch64_expand_builtin): Expand new builtins.
540 2017-01-19 Jiong Wang <jiong.wang@arm.com>
542 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
543 * combine-stack-adj.c (no_unhandled_cfa): Handle
544 REG_CFA_TOGGLE_RA_MANGLE.
545 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
546 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
547 info for return address signing.
548 (aarch64_expand_epilogue): Likewise.
550 2017-01-19 Jiong Wang <jiong.wang@arm.com>
552 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
553 * config/aarch64/aarch64-protos.h
554 (aarch64_return_address_signing_enabled): New declaration.
555 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
557 (aarch64_expand_prologue): Sign return address before it's pushed onto
559 (aarch64_expand_epilogue): Authenticate return address fetched from
561 (aarch64_override_options): Sanity check for ILP32 and ISA level.
562 (aarch64_attributes): New function attributes for "sign-return-address".
563 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
564 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
565 ("*do_return"): Generate combined instructions according to key index.
566 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
567 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
569 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
570 * config/aarch64/aarch64.opt (msign-return-address=): New.
571 * doc/extend.texi (AArch64 Function Attributes): Documents
572 "sign-return-address=".
573 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
575 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
577 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
578 overall option summary.
580 2017-01-19 Jiong Wang <jiong.wang@arm.com>
582 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
583 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
584 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
585 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
587 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
589 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
590 -mpower9-minmax by default for -mcpu=power9.
591 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
592 128-bit floating point.
594 2017-01-20 Alan Modra <amodra@gmail.com>
596 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
599 2017-01-20 Alan Modra <amodra@gmail.com>
602 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
603 for strcmp and strncmp from corresponding builtin decl.
605 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
607 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
608 instead of i386/rtems-64.h.
609 * config/i386/rtems-64.h: Remove.
611 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
615 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
617 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
619 2017-01-19 Tamar Christina <tamar.christina@arm.com>
621 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
622 Change int to HOST_WIDE_INT.
623 * config/aarch64/aarch64-protos.h
624 (aarch64_simd_gen_const_vector_dup): Likewise.
625 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
627 2017-01-19 David Malcolm <dmalcolm@redhat.com>
629 * langhooks-def.h (lhd_type_for_size): New decl.
630 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
631 * langhooks.c (lhd_type_for_size): New function, taken from
634 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
636 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
637 define_bypass for CR latency.
638 (power9-cracked-alu): Update bypass latency and remove power9-branch.
639 (power9-alu2): Add define_bypass for CR latency.
641 (power9-mul): Update insn latency.
642 (power9-mul-compare): Update insn latency, bypass latency and remove
645 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
647 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
649 * config/aarch64/aarch64.md
650 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
651 aarch64_nopcrelative_literal_loads.
652 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
654 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
656 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
658 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
660 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
663 * config.gcc (supported_defaults): Add lxc1-sxc1.
664 (with_lxc1_sxc1): Add validation.
665 (all_defaults): Add lxc1-sxc1.
666 * config/mips/mips.opt (mlxc1-sxc1): New option.
667 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
669 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
671 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
672 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
673 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
675 2017-01-19 Richard Biener <rguenther@suse.de>
677 PR tree-optimization/72488
678 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
679 sure to restore SSA info.
680 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
682 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
684 PR rtl-optimization/79121
685 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
686 of the inner type when shifting an extended value.
688 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
691 * symtab.c (symtab_node::equal_address_to): Fix comparing of
692 interposable aliases.
694 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
697 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
698 Use the evmergelohi instruction.
699 (mov_si<mode>_e500_subreg4_2_le): Likewise.
700 (mov_sitf_e500_subreg8_2_be): Likewise.
701 (mov_sitf_e500_subreg12_2_le): Likewise.
702 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
703 (mov_si<mode>_e500_subreg4_2_be): Likewise.
704 (mov_sitf_e500_subreg8_2_le): Likewise.
705 (mov_sitf_e500_subreg12_2_be): Likewise.
707 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
709 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
710 attribute from vecsimple to vecperm.
711 (altivec_vbpermq2): Likewise.
713 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
716 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
718 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
719 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
720 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
721 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
722 case where N arg is SIZE_MAX.
723 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
724 (cmpstrsi): Add pattern.
726 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
728 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
729 __builtin_vec_revb builtins.
730 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
731 built-in functions to support generation of the ISA 3.0 XXBR<x>
732 vector byte reverse instructions.
733 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
734 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
735 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
736 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
737 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
738 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
739 (P9V_BUILTIN_VEC_REVB): Likewise.
740 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
741 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
742 (p9_xxbrq_v16qi): Likewise.
743 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
744 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
745 (p9_xxbrh_v8hi): Likewise.
746 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
747 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
748 vec_revb built-in functions.
750 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
752 PR rtl-optimization/78952
753 * config/i386/i386.md (any_extract): New code iterator.
754 (*insvqi_2): Use any_extract for source operand.
755 (*insvqi_3): Use any_shiftrt for source operand.
757 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
759 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
761 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
763 2017-01-18 Matthias Klose <doko@ubuntu.com>
765 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
767 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
769 * config/rs6000/altivec.h (vec_bperm): Change #define.
770 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
771 (altivec_vbpermq2): New define_insn.
772 (altivec_vbpermd): Likewise.
773 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
776 (VBPERM): New polymorphic function interface.
777 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
778 Add entries for P9V_BUILTIN_VEC_VBPERM.
779 * doc/extend.texi: Add interfaces for vec_bperm.
781 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
783 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
784 first letter of error messages.
785 (s390_resolve_overloaded_builtin): Likewise.
786 * config/s390/s390.c (s390_expand_builtin): Likewise.
787 (s390_invalid_arg_for_unprototyped_fn): Likewise.
788 (s390_valid_target_attribute_inner_p): Likewise.
789 * config/s390/s390.md ("tabort"): Likewise.
791 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
793 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
794 (ISA_AVOID_DIV_HILO): New macro.
795 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
796 (ISA_HAS_DDIV): Likewise.
798 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
800 * doc/invoke.texi (fabi-version): Correct number of occurrences.
802 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
804 * doc/invoke.texi (fabi-version): Spelling fix.
806 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
809 * doc/invoke.texi (fabi-version): Mention mangling fix for
812 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
815 * doc/invoke.texi (fabi-version): Document discriminator mangling.
817 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
820 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
821 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
823 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
825 (stack_protect_test): Ditto.
826 * config/rs6000/rs6000.opt (mstack-protector-guard=,
827 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
829 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
830 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
831 -mstack-protector-guard-offset=.
832 (RS/6000 and PowerPC Options): Ditto.
834 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.h (MASK_CLASS_P): New define.
837 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
838 there are no registers from different register sets also when
839 mask registers are used. Update function comment.
840 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
841 to (*k/*r) and (*k/*km) alternatives.
843 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
845 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
846 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
847 (EH_RETURN_HANDLER_RTX): New define.
848 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
849 Force frame pointer in EH return functions.
850 (aarch64_expand_epilogue): Add barrier for eh_return.
851 (aarch64_final_eh_return_addr): Remove.
852 (aarch64_eh_return_handler_rtx): New function.
853 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
855 (aarch64_eh_return_handler_rtx): New prototype.
857 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
859 * config/rs6000/altivec.h (vec_rlmi): New #define.
860 (vec_vrlnm): Likewise.
861 (vec_rlnm): Likewise.
862 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
863 (UNSPEC_VRLNM): Likewise.
864 (VIlong): New mode iterator.
865 (altivec_vrl<VI_char>mi): New define_insn.
866 (altivec_vrl<VI_char>nm): Likewise.
867 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
870 (RLNM): New polymorphic function entry.
871 (VRLWMI): New monomorphic function entry.
873 (RLMI): New polymorphic function entry.
874 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
875 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
876 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
879 2017-01-17 Jakub Jelinek <jakub@redhat.com>
882 * dwarf2out.c (field_byte_offset): Restore the
883 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
884 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
885 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
888 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
891 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
893 2017-01-17 Jakub Jelinek <jakub@redhat.com>
896 * dwarf2out.c (add_data_member_location_attribute): For constant
897 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
898 instead of DW_AT_data_member_location, DW_AT_bit_offset and
899 DW_AT_byte_size attributes.
901 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
903 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
904 after forcing to constant memory when the code model is medium.
906 2017-01-17 Julia Koval <julia.koval@intel.com>
909 * config/i386/avx512fintrin.h
910 (_mm512_i32gather_ps): Change __addr type to void const*.
911 (_mm512_mask_i32gather_ps): Ditto.
912 (_mm512_i32gather_pd): Ditto.
913 (_mm512_mask_i32gather_pd): Ditto.
914 (_mm512_i64gather_ps): Ditto.
915 (_mm512_mask_i64gather_ps): Ditto.
916 (_mm512_i64gather_pd): Ditto.
917 (_mm512_mask_i64gather_pd): Ditto.
918 (_mm512_i32gather_epi32): Ditto.
919 (_mm512_mask_i32gather_epi32): Ditto.
920 (_mm512_i32gather_epi64): Ditto.
921 (_mm512_mask_i32gather_epi64): Ditto.
922 (_mm512_i64gather_epi32): Ditto.
923 (_mm512_mask_i64gather_epi32): Ditto.
924 (_mm512_i64gather_epi64): Ditto.
925 (_mm512_mask_i64gather_epi64): Ditto.
926 (_mm512_i32scatter_ps): Change __addr type to void*.
927 (_mm512_mask_i32scatter_ps): Ditto.
928 (_mm512_i32scatter_pd): Ditto.
929 (_mm512_mask_i32scatter_pd): Ditto.
930 (_mm512_i64scatter_ps): Ditto.
931 (_mm512_mask_i64scatter_ps): Ditto.
932 (_mm512_i64scatter_pd): Ditto.
933 (_mm512_mask_i64scatter_pd): Ditto.
934 (_mm512_i32scatter_epi32): Ditto.
935 (_mm512_mask_i32scatter_epi32): Ditto.
936 (_mm512_i32scatter_epi64): Ditto.
937 (_mm512_mask_i32scatter_epi64): Ditto.
938 (_mm512_i64scatter_epi32): Ditto.
939 (_mm512_mask_i64scatter_epi32): Ditto.
940 (_mm512_i64scatter_epi64): Ditto.
941 (_mm512_mask_i64scatter_epi64): Ditto.
942 * config/i386/avx512pfintrin.h
943 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
944 (_mm512_mask_prefetch_i32gather_ps): Ditto.
945 (_mm512_mask_prefetch_i64gather_pd): Ditto.
946 (_mm512_mask_prefetch_i64gather_ps): Ditto.
947 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
948 (_mm512_prefetch_i32scatter_ps): Ditto.
949 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
950 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
951 (_mm512_prefetch_i64scatter_pd): Ditto.
952 (_mm512_prefetch_i64scatter_ps): Ditto.
953 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
954 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
955 * config/i386/avx512vlintrin.h
956 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
957 (_mm_mmask_i32gather_ps): Ditto.
958 (_mm256_mmask_i32gather_pd): Ditto.
959 (_mm_mmask_i32gather_pd): Ditto.
960 (_mm256_mmask_i64gather_ps): Ditto.
961 (_mm_mmask_i64gather_ps): Ditto.
962 (_mm256_mmask_i64gather_pd): Ditto.
963 (_mm_mmask_i64gather_pd): Ditto.
964 (_mm256_mmask_i32gather_epi32): Ditto.
965 (_mm_mmask_i32gather_epi32): Ditto.
966 (_mm256_mmask_i32gather_epi64): Ditto.
967 (_mm_mmask_i32gather_epi64): Ditto.
968 (_mm256_mmask_i64gather_epi32): Ditto.
969 (_mm_mmask_i64gather_epi32): Ditto.
970 (_mm256_mmask_i64gather_epi64): Ditto.
971 (_mm_mmask_i64gather_epi64): Ditto.
972 (_mm256_i32scatter_ps): Change __addr type to void*.
973 (_mm256_mask_i32scatter_ps): Ditto.
974 (_mm_i32scatter_ps): Ditto.
975 (_mm_mask_i32scatter_ps): Ditto.
976 (_mm256_i32scatter_pd): Ditto.
977 (_mm256_mask_i32scatter_pd): Ditto.
978 (_mm_i32scatter_pd): Ditto.
979 (_mm_mask_i32scatter_pd): Ditto.
980 (_mm256_i64scatter_ps): Ditto.
981 (_mm256_mask_i64scatter_ps): Ditto.
982 (_mm_i64scatter_ps): Ditto.
983 (_mm_mask_i64scatter_ps): Ditto.
984 (_mm256_i64scatter_pd): Ditto.
985 (_mm256_mask_i64scatter_pd): Ditto.
986 (_mm_i64scatter_pd): Ditto.
987 (_mm_mask_i64scatter_pd): Ditto.
988 (_mm256_i32scatter_epi32): Ditto.
989 (_mm256_mask_i32scatter_epi32): Ditto.
990 (_mm_i32scatter_epi32): Ditto.
991 (_mm_mask_i32scatter_epi32): Ditto.
992 (_mm256_i32scatter_epi64): Ditto.
993 (_mm256_mask_i32scatter_epi64): Ditto.
994 (_mm_i32scatter_epi64): Ditto.
995 (_mm_mask_i32scatter_epi64): Ditto.
996 (_mm256_i64scatter_epi32): Ditto.
997 (_mm256_mask_i64scatter_epi32): Ditto.
998 (_mm_i64scatter_epi32): Ditto.
999 (_mm_mask_i64scatter_epi32): Ditto.
1000 (_mm256_i64scatter_epi64): Ditto.
1001 (_mm256_mask_i64scatter_epi64): Ditto.
1002 (_mm_i64scatter_epi64): Ditto.
1003 (_mm_mask_i64scatter_epi64): Ditto.
1004 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
1005 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
1006 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
1007 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
1008 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
1009 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
1010 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
1011 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
1012 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
1013 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
1014 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
1015 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
1016 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
1017 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
1018 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
1019 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
1020 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
1021 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
1022 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
1023 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
1024 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
1025 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
1026 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
1027 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
1028 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
1029 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
1030 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
1031 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
1032 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
1033 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
1034 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
1035 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
1036 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
1037 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
1038 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
1039 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
1040 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
1041 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
1042 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
1043 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
1044 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
1045 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
1046 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
1047 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
1048 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
1049 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
1050 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
1051 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
1052 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
1053 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
1054 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
1055 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
1056 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
1057 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
1058 definitions accordingly.
1060 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
1061 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1064 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
1067 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
1070 * ira-conflicts.c (ira_build_conflicts): Update total conflict
1071 hard regs for inner regno.
1073 2017-01-17 Martin Liska <mliska@suse.cz>
1076 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
1077 assumption and add comment.
1079 2017-01-17 Nathan Sidwell <nathan@acm.org>
1081 * ipa-visibility.c (localize_node): New function, broken out of ...
1082 (function_and_variable_visibility): ... here. Call it.
1084 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
1087 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1088 correctly set frequency of oudgoing edge.
1089 (duplicate_thread_path): Fix profile updating.
1091 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1094 * configure.ac: Add GCC_BASE_VER.
1095 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
1096 version from BASE-VER file.
1097 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
1098 (gcc.o): Depend on $(BASEVER).
1099 * common.opt (dumpfullversion): New option.
1100 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
1101 * doc/invoke.texi: Document -dumpfullversion.
1102 * doc/install.texi: Document --with-gcc-major-version-only.
1103 * configure: Regenerated.
1105 2017-01-17 Richard Biener <rguenther@suse.de>
1107 PR tree-optimization/71433
1108 * tree-vrp.c (register_new_assert_for): Merge same asserts
1109 on all incoming edges.
1110 (process_assert_insertions_for): Handle insertions at the
1113 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
1115 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
1116 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
1118 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
1121 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
1124 2017-01-17 Alan Modra <amodra@gmail.com>
1127 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
1128 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
1129 symbolic stack limit when pic.
1131 2017-01-16 Martin Sebor <msebor@redhat.com>
1133 PR tree-optimization/78608
1134 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
1136 2017-01-16 Jeff Law <law@redhat.com>
1139 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1140 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1141 for several include directories that may be relative to sysroot.
1142 * config/i386/x-mingw32 (gplus_includedir): Define.
1143 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1144 (native_system_includedir): Likewise.
1145 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1146 override if TARGET_SYSTEM_ROOT is defined.
1147 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1149 PR tree-optimization/79090
1150 PR tree-optimization/33562
1151 PR tree-optimization/61912
1152 PR tree-optimization/77485
1153 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
1154 and computed trims into the dump file.
1156 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
1158 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
1160 2017-01-16 Jakub Jelinek <jakub@redhat.com>
1163 * gimplify.c (gimplify_init_constructor): If want_value and
1164 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
1168 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
1169 sequence. Formatting fixes.
1170 (doloop_optimize): Formatting fixes.
1173 * gcc.c (debug_level_greater_than_spec_func): New function.
1174 (static_spec_functions): Add debug-level-gt spec function.
1175 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
1177 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
1178 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
1179 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
1180 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
1181 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
1182 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
1184 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
1186 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
1187 QImode fixups to general and mask registers only.
1189 2017-01-16 Carl Love <cel@us.ibm.com>
1191 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
1192 for built-in functions
1193 vector signed char vec_nabs (vector signed char)
1194 vector signed short vec_nabs (vector signed short)
1195 vector signed int vec_nabs (vector signed int)
1196 vector signed long long vec_nabs (vector signed long long)
1197 vector float vec_nabs (vector float)
1198 vector double vec_nabs (vector double)
1199 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
1201 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
1202 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
1203 * doc/extend.texi: Update the documentation file for the new built-in
1206 2017-01-16 Martin Sebor <msebor@redhat.com>
1208 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
1211 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1213 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
1214 UNSPEC_VSX__XXSPLTD to require special splat handling.
1216 2017-01-16 David Malcolm <dmalcolm@redhat.com>
1219 * system.h: Poison strndup.
1221 2017-01-16 Alan Modra <amodra@gmail.com>
1224 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
1227 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
1229 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
1231 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
1233 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
1234 call recog here. Assert that INSN_CODE (insn) is non-negative.
1236 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
1239 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
1241 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
1242 in the currently scheduled RTL fragment.
1244 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
1246 PR rtl-optimization/78751
1247 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
1250 2017-01-14 Jeff Law <law@redhat.com>
1252 PR tree-optimization/79090
1253 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
1254 variable length stores.
1255 (compute_trims): Delete dead assignment to *trim_tail.
1256 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
1259 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
1261 PR rtl-optimization/78626
1262 PR rtl-optimization/78727
1263 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
1264 of a block, and split such blocks after everything else is finished.
1266 2017-01-14 Alan Modra <amodra@gmail.com>
1269 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
1270 target legitimate_combined_insn.
1271 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
1272 (rs6000_legitimate_combined_insn): New function.
1273 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
1275 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
1276 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
1277 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
1279 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
1281 * doc/frontends.texi (G++ and GCC): Remove references to Java.
1283 2017-01-13 Jeff Law <law@redhat.com>
1285 PR tree-optimization/33562
1286 PR tree-optimization/61912
1287 PR tree-optimization/77485
1288 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
1290 (delete_dead_assignment): Likewise.
1291 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
1292 statement to delete_dead_call and delete_dead_assignment.
1294 2017-01-13 David Malcolm <dmalcolm@redhat.com>
1297 * substring-locations.c (format_warning_va): Strengthen case 1 so
1298 that both endpoints of the substring must be within the format
1299 range for just the substring to be printed.
1301 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
1303 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
1304 * config/i386/i386.c (ix86_target_string): Add missing options
1305 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
1306 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
1307 flags_other and ix86_target_other to flags2_other. Display unknown
1309 (ix86_valid_target_attribute_inner_p): Add missing options and
1310 reorder options by implied ISAs, as in ix86_target_string.
1312 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
1314 * hash-table.h (hash_table::too_empty_p): New function.
1315 (hash_table::expand): Use it.
1316 (hash_table::traverse): Likewise.
1317 (hash_table::empty_slot): Use sizeof (value_type) instead of
1318 sizeof (PTR) to convert bytes to elements. Shrink the table
1319 if the current size is excessive for the current number of
1322 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
1324 * ira-costs.c (record_reg_classes): Break from the inner loop
1325 early once alt_fail is known to be true. Update outer loop
1326 handling accordingly.
1328 2017-01-13 Jeff Law <law@redhat.com>
1330 * tree-ssa-dse.c (decrement_count): New function.
1331 (increment_start_addr, maybe_trim_memstar_call): Likewise.
1332 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
1333 when we know the partially dead statement is a mem* function.
1335 PR tree-optimization/61912
1336 PR tree-optimization/77485
1337 * tree-ssa-dse.c: Include expr.h.
1338 (maybe_trim_constructor_store): New function.
1339 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
1341 PR tree-optimization/33562
1342 PR tree-optimization/61912
1343 PR tree-optimization/77485
1344 * doc/invoke.texi: Document new dse-max-object-size param.
1345 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
1346 * tree-ssa-dse.c: Include params.h.
1347 (dse_store_status): New enum.
1348 (initialize_ao_ref_for_dse): New, partially extracted from
1350 (valid_ao_ref_for_dse, normalize_ref): New.
1351 (setup_live_bytes_from_ref, compute_trims): Likewise.
1352 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
1353 (maybe_trim_partially_dead_store): Likewise.
1354 (maybe_trim_complex_store): Likewise.
1355 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
1356 Track what bytes live from the original store. Return tri-state
1357 for dead, partially dead or live.
1358 (dse_dom_walker): Add constructor, destructor and new private members.
1359 (delete_dead_call, delete_dead_assignment): New extracted from
1361 (dse_optimize_stmt): Make a member of dse_dom_walker.
1362 Use initialize_ao_ref_for_dse.
1364 PR tree-optimization/33562
1365 PR tree-optimization/61912
1366 PR tree-optimization/77485
1367 * sbitmap.h (bitmap_count_bits): Prototype.
1368 (bitmap_clear_range, bitmap_set_range): Likewise.
1369 * sbitmap.c (bitmap_clear_range): New function.
1370 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
1372 2017-01-13 Martin Liska <mliska@suse.cz>
1375 * function.c (set_cfun): Add new argument force.
1376 * function.h (set_cfun): Likewise.
1377 * ipa-inline-transform.c (inline_call): Use the function when
1378 strict alising from is dropped for function we inline to.
1380 2017-01-13 Richard Biener <rguenther@suse.de>
1382 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
1383 for dumping GIMPLE INTEGER_CSTs.
1385 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1387 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
1388 to 201112L since C++17.
1390 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
1393 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
1394 if -fsanitize=kernel-address is present.
1396 2017-01-13 Richard Biener <rguenther@suse.de>
1398 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
1399 as _Literal ( type ) number in case usual suffixes do not
1400 preserve all information.
1402 2017-01-13 Richard Biener <rguenther@suse.de>
1404 PR tree-optimization/77283
1405 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
1406 and ssa-iterators.h.
1407 (is_feasible_trace): Implement a cost model based on joiner
1410 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1413 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
1414 char or short to __float128/_Float128 directly.
1416 2017-01-12 Martin Sebor <msebor@redhat.com>
1418 to -Wformat-overflow.
1419 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
1420 (min_bytes_remaining): Same.
1421 (get_string_length): Same.
1422 (format_string): Same.
1423 (format_directive): Same.
1425 (pass_sprintf_length::handle_gimple_call): Same.
1427 2017-01-12 Jakub Jelinek <jakub@redhat.com>
1429 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
1430 info.nowrite calls with no lhs that can't throw. Return bool
1431 whether gsi_remove has been called or not.
1432 (pass_sprintf_length::handle_gimple_call): Return bool whether
1433 try_substitute_return_value called gsi_remove. Formatting fix.
1434 (pass_sprintf_length::execute): Don't use gsi_remove if
1435 handle_gimple_call returned true.
1438 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
1439 be removed due to side-effects, don't remove following barrier nor
1440 turn the successor edge into fallthru edge.
1442 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1445 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
1446 element-reversing loads and stores as not swappable.
1448 2017-01-12 Nathan Sidwell <nathan@acm.org>
1449 Nicolai Stange <nicstange@gmail.com>
1451 * combine.c (try_combine): Don't ignore result of overlap checking
1452 loop. Combine overlap & asm check into single loop.
1454 2017-01-12 Richard Biener <rguenther@suse.de>
1456 * tree-pretty-print.c (dump_generic_node): Provide -gimple
1457 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
1459 2017-01-12 Richard Biener <rguenther@suse.de>
1461 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
1462 and TS_TARGET_OPTION directly derive from TS_BASE.
1463 * tree-core.h (tree_optimization_option): Derive from tree_base.
1464 (tree_target_option): Likewise.
1466 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
1468 * config/i386/i386.c (memory_address_length): Increase len
1469 only when rip_relative_addr_p returns false.
1471 2017-01-11 Julia Koval <julia.koval@intel.com>
1473 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
1474 (OPTION_MASK_ISA_SGX_SET): New.
1475 (ix86_handle_option): Handle OPT_msgx.
1476 * config.gcc: Added sgxintrin.h.
1477 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
1478 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
1479 * config/i386/i386.c (ix86_target_string): Add -msgx.
1481 (ix86_option_override_internal): Handle new options.
1482 (ix86_valid_target_attribute_inner_p): Add sgx.
1483 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
1484 * config/i386/i386.opt: Add msgx.
1485 * config/i386/sgxintrin.h: New file.
1486 * config/i386/x86intrin.h: Add sgxintrin.h.
1488 2017-01-11 Jakub Jelinek <jakub@redhat.com>
1491 * fold-const.c (maybe_nonzero_address): Return 1 for function
1493 (tree_single_nonzero_warnv_p): Don't handle function local objects
1497 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
1500 2017-01-11 David Malcolm <dmalcolm@redhat.com>
1503 * opts.c: Include "spellcheck.h"
1504 (struct string_fragment): New struct.
1505 (struct edit_distance_traits<const string_fragment &>): New
1507 (get_closest_sanitizer_option): New function.
1508 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
1510 2017-01-11 Jakub Jelinek <jakub@redhat.com>
1512 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
1514 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
1515 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
1516 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
1517 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
1518 for initial die_offset if dwarf_split_debug_info.
1519 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
1520 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
1522 (output_skeleton_debug_sections): Formatting fix. Use
1523 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
1524 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
1526 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
1528 * config/arm/cortex-a53.md: Add bypasses for
1530 (cortex_a53_r2f): Only use for transfers.
1531 (cortex_a53_f2r): Likewise.
1532 (cortex_a53_r2f_cvt): Add reservation for conversions.
1533 (cortex_a53_f2r_cvt): Likewise.
1535 2017-01-11 Tamar Christina <tamar.christina@arm.com>
1537 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
1538 to all inlined functions, change static to extern.
1540 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
1543 * config/arm/arm.c (legitimize_pic_address): Handle reference to
1545 (arm_assemble_integer): Likewise.
1547 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
1549 * config.gcc: Use new awk script to check CPU, FPU and architecture
1550 parameters for --with-... options.
1551 * config/arm/parsecpu.awk: New file
1552 * config/arm/arm-cpus.in: New file.
1553 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
1555 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
1557 * config/arm/t-arm: Update dependency rules.
1558 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
1559 of processing .def files.
1560 * config/arm/genopt.sh: Deleted.
1561 * config/arm/gentune.sh: Deleted.
1562 * config/arm/arm-cores.def: Deleted.
1563 * config/arm/arm-arches.def: Deleted.
1564 * config/arm/arm-fpus.def: Deleted.
1565 * config/arm/arm-tune.md: Regenerated.
1566 * config/arm/arm-tables.opt: Regenerated.
1567 * config/arm/arm-cpu.h: New generated file.
1568 * config/arm/arm-cpu-data.h: New generated file.
1569 * config/arm/arm-cpu-cdata.h: New generated file.
1571 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
1574 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
1576 (input_varpool_node): Unpack dynamically_initialized bit.
1578 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
1580 PR rtl-optimization/79032
1581 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
1582 the alignment of the adjusted memory reference against that of MODE,
1583 instead of the alignment of the original memory reference.
1585 2017-01-11 Martin Jambor <mjambor@suse.cz>
1587 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
1589 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
1590 decorated functions.
1592 2017-01-11 Richard Biener <rguenther@suse.de>
1594 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
1595 set range/nonnull info for PHI results. Do not set it on
1596 stmts marked for removal.
1598 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
1600 * expr.c (store_field): In the bitfield case, fetch the return value
1601 from the registers before applying a single big-endian adjustment.
1602 Always do a final load for a BLKmode value not larger than a word.
1604 2017-01-10 David Malcolm <dmalcolm@redhat.com>
1607 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1608 that we correctly handle column numbers greater than
1609 LINE_MAP_MAX_COLUMN_NUMBER.
1611 2017-01-10 Martin Sebor <msebor@redhat.com>
1614 * gimple-ssa-sprintf.c (get_destination_size): Call
1615 {init,fini}object_sizes.
1616 * tree-object-size.c (addr_object_size): Adjust.
1617 (pass_through_call): Adjust.
1618 (pass_object_sizes::execute): Adjust.
1619 * tree-object-size.h (fini_object_sizes): Declare.
1621 2017-01-10 Martin Sebor <msebor@redhat.com>
1623 PR tree-optimization/78775
1624 * builtins.c (get_size_range): Move...
1625 * calls.c: ...to here.
1626 (alloc_max_size): Accept zero argument.
1627 (operand_signed_p): Remove.
1628 (maybe_warn_alloc_args_overflow): Call get_size_range.
1629 * calls.h (get_size_range): Declare.
1631 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
1633 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
1634 from TI's devices.csv file as of September 2016.
1635 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
1637 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
1639 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
1640 * doc/invoke.texi: Likewise.
1641 * doc/md.texi: Likewise.
1642 * doc/objc.texi: Likewise.
1644 2017-01-10 Joshua Conner <joshconner@google.com>
1646 * config/arm/fuchsia-elf.h: New file.
1647 * config/fuchsia.h: New file.
1648 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
1649 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
1651 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
1653 2016-01-10 Richard Biener <rguenther@suse.de>
1655 PR tree-optimization/79034
1656 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1657 Propagate out degenerate PHIs in the joiner.
1659 2017-01-10 Martin Liska <mliska@suse.cz>
1661 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
1662 (sort_congruence_classes_by_decl_uid): Likewise.
1663 (sort_congruence_class_groups_by_decl_uid): Likewise.
1664 (sem_item_optimizer::merge_classes): Sort class, groups in these
1665 classes and members in the groups by DECL_UID of declarations.
1666 This would make merge operations stable.
1668 2017-01-10 Martin Liska <mliska@suse.cz>
1670 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
1671 usage of m_classes_vec.
1672 (sem_item_optimizer::~sem_item_optimizer): Likewise.
1673 (sem_item_optimizer::get_group_by_hash): Likewise.
1674 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1675 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
1676 (sem_item_optimizer::verify_classes): Likewise.
1677 (sem_item_optimizer::process_cong_reduction): Likewise.
1678 (sem_item_optimizer::dump_cong_classes): Likewise.
1679 (sem_item_optimizer::merge_classes): Likewise.
1680 * ipa-icf.h (congruence_class_hash): Rename from
1681 congruence_class_group_hash. Remove declaration of m_classes_vec.
1683 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
1685 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
1686 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
1687 * config.gcc: Add avx512vpopcntdqintrin.h.
1688 * config/i386/avx512vpopcntdqintrin.h: New.
1689 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
1690 * config/i386/i386-builtin-types.def: Add new types.
1691 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
1692 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
1693 __builtin_ia32_vpopcountq_v8di_mask): New.
1694 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1695 __AVX512VPOPCNTDQ__.
1696 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
1697 (PTA_AVX512VPOPCNTDQ): Define.
1698 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
1699 TARGET_AVX512VPOPCNTDQ_P): Define.
1700 * config/i386/i386.opt: Add mavx512vpopcntdq.
1701 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
1702 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
1704 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1707 * predict.def (PRED_CALL): Set to 67.
1709 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
1711 * expr.c (store_field): In the bitfield case, if the value comes from
1712 a function call and is of an aggregate type returned in registers, do
1713 not modify the field mode; extract the value in all cases if the mode
1714 is BLKmode and the size is not larger than a word.
1716 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
1719 * config/i386/cpuid.h: Fix undefined behavior.
1721 2017-01-04 Jeff Law <law@redhat.com>
1723 PR tree-optimization/79007
1724 PR tree-optimization/67955
1725 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
1726 conservative for pt.null when flag_non_call_exceptions is on.
1728 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1730 PR translation/79019
1731 PR translation/79020
1732 * params.def (PARAM_INLINE_MIN_SPEEDUP,
1733 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
1734 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
1736 * config/avr/avr.opt (maccumulate-args): Likewise.
1737 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
1738 * common.opt (freport-bug): Likewise.
1739 * cif-code.def (CIF_FINAL_ERROR): Likewise.
1740 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
1741 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
1742 translatable string.
1743 * config/i386/i386.c (function_value_32): Likewise.
1744 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
1745 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
1747 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
1748 * common/config/msp430/msp430-common.c (msp430_handle_option):
1750 * symtab.c (symtab_node::verify_base): Likewise.
1751 * opts.c (set_debug_level): Likewise.
1752 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
1753 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1754 missing whitespace to translatable strings.
1755 * config/avr/avr.md (bswapsi2): Fix typo in comment.
1756 * config/sh/superh.h: Likewise.
1757 * config/i386/xopintrin.h: Likewise.
1758 * config/i386/znver1.md: Likewise.
1759 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
1760 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
1761 * double-int.h (struct double_int): Likewise.
1762 * double-int.c (div_and_round_double): Likewise.
1763 * wide-int.cc: Likewise.
1764 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
1765 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1766 * cfgcleanup.c (crossjumps_occured): Renamed to ...
1767 (crossjumps_occurred): ... this.
1768 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
1771 PR tree-optimization/78899
1772 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
1773 returning bool return struct loop *, NULL for failure and the new
1775 (versionable_outer_loop_p): Don't version outer loop if it has
1776 dont_vectorized bit set.
1777 (tree_if_conversion): When versioning outer loop, ensure
1778 tree_if_conversion is performed also on the inner loop of the
1779 non-vectorizable outer loop copy.
1780 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
1781 LOOP_VECTORIZED in inner loop of the scalar outer loop and
1782 prevent vectorization of it.
1783 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
1784 the outer loop vectorization of the non-scalar version is attempted
1785 before vectorization of the inner loop in scalar version. If
1786 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
1787 vectorization of its inner loop.
1788 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
1789 has 2 inner loops, rename also on edges from bb whose single pred
1790 is outer_loop->header. Fix typo in function comment.
1792 2017-01-09 Martin Sebor <msebor@redhat.com>
1795 * asan.c (asan_emit_stack_protection): Increase local buffer size
1796 to avoid snprintf truncation warning.
1798 2017-01-09 Andrew Pinski <apinski@cavium.com>
1800 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
1801 to reference thunderx2t99 for the tuning structure
1802 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
1804 (thunderx2t99_extra_costs): This.
1805 * config/aarch64/aarch64-tune.md: Regenerate.
1806 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
1807 (vulcan_addrcost_table): This.
1808 (vulcan_regmove_cost): Rename to ...
1809 (thunderx2t99_regmove_cost): This.
1810 (vulcan_vector_cost): Rename to ...
1811 (thunderx2t99_vector_cost): this.
1812 (vulcan_branch_cost): Rename to ...
1813 (thunderx2t99_branch_cost): This.
1814 (vulcan_tunings): Rename to ...
1815 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
1816 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
1818 2017-01-09 Martin Jambor <mjambor@suse.cz>
1822 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
1823 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
1824 (propagate_vr_accross_jump_function): Use the above function for all
1825 value range computations for pass-through jump functions and type
1826 converasion from explicit value range values.
1827 (ipcp_propagate_stage): Do not attempt to deduce types of formal
1828 parameters from TYPE_ARG_TYPES.
1829 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
1830 (ipa_write_node_info): Stream type of the actual argument.
1831 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
1833 2017-01-09 Martin Liska <mliska@suse.cz>
1836 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
1837 (lookup_compiler): Do not show error message with have_E.
1839 2017-01-09 Jakub Jelinek <jakub@redhat.com>
1841 PR tree-optimization/78938
1842 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
1843 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
1844 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
1845 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
1848 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1850 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
1853 2017-01-09 Richard Biener <rguenther@suse.de>
1855 PR tree-optimization/78997
1856 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
1857 name condition properly.
1859 2017-01-09 Richard Biener <rguenther@suse.de>
1862 * dwarf2out.c (is_cxx): New overload with context.
1863 (is_naming_typedef_decl): Use it.
1865 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1867 * invoke.texi (Option Summary): Correct spacing in option lists
1868 and add line breaks to fix over-long lines.
1870 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1874 * extend.texi (Common Variable Attributes): Add xref to GCC
1875 Internals manual to explain mode attribute keywords.
1877 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
1880 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
1881 and Preprocessor Options.
1882 (Options for Linking): Document -pthread here....
1883 (RS/6000 and PowerPC Options): ...not here.
1884 (Solaris 2 Options): ...or here.
1885 * doc/cppopts.texi: Document -pthread.
1887 2017-01-08 Martin Sebor <msebor@redhat.com>
1890 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
1891 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
1892 New member functions.
1893 (format_directive): Used them.
1895 (pass_sprintf_length::handle_gimple_call): Same.
1896 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
1897 to avoid truncation for any argument.
1898 (extract_affine_mul): Same.
1899 * tree.c (get_file_function_name): Same.
1901 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1904 * predict.def (PRED_INDIR_CALL): Set to 86.
1906 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1908 PR preprocessor/54124
1909 * doc/cppopts.texi: Reformat -d subtable to list the full name
1910 of the options. Add cross-reference to the docs for the general
1911 compiler -d options.
1912 * doc/invoke.texi (Developer Options): Add cross-reference to the
1913 preprocessor-specific -d option documentation.
1915 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1917 PR preprocessor/13498
1918 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
1919 redudant material, and reflect new command-line options.
1920 (System Headers): Likewise.
1922 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
1924 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
1925 -isystem, and -idirafter. Copy-edit.
1926 * doc/cppopts.texi: Copy-edit. Remove contradiction about
1927 default for -ftrack-macro-expansion. Delete obsolete and
1928 badly-formatted implementation details about -fdebug-cpp output.
1929 * doc/cppwarnopts.texi: Copy-edit.
1931 2017-01-07 David Malcolm <dmalcolm@redhat.com>
1934 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
1935 that the transition from a max line width >= 1<<10 to narrower
1936 lines works correctly.
1938 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
1940 * doc/options.texi (PerFunction): New.
1941 * opt-functions.awk (switch_flags): Map both Optimization and
1942 PerFunction to CL_OPTIMIZATION.
1943 * opth-gen.awk: Test for PerFunction flag along with
1945 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
1946 it only when the latter is present. Skip those that don't in
1947 the hash function generator.
1948 * common.opt (fvar-tracking): Mark as PerFunction instead of
1950 (fvar-tracking-assignments): Likewise.
1951 (fvar-tracking-assignments-toggle): Likewise.
1952 (fvar-tracking-uninit): Likewise.
1954 2017-01-07 Jakub Jelinek <jakub@redhat.com>
1956 PR translation/79018
1957 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
1960 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
1963 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
1964 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
1965 TARGET_LONG_JUMP_TABLE_OFFSETS.
1966 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
1967 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
1968 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
1969 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
1970 * config/m68k/m68k.md (tablejump expander): Likewise.
1971 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
1972 TARGET_LONG_JUMP_TABLE_OFFSETS.
1973 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
1974 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
1976 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1977 David Holsgrove <david.holsgrove@xilinx.com>
1979 * common/config/microblaze/microblaze-common.c
1980 (TARGET_EXCEPT_UNWIND_INFO): Remove.
1981 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
1983 * config/microblaze/microblaze.c (microblaze_must_save_register)
1984 (microblaze_expand_epilogue, microblaze_return_addr): Handle
1986 (microblaze_eh_return): New function.
1987 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
1988 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
1989 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
1990 * config/microblaze/microblaze.md (eh_return): New pattern.
1992 2017-01-06 Jakub Jelinek <jakub@redhat.com>
1994 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
1995 GCC_DIAGNOSTIC_STRINGIFY): Define.
1997 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
1999 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2001 * config/arm/arm.md (<mcrr>): New.
2003 * config/arm/arm.c (arm_arch5te): New.
2004 (arm_option_override): Set arm_arch5te.
2005 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
2007 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
2008 (arm_mcrr_qualifiers): ... this. New.
2009 (MRRC_QUALIFIERS): Define to...
2010 (arm_mrrc_qualifiers): ... this. New.
2011 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
2013 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
2014 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
2015 (MRRCI, mrrc, MRRC): New.
2016 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
2017 VUNSPEC_MRRC2): New.
2019 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2021 * config/arm/arm.md (<mcr>): New.
2023 * config/arm/arm.c (arm_coproc_builtin_available): Add
2024 support for mcr, mrc, mcr2 and mrc2.
2025 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
2026 (arm_mcr_qualifiers): ... this. New.
2027 (MRC_QUALIFIERS): Define to ...
2028 (arm_mrc_qualifiers): ... this. New.
2029 (MCR_QUALIFIERS): Define to ...
2030 (arm_mcr_qualifiers): ... this. New.
2031 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
2033 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
2034 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
2035 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
2038 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2040 * config/arm/arm.md (*ldc): New.
2044 * config/arm/arm.c (arm_coproc_builtin_available): Add
2045 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
2046 (arm_coproc_ldc_stc_legitimate_address): New.
2047 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
2048 'qualifier_const_pointer'.
2049 (LDC_QUALIFIERS): Define to...
2050 (arm_ldc_qualifiers): ... this. New.
2051 (STC_QUALIFIERS): Define to...
2052 (arm_stc_qualifiers): ... this. New.
2053 * config/arm/arm-protos.h
2054 (arm_coproc_ldc_stc_legitimate_address): New.
2055 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
2056 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
2057 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
2058 stc2, stcl, stc2l): New.
2059 * config/arm/constraints.md (Uz): New.
2060 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
2061 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
2062 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
2063 VUNSPEC_STC2L): New.
2065 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2067 * config/arm/arm.md (<cdp>): New.
2068 * config/arm/arm.c (neon_const_bounds): Rename this ...
2069 (arm_const_bounds): ... this.
2070 (arm_coproc_builtin_available): New.
2071 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
2072 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
2073 (CDP_QUALIFIERS): Define to...
2074 (arm_cdp_qualifiers): ... this. New.
2076 (arm_expand_builtin_args): Add case for 6 arguments.
2077 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
2078 (arm_const_bounds): ... this.
2079 (arm_coproc_builtin_available): New.
2080 * config/arm/arm_acle.h (__arm_cdp): New.
2082 * config/arm/arm_acle_builtins.def (cdp): New.
2084 * config/arm/iterators.md (CDPI,CDP,cdp): New.
2085 * config/arm/neon.md: Rename all 'neon_const_bounds' to
2087 * config/arm/types.md (coproc): New.
2088 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
2089 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
2090 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
2091 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
2093 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2095 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
2096 (UBINOP_QUALIFIERS): New.
2098 (acle_builtin_data): New. Change comment.
2099 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
2100 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
2101 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
2102 arm_acle_builtins.def.
2103 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
2104 (arm_init_acle_builtins): New.
2105 (CRC32_BUILTIN): Remove.
2106 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
2107 crc32cb, crc32ch and crc32cw.
2108 (arm_init_crc32_builtins): Remove.
2109 (arm_init_builtins): Use arm_init_acle_builtins rather
2110 than arm_init_crc32_builtins.
2111 (arm_expand_acle_builtin): New.
2112 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
2113 * config/arm/arm_acle_builtins.def: New.
2115 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2117 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
2118 (arm_builtin_datum): ... this.
2119 (arm_init_neon_builtin): Rename to ...
2120 (arm_init_builtin): ... this. Add a new parameters PREFIX
2121 and USE_SIG_IN_NAME.
2122 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
2123 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
2124 'arm_builtin_datum'.
2125 (arm_init_vfp_builtins): Likewise.
2126 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
2127 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
2128 (arm_expand_neon_args): Rename to ...
2129 (arm_expand_builtin_args): ... this. Rename builtin_arg
2130 enum values and differentiate between ARG_BUILTIN_MEMORY
2131 and ARG_BUILTIN_NEON_MEMORY.
2132 (arm_expand_neon_builtin_1): Rename to ...
2133 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
2134 values, arm_expand_builtin_args and add bool parameter NEON.
2135 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
2136 (arm_expand_vfp_builtin): Likewise.
2137 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
2139 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
2142 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
2143 * predict.c (tree_estimate_probability_bb): Reverse direction of
2144 polymorphic call predictor.
2146 2017-01-06 David Malcolm <dmalcolm@redhat.com>
2148 * passes.c (execute_one_pass): Split out pass-skipping logic into...
2149 (determine_pass_name_match): ...this new function and...
2150 (should_skip_pass_p): ...this new function.
2152 2017-01-06 Nathan Sidwell <nathan@acm.org>
2154 * ipa-visibility.c (function_and_variable_visibility): Reformat
2155 comments and long lines. Remove extrneous if.
2156 * symtab.c (symtab_node::make_decl_local): Fix code format.
2157 (symtab_node::set_section_for_node): Fix comment typo.
2159 2017-01-06 Martin Liska <mliska@suse.cz>
2162 * lra-constraints.c: Rename invariant to lra_invariant.
2163 * predict.c (set_even_probabilities): Initialize e to NULL.
2165 2017-01-05 Martin Sebor <msebor@redhat.com>
2167 PR tree-optimization/78910
2168 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
2169 (format_integer): Correct off-by-one error in the handling
2170 of precision with negative numbers in signed conversions..
2172 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
2174 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
2176 2017-01-05 Jakub Jelinek <jakub@redhat.com>
2178 PR tree-optimization/71016
2179 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
2180 factor_out_conditional_conversion. Formatting fix.
2181 (factor_out_conditional_conversion): Add cond_stmt argument.
2182 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
2183 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
2186 2017-01-05 David Malcolm <dmalcolm@redhat.com>
2188 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
2189 read-rtl-function.o, and selftest-rtl.o.
2190 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
2191 (selftest::aarch64_test_loading_full_dump): New function.
2192 (selftest::aarch64_run_selftests): New function.
2193 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
2194 selftest::aarch64_run_selftests.
2195 * config/i386/i386.c
2196 (selftest::ix86_test_loading_dump_fragment_1): New function.
2197 (selftest::ix86_test_loading_call_insn): New function.
2198 (selftest::ix86_test_loading_full_dump): New function.
2199 (selftest::ix86_test_loading_unspec): New function.
2200 (selftest::ix86_run_selftests): Call the new functions.
2201 * emit-rtl.c (maybe_set_max_label_num): New function.
2202 * emit-rtl.h (maybe_set_max_label_num): New decl.
2203 * function.c (instantiate_decls): Guard call to
2204 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
2205 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
2207 * gensupport.c (gen_reader::gen_reader): Pass "false"
2208 for new "compact" param of rtx_reader.
2209 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
2210 rather than an empty string for NULL strings.
2211 * read-md.c: Potentially include config.h rather than bconfig.h.
2212 Wrap include of errors.h with #ifdef GENERATOR_FILE.
2213 (have_error): New global, copied from errors.c.
2214 (md_reader::read_name): Rename to...
2215 (md_reader::read_name_1): ...this, adding "out_loc" param,
2216 and converting "missing name or number" to returning false, rather
2218 (md_reader::read_name): Reimplement in terms of read_name_1.
2219 (md_reader::read_name_or_nil): New function.
2220 (md_reader::read_string): Handle "(nil)" by returning NULL.
2221 (md_reader::md_reader): Add new param "compact".
2222 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
2223 (md_reader::read_file): New method.
2224 * read-md.h (md_reader::md_reader): Add new param "compact".
2225 (md_reader::read_file): New method.
2226 (md_reader::is_compact): New accessor.
2227 (md_reader::read_name): Convert return type from void to file_location.
2228 (md_reader::read_name_or_nil): New decl.
2229 (md_reader::read_name_1): New decl.
2230 (md_reader::m_compact): New field.
2231 (noop_reader::noop_reader): Pass "false" for new "compact" param
2233 (rtx_reader::rtx_reader): Add new "compact" param.
2234 (rtx_reader::read_rtx_operand): Make virtual and convert return
2235 type from void to rtx.
2236 (rtx_reader::read_until): New decl.
2237 (rtx_reader::handle_any_trailing_information): New virtual function.
2238 (rtx_reader::postprocess): New virtual function.
2239 (rtx_reader::finalize_string): New virtual function.
2240 (rtx_reader::m_in_call_function_usage): New field.
2241 (rtx_reader::m_reuse_rtx_by_id): New field.
2242 * read-rtl-function.c: New file.
2243 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
2244 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
2245 (selftest::verify_three_block_rtl_cfg): New decl.
2246 * read-rtl-function.h: New file.
2247 * read-rtl.c: Potentially include config.h rather than bconfig.h.
2248 For host, include function.h, memmodel.h, and emit-rtl.h.
2249 (one_time_initialization): New function.
2250 (struct compact_insn_name): New struct.
2251 (compact_insn_names): New array.
2252 (find_code): Handle insn codes in compact dumps.
2253 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
2254 (bind_subst_iter_and_attr): Likewise.
2255 (add_condition_to_string): Likewise.
2256 (add_condition_to_rtx): Likewise.
2257 (apply_attribute_uses): Likewise.
2258 (add_current_iterators): Likewise.
2259 (apply_iterators): Likewise.
2260 (initialize_iterators): Guard usage of apply_subst_iterator with
2261 #ifdef GENERATOR_FILE.
2262 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
2263 (md_reader::read_mapping): Likewise.
2264 (add_define_attr_for_define_subst): Likewise.
2265 (add_define_subst_attr): Likewise.
2266 (read_subst_mapping): Likewise.
2267 (check_code_iterator): Likewise.
2268 (rtx_reader::read_rtx): Likewise. Move one-time initialization
2270 (one_time_initialization): New function.
2271 (rtx_reader::read_until): New method.
2272 (read_flags): New function.
2273 (parse_reg_note_name): New function.
2274 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
2275 Handle reuse_rtx ids.
2276 Wrap iterator lookup within #ifdef GENERATOR_FILE.
2277 Add parsing support for RTL dumps, mirroring the special-cases in
2278 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
2279 values, and calling handle_any_trailing_information.
2280 (rtx_reader::read_rtx_operand): Convert return type from void
2281 to rtx, returning return_rtx. Handle case 'e'. Call
2282 finalize_string on XSTR and XTMPL fields.
2283 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
2284 "(nil)" values were omitted. Call the postprocess vfunc on the
2286 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
2287 class ctor. Initialize m_in_call_function_usage. Call
2288 one_time_initialization.
2289 * rtl-tests.c (selftest::test_uncond_jump): Call
2290 set_new_first_and_last_insn.
2291 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
2292 * selftest-rtl.c: New file.
2293 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
2294 (selftest::get_insn_by_uid): New decl.
2295 * selftest-run-tests.c (selftest::run_tests): Call
2296 read_rtl_function_c_tests.
2297 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
2298 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
2301 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
2303 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
2304 operands in a special way. Assert that pos+len <= mode precision.
2306 2017-01-05 Jakub Jelinek <jakub@redhat.com>
2308 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
2309 3 argument Alias with unlimited for the negative form.
2310 (fno-vect-cost-model): Removed.
2312 2017-01-05 Martin Liska <mliska@suse.cz>
2314 * hsa-gen.c (gen_hsa_divmod): New function.
2315 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
2317 2017-01-05 Martin Liska <mliska@suse.cz>
2320 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
2323 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2325 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
2326 small constant length operands.
2328 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2330 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
2331 between loop iterations.
2333 2017-01-05 Martin Liska <mliska@suse.cz>
2336 * gimplify.c (gimplify_decl_expr): Compare to
2337 asan_poisoned_variables instread of checking flags.
2338 (gimplify_target_expr): Likewise.
2339 (gimplify_expr): Likewise.
2340 (gimplify_function_tree): Conditionally initialize
2341 asan_poisoned_variables.
2343 2017-01-04 Jeff Law <law@redhat.com>
2345 PR tree-optimizatin/78812
2346 * rtl.h (contains_mem_rtx_p): Prototype.
2347 * ifcvt.c (containts_mem_rtx_p): Move from here to...
2348 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
2349 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
2350 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
2351 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
2353 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
2355 * input.c (assert_char_at_range): Default-initialize actual_range.
2357 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
2359 * df-scan.c (df_ref_create_structure): Make regno unsigned,
2360 to match the caller.
2362 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
2364 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
2365 insns after final jump in test to emit dummy move.
2367 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
2369 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
2370 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
2372 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
2374 * multiple_target.c (create_dispatcher_calls): Init e_next.
2375 * tree-ssa-loop-split.c (split_loop): Init border.
2376 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
2379 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
2384 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
2385 (altivec_register_operand): Do not return true if the operand
2386 contains a SUBREG mixing SImode and SFmode.
2387 (vsx_register_operand): Likewise.
2388 (vsx_reg_sfsubreg_ok): New predicate.
2389 (vfloat_operand): Do not return true if the operand contains a
2390 SUBREG mixing SImode and SFmode.
2391 (vint_operand): Likewise.
2392 (vlogical_operand): Likewise.
2393 (gpc_reg_operand): Likewise.
2394 (int_reg_operand): Likewise.
2395 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
2396 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
2397 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
2399 (rs6000_emit_move_si_sf_subreg): New helper function.
2400 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
2401 fixup SUBREGs involving SImode and SFmode.
2402 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
2403 numbers for the new peephole2 optimization.
2404 (peephole2 for SFmode unions): New peephole2 to optimize cases in
2405 the GLIBC math library that do AND/IOR/XOR operations on single
2406 precision floating point.
2407 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
2408 target macros to say whether we need to avoid SUBREGs mixing
2410 (TARGET_ALLOW_SF_SUBREG): Likewise.
2411 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
2412 (UNSPEC_SI_FROM_SF): Likewise.
2413 (iorxor): Change spacing.
2414 (and_ior_xor): New iterator for AND, IOR, and XOR.
2415 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
2416 (movdi_from_sf_zero_ext): Likewise.
2417 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
2418 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
2419 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
2420 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
2421 (fms<mode>4): Likewise.
2422 (fnma<mode>4): Likewise.
2423 (fnms<mode>4): Likewise.
2424 (nfma<mode>4): Likewise.
2425 (nfms<mode>4): Likewise.
2427 2017-01-04 Marek Polacek <polacek@redhat.com>
2430 * doc/invoke.texi: Document -Wpointer-compare.
2432 2017-01-04 Jakub Jelinek <jakub@redhat.com>
2434 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
2437 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
2438 descriptions for -gdwarf-5 and emit them as uleb128 instead of
2441 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
2444 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
2445 documentation of the powerpc_popcntb_ok attribute.
2446 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2447 code to issue warning messages if a requested CPU configuration is
2448 not supported by the binary (assembler and loader) toolchain.
2449 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
2450 made to define a built-in function that has been disabled.
2451 (paired_init_builtins): Add assertion to prevent ICE if attempt is
2452 made to define a built-in function that has been disabled.
2453 (altivec_init_builtins): Add comment explaining why definition
2454 of the DST built-in functions is not preceded by an assertion
2455 check. Add assertions to prevent ICE if attempts are made to
2456 define an altivec predicate or an abs* built-in function that has
2458 (htm_init_builtins): Add comment explaining why definition of the
2459 htm built-in functions is not preceded by an assertion check.
2461 2017-01-04 Jeff Law <law@redhat.com>
2463 PR tree-optimizatin/67955
2464 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
2465 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
2466 the points-to solution does not include pt_null. Use DECL_PT_UID
2469 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
2471 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
2472 Use gen_int_mode instead of gen_lopwart for const_int operands.
2474 2017-01-04 Jakub Jelinek <jakub@redhat.com>
2476 PR tree-optimization/71563
2477 * match.pd: Simplify X << Y into X if Y is known to be 0 or
2478 out of range value - has low bits known to be zero.
2480 2017-01-04 Alan Modra <amodra@gmail.com>
2482 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
2483 * configure: Regenerate.
2484 * config.in: Regenerate.
2486 2017-01-04 Jakub Jelinek <jakub@redhat.com>
2489 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
2490 a substring of the message, but strcmp with the whole message. Ifdef
2491 ENABLE_NLS, translate the message first using dgettext.
2493 2017-01-03 Jeff Law <law@redhat.com>
2495 PR tree-optimizatin/78856
2496 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
2497 (mark_threaded_blocks): Remove code to truncate thread paths that
2498 cross multiple loop headers. Instead invalidate the cached loop
2499 iteration information and handle case of a thread path walking
2500 into an irreducible region.
2502 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2505 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
2506 assertions. Add support for doing the signbit if the IEEE 128-bit
2507 floating point value is in a GPR.
2508 * config/rs6000/rs6000.md (Fsignbit): Delete.
2509 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
2510 Update the length attribute if the value is in a GPR.
2511 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
2512 the sign or zero extension instruction, since the value is always 0/1.
2513 (signbit<mode>2_dm2): Delete using <Fsignbit>.
2516 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
2517 extracting SImode to a GPR register so that we can generate a
2518 store, limit the vector to be in a traditional Altivec register
2519 for the vextuwrx instruction.
2521 2017-01-03 Ian Lance Taylor <iant@google.com>
2523 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
2525 2017-01-03 Martin Sebor <msebor@redhat.com>
2527 PR tree-optimization/78696
2528 * gimple-ssa-sprintf.c (format_floating): Correct handling of
2529 precision. Use MPFR for %f for greater fidelity. Correct handling
2531 (pass_sprintf_length::compute_format_length): Set width and precision
2532 specified by asrerisk to void_node for vararg functions.
2533 (try_substitute_return_value): Adjust dump output.
2535 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
2537 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
2539 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
2541 * doc/invoke.texi (SPARC options): Document -mlra as the default.
2542 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
2543 -mlra/-mno-lra was passed to the compiler.
2545 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
2547 PR rtl-optimization/65618
2548 * emit-rtl.c (try_split): Move initialization of "before" and
2549 "after" to just before the call to emit_insn_after_setloc.
2551 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
2553 * doc/md.texi (Standard Names): Remove reference to Java frontend.
2555 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
2557 * dwarf2out.c (gen_enumeration_type_die): When
2558 -gno-strict-dwarf, add a DW_AT_encoding attribute.
2560 2017-01-03 Jakub Jelinek <jakub@redhat.com>
2562 PR tree-optimization/78965
2563 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2564 Change first argument from const call_info & to call_info &. For %n
2565 set info.nowrite to false.
2568 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
2569 possibly throwing calls.
2571 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
2572 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
2573 and fns handling, rather than in a separate case SSA_NAME.
2575 2017-01-02 Jeff Law <law@redhat.com>
2577 * config/darwin-driver.c (darwin_driver_init): Const-correctness
2578 fixes for first_period and second_period variables.
2580 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
2583 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
2584 (*insvqi_1): New insn pattern.
2585 (*insvqi_1_mem_rex64): Ditto.
2587 (*insvqi_3): Rename from *insvqi.
2589 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
2591 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
2593 * doc/cfg.texi (Edges): Remove reference to Java.
2594 (Maintaining the CFG): Ditto.
2596 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
2599 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
2600 transparent aliases.
2602 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
2605 * predict.def (PRED_CALL): Update hitrate.
2606 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
2607 * predict.c (tree_estimate_probability_bb): Split CALL predictor
2608 into direct/indirect/polymorphic variants.
2610 2017-01-01 Jakub Jelinek <jakub@redhat.com>
2612 Update copyright years.
2614 * gcc.c (process_command): Update copyright notice dates.
2615 * gcov-dump.c (print_version): Ditto.
2616 * gcov.c (print_version): Ditto.
2617 * gcov-tool.c (print_version): Ditto.
2618 * gengtype.c (create_file): Ditto.
2619 * doc/cpp.texi: Bump @copying's copyright year.
2620 * doc/cppinternals.texi: Ditto.
2621 * doc/gcc.texi: Ditto.
2622 * doc/gccint.texi: Ditto.
2623 * doc/gcov.texi: Ditto.
2624 * doc/install.texi: Ditto.
2625 * doc/invoke.texi: Ditto.
2627 Copyright (C) 2017 Free Software Foundation, Inc.
2629 Copying and distribution of this file, with or without modification,
2630 are permitted in any medium without royalty provided the copyright
2631 notice and this notice are preserved.