1 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
5 char or short to __float128/_Float128 directly.
7 2017-01-12 Martin Sebor <msebor@redhat.com>
10 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
11 (min_bytes_remaining): Same.
12 (get_string_length): Same.
13 (format_string): Same.
14 (format_directive): Same.
16 (pass_sprintf_length::handle_gimple_call): Same.
18 2017-01-12 Jakub Jelinek <jakub@redhat.com>
20 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
21 info.nowrite calls with no lhs that can't throw. Return bool
22 whether gsi_remove has been called or not.
23 (pass_sprintf_length::handle_gimple_call): Return bool whether
24 try_substitute_return_value called gsi_remove. Formatting fix.
25 (pass_sprintf_length::execute): Don't use gsi_remove if
26 handle_gimple_call returned true.
29 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
30 be removed due to side-effects, don't remove following barrier nor
31 turn the successor edge into fallthru edge.
33 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
37 element-reversing loads and stores as not swappable.
39 2017-01-12 Nathan Sidwell <nathan@acm.org>
40 Nicolai Stange <nicstange@gmail.com>
42 * combine.c (try_combine): Don't ignore result of overlap checking
43 loop. Combine overlap & asm check into single loop.
45 2017-01-12 Richard Biener <rguenther@suse.de>
47 * tree-pretty-print.c (dump_generic_node): Provide -gimple
48 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
50 2017-01-12 Richard Biener <rguenther@suse.de>
52 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
53 and TS_TARGET_OPTION directly derive from TS_BASE.
54 * tree-core.h (tree_optimization_option): Derive from tree_base.
55 (tree_target_option): Likewise.
57 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
59 * config/i386/i386.c (memory_address_length): Increase len
60 only when rip_relative_addr_p returns false.
62 2017-01-11 Julia Koval <julia.koval@intel.com>
64 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
65 (OPTION_MASK_ISA_SGX_SET): New.
66 (ix86_handle_option): Handle OPT_msgx.
67 * config.gcc: Added sgxintrin.h.
68 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
69 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
70 * config/i386/i386.c (ix86_target_string): Add -msgx.
72 (ix86_option_override_internal): Handle new options.
73 (ix86_valid_target_attribute_inner_p): Add sgx.
74 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
75 * config/i386/i386.opt: Add msgx.
76 * config/i386/sgxintrin.h: New file.
77 * config/i386/x86intrin.h: Add sgxintrin.h.
79 2017-01-11 Jakub Jelinek <jakub@redhat.com>
82 * fold-const.c (maybe_nonzero_address): Return 1 for function
84 (tree_single_nonzero_warnv_p): Don't handle function local objects
88 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
91 2017-01-11 David Malcolm <dmalcolm@redhat.com>
94 * opts.c: Include "spellcheck.h"
95 (struct string_fragment): New struct.
96 (struct edit_distance_traits<const string_fragment &>): New
98 (get_closest_sanitizer_option): New function.
99 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
101 2017-01-11 Jakub Jelinek <jakub@redhat.com>
103 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
105 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
106 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
107 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
108 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
109 for initial die_offset if dwarf_split_debug_info.
110 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
111 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
113 (output_skeleton_debug_sections): Formatting fix. Use
114 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
115 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
117 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
119 * config/arm/cortex-a53.md: Add bypasses for
121 (cortex_a53_r2f): Only use for transfers.
122 (cortex_a53_f2r): Likewise.
123 (cortex_a53_r2f_cvt): Add reservation for conversions.
124 (cortex_a53_f2r_cvt): Likewise.
126 2017-01-11 Tamar Christina <tamar.christina@arm.com>
128 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
129 to all inlined functions, change static to extern.
131 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
134 * config/arm/arm.c (legitimize_pic_address): Handle reference to
136 (arm_assemble_integer): Likewise.
138 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
140 * config.gcc: Use new awk script to check CPU, FPU and architecture
141 parameters for --with-... options.
142 * config/arm/parsecpu.awk: New file
143 * config/arm/arm-cpus.in: New file.
144 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
146 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
148 * config/arm/t-arm: Update dependency rules.
149 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
150 of processing .def files.
151 * config/arm/genopt.sh: Deleted.
152 * config/arm/gentune.sh: Deleted.
153 * config/arm/arm-cores.def: Deleted.
154 * config/arm/arm-arches.def: Deleted.
155 * config/arm/arm-fpus.def: Deleted.
156 * config/arm/arm-tune.md: Regenerated.
157 * config/arm/arm-tables.opt: Regenerated.
158 * config/arm/arm-cpu.h: New generated file.
159 * config/arm/arm-cpu-data.h: New generated file.
160 * config/arm/arm-cpu-cdata.h: New generated file.
162 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
165 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
167 (input_varpool_node): Unpack dynamically_initialized bit.
169 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
171 PR rtl-optimization/79032
172 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
173 the alignment of the adjusted memory reference against that of MODE,
174 instead of the alignment of the original memory reference.
176 2017-01-11 Martin Jambor <mjambor@suse.cz>
178 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
180 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
183 2017-01-11 Richard Biener <rguenther@suse.de>
185 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
186 set range/nonnull info for PHI results. Do not set it on
187 stmts marked for removal.
189 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
191 * expr.c (store_field): In the bitfield case, fetch the return value
192 from the registers before applying a single big-endian adjustment.
193 Always do a final load for a BLKmode value not larger than a word.
195 2017-01-10 David Malcolm <dmalcolm@redhat.com>
198 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
199 that we correctly handle column numbers greater than
200 LINE_MAP_MAX_COLUMN_NUMBER.
202 2017-01-10 Martin Sebor <msebor@redhat.com>
205 * gimple-ssa-sprintf.c (get_destination_size): Call
206 {init,fini}object_sizes.
207 * tree-object-size.c (addr_object_size): Adjust.
208 (pass_through_call): Adjust.
209 (pass_object_sizes::execute): Adjust.
210 * tree-object-size.h (fini_object_sizes): Declare.
212 2017-01-10 Martin Sebor <msebor@redhat.com>
214 PR tree-optimization/78775
215 * builtins.c (get_size_range): Move...
216 * calls.c: ...to here.
217 (alloc_max_size): Accept zero argument.
218 (operand_signed_p): Remove.
219 (maybe_warn_alloc_args_overflow): Call get_size_range.
220 * calls.h (get_size_range): Declare.
222 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
224 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
225 from TI's devices.csv file as of September 2016.
226 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
228 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
230 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
231 * doc/invoke.texi: Likewise.
232 * doc/md.texi: Likewise.
233 * doc/objc.texi: Likewise.
235 2017-01-10 Joshua Conner <joshconner@google.com>
237 * config/arm/fuchsia-elf.h: New file.
238 * config/fuchsia.h: New file.
239 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
240 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
242 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
244 2016-01-10 Richard Biener <rguenther@suse.de>
246 PR tree-optimization/79034
247 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
248 Propagate out degenerate PHIs in the joiner.
250 2017-01-10 Martin Liska <mliska@suse.cz>
252 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
253 (sort_congruence_classes_by_decl_uid): Likewise.
254 (sort_congruence_class_groups_by_decl_uid): Likewise.
255 (sem_item_optimizer::merge_classes): Sort class, groups in these
256 classes and members in the groups by DECL_UID of declarations.
257 This would make merge operations stable.
259 2017-01-10 Martin Liska <mliska@suse.cz>
261 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
262 usage of m_classes_vec.
263 (sem_item_optimizer::~sem_item_optimizer): Likewise.
264 (sem_item_optimizer::get_group_by_hash): Likewise.
265 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
266 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
267 (sem_item_optimizer::verify_classes): Likewise.
268 (sem_item_optimizer::process_cong_reduction): Likewise.
269 (sem_item_optimizer::dump_cong_classes): Likewise.
270 (sem_item_optimizer::merge_classes): Likewise.
271 * ipa-icf.h (congruence_class_hash): Rename from
272 congruence_class_group_hash. Remove declaration of m_classes_vec.
274 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
276 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
277 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
278 * config.gcc: Add avx512vpopcntdqintrin.h.
279 * config/i386/avx512vpopcntdqintrin.h: New.
280 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
281 * config/i386/i386-builtin-types.def: Add new types.
282 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
283 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
284 __builtin_ia32_vpopcountq_v8di_mask): New.
285 * config/i386/i386-c.c (ix86_target_macros_internal): Define
287 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
288 (PTA_AVX512VPOPCNTDQ): Define.
289 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
290 TARGET_AVX512VPOPCNTDQ_P): Define.
291 * config/i386/i386.opt: Add mavx512vpopcntdq.
292 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
293 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
295 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
298 * predict.def (PRED_CALL): Set to 67.
300 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
302 * expr.c (store_field): In the bitfield case, if the value comes from
303 a function call and is of an aggregate type returned in registers, do
304 not modify the field mode; extract the value in all cases if the mode
305 is BLKmode and the size is not larger than a word.
307 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
310 * config/i386/cpuid.h: Fix undefined behavior.
312 2017-01-04 Jeff Law <law@redhat.com>
314 PR tree-optimization/79007
315 PR tree-optimization/67955
316 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
317 conservative for pt.null when flag_non_call_exceptions is on.
319 2017-01-09 Jakub Jelinek <jakub@redhat.com>
323 * params.def (PARAM_INLINE_MIN_SPEEDUP,
324 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
325 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
327 * config/avr/avr.opt (maccumulate-args): Likewise.
328 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
329 * common.opt (freport-bug): Likewise.
330 * cif-code.def (CIF_FINAL_ERROR): Likewise.
331 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
332 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
334 * config/i386/i386.c (function_value_32): Likewise.
335 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
336 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
338 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
339 * common/config/msp430/msp430-common.c (msp430_handle_option):
341 * symtab.c (symtab_node::verify_base): Likewise.
342 * opts.c (set_debug_level): Likewise.
343 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
344 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
345 missing whitespace to translatable strings.
346 * config/avr/avr.md (bswapsi2): Fix typo in comment.
347 * config/sh/superh.h: Likewise.
348 * config/i386/xopintrin.h: Likewise.
349 * config/i386/znver1.md: Likewise.
350 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
351 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
352 * double-int.h (struct double_int): Likewise.
353 * double-int.c (div_and_round_double): Likewise.
354 * wide-int.cc: Likewise.
355 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
356 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
357 * cfgcleanup.c (crossjumps_occured): Renamed to ...
358 (crossjumps_occurred): ... this.
359 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
362 PR tree-optimization/78899
363 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
364 returning bool return struct loop *, NULL for failure and the new
366 (versionable_outer_loop_p): Don't version outer loop if it has
367 dont_vectorized bit set.
368 (tree_if_conversion): When versioning outer loop, ensure
369 tree_if_conversion is performed also on the inner loop of the
370 non-vectorizable outer loop copy.
371 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
372 LOOP_VECTORIZED in inner loop of the scalar outer loop and
373 prevent vectorization of it.
374 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
375 the outer loop vectorization of the non-scalar version is attempted
376 before vectorization of the inner loop in scalar version. If
377 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
378 vectorization of its inner loop.
379 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
380 has 2 inner loops, rename also on edges from bb whose single pred
381 is outer_loop->header. Fix typo in function comment.
383 2017-01-09 Martin Sebor <msebor@redhat.com>
386 * asan.c (asan_emit_stack_protection): Increase local buffer size
387 to avoid snprintf truncation warning.
389 2017-01-09 Andrew Pinski <apinski@cavium.com>
391 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
392 to reference thunderx2t99 for the tuning structure
393 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
395 (thunderx2t99_extra_costs): This.
396 * config/aarch64/aarch64-tune.md: Regenerate.
397 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
398 (vulcan_addrcost_table): This.
399 (vulcan_regmove_cost): Rename to ...
400 (thunderx2t99_regmove_cost): This.
401 (vulcan_vector_cost): Rename to ...
402 (thunderx2t99_vector_cost): this.
403 (vulcan_branch_cost): Rename to ...
404 (thunderx2t99_branch_cost): This.
405 (vulcan_tunings): Rename to ...
406 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
407 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
409 2017-01-09 Martin Jambor <mjambor@suse.cz>
413 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
414 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
415 (propagate_vr_accross_jump_function): Use the above function for all
416 value range computations for pass-through jump functions and type
417 converasion from explicit value range values.
418 (ipcp_propagate_stage): Do not attempt to deduce types of formal
419 parameters from TYPE_ARG_TYPES.
420 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
421 (ipa_write_node_info): Stream type of the actual argument.
422 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
424 2017-01-09 Martin Liska <mliska@suse.cz>
427 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
428 (lookup_compiler): Do not show error message with have_E.
430 2017-01-09 Jakub Jelinek <jakub@redhat.com>
432 PR tree-optimization/78938
433 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
434 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
435 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
436 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
439 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
441 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
444 2017-01-09 Richard Biener <rguenther@suse.de>
446 PR tree-optimization/78997
447 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
448 name condition properly.
450 2017-01-09 Richard Biener <rguenther@suse.de>
453 * dwarf2out.c (is_cxx): New overload with context.
454 (is_naming_typedef_decl): Use it.
456 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
458 * invoke.texi (Option Summary): Correct spacing in option lists
459 and add line breaks to fix over-long lines.
461 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
465 * extend.texi (Common Variable Attributes): Add xref to GCC
466 Internals manual to explain mode attribute keywords.
468 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
471 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
472 and Preprocessor Options.
473 (Options for Linking): Document -pthread here....
474 (RS/6000 and PowerPC Options): ...not here.
475 (Solaris 2 Options): ...or here.
476 * doc/cppopts.texi: Document -pthread.
478 2017-01-08 Martin Sebor <msebor@redhat.com>
481 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
482 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
483 New member functions.
484 (format_directive): Used them.
486 (pass_sprintf_length::handle_gimple_call): Same.
487 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
488 to avoid truncation for any argument.
489 (extract_affine_mul): Same.
490 * tree.c (get_file_function_name): Same.
492 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
495 * predict.def (PRED_INDIR_CALL): Set to 86.
497 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
499 PR preprocessor/54124
500 * doc/cppopts.texi: Reformat -d subtable to list the full name
501 of the options. Add cross-reference to the docs for the general
503 * doc/invoke.texi (Developer Options): Add cross-reference to the
504 preprocessor-specific -d option documentation.
506 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
508 PR preprocessor/13498
509 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
510 redudant material, and reflect new command-line options.
511 (System Headers): Likewise.
513 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
515 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
516 -isystem, and -idirafter. Copy-edit.
517 * doc/cppopts.texi: Copy-edit. Remove contradiction about
518 default for -ftrack-macro-expansion. Delete obsolete and
519 badly-formatted implementation details about -fdebug-cpp output.
520 * doc/cppwarnopts.texi: Copy-edit.
522 2017-01-07 David Malcolm <dmalcolm@redhat.com>
525 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
526 that the transition from a max line width >= 1<<10 to narrower
527 lines works correctly.
529 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
531 * doc/options.texi (PerFunction): New.
532 * opt-functions.awk (switch_flags): Map both Optimization and
533 PerFunction to CL_OPTIMIZATION.
534 * opth-gen.awk: Test for PerFunction flag along with
536 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
537 it only when the latter is present. Skip those that don't in
538 the hash function generator.
539 * common.opt (fvar-tracking): Mark as PerFunction instead of
541 (fvar-tracking-assignments): Likewise.
542 (fvar-tracking-assignments-toggle): Likewise.
543 (fvar-tracking-uninit): Likewise.
545 2017-01-07 Jakub Jelinek <jakub@redhat.com>
548 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
551 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
554 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
555 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
556 TARGET_LONG_JUMP_TABLE_OFFSETS.
557 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
558 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
559 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
560 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
561 * config/m68k/m68k.md (tablejump expander): Likewise.
562 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
563 TARGET_LONG_JUMP_TABLE_OFFSETS.
564 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
565 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
567 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
568 David Holsgrove <david.holsgrove@xilinx.com>
570 * common/config/microblaze/microblaze-common.c
571 (TARGET_EXCEPT_UNWIND_INFO): Remove.
572 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
574 * config/microblaze/microblaze.c (microblaze_must_save_register)
575 (microblaze_expand_epilogue, microblaze_return_addr): Handle
577 (microblaze_eh_return): New function.
578 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
579 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
580 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
581 * config/microblaze/microblaze.md (eh_return): New pattern.
583 2017-01-06 Jakub Jelinek <jakub@redhat.com>
585 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
586 GCC_DIAGNOSTIC_STRINGIFY): Define.
588 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
590 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
592 * config/arm/arm.md (<mcrr>): New.
594 * config/arm/arm.c (arm_arch5te): New.
595 (arm_option_override): Set arm_arch5te.
596 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
598 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
599 (arm_mcrr_qualifiers): ... this. New.
600 (MRRC_QUALIFIERS): Define to...
601 (arm_mrrc_qualifiers): ... this. New.
602 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
604 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
605 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
606 (MRRCI, mrrc, MRRC): New.
607 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
610 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
612 * config/arm/arm.md (<mcr>): New.
614 * config/arm/arm.c (arm_coproc_builtin_available): Add
615 support for mcr, mrc, mcr2 and mrc2.
616 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
617 (arm_mcr_qualifiers): ... this. New.
618 (MRC_QUALIFIERS): Define to ...
619 (arm_mrc_qualifiers): ... this. New.
620 (MCR_QUALIFIERS): Define to ...
621 (arm_mcr_qualifiers): ... this. New.
622 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
624 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
625 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
626 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
629 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
631 * config/arm/arm.md (*ldc): New.
635 * config/arm/arm.c (arm_coproc_builtin_available): Add
636 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
637 (arm_coproc_ldc_stc_legitimate_address): New.
638 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
639 'qualifier_const_pointer'.
640 (LDC_QUALIFIERS): Define to...
641 (arm_ldc_qualifiers): ... this. New.
642 (STC_QUALIFIERS): Define to...
643 (arm_stc_qualifiers): ... this. New.
644 * config/arm/arm-protos.h
645 (arm_coproc_ldc_stc_legitimate_address): New.
646 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
647 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
648 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
649 stc2, stcl, stc2l): New.
650 * config/arm/constraints.md (Uz): New.
651 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
652 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
653 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
656 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
658 * config/arm/arm.md (<cdp>): New.
659 * config/arm/arm.c (neon_const_bounds): Rename this ...
660 (arm_const_bounds): ... this.
661 (arm_coproc_builtin_available): New.
662 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
663 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
664 (CDP_QUALIFIERS): Define to...
665 (arm_cdp_qualifiers): ... this. New.
667 (arm_expand_builtin_args): Add case for 6 arguments.
668 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
669 (arm_const_bounds): ... this.
670 (arm_coproc_builtin_available): New.
671 * config/arm/arm_acle.h (__arm_cdp): New.
673 * config/arm/arm_acle_builtins.def (cdp): New.
675 * config/arm/iterators.md (CDPI,CDP,cdp): New.
676 * config/arm/neon.md: Rename all 'neon_const_bounds' to
678 * config/arm/types.md (coproc): New.
679 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
680 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
681 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
682 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
684 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
686 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
687 (UBINOP_QUALIFIERS): New.
689 (acle_builtin_data): New. Change comment.
690 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
691 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
692 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
693 arm_acle_builtins.def.
694 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
695 (arm_init_acle_builtins): New.
696 (CRC32_BUILTIN): Remove.
697 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
698 crc32cb, crc32ch and crc32cw.
699 (arm_init_crc32_builtins): Remove.
700 (arm_init_builtins): Use arm_init_acle_builtins rather
701 than arm_init_crc32_builtins.
702 (arm_expand_acle_builtin): New.
703 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
704 * config/arm/arm_acle_builtins.def: New.
706 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
708 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
709 (arm_builtin_datum): ... this.
710 (arm_init_neon_builtin): Rename to ...
711 (arm_init_builtin): ... this. Add a new parameters PREFIX
713 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
714 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
716 (arm_init_vfp_builtins): Likewise.
717 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
718 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
719 (arm_expand_neon_args): Rename to ...
720 (arm_expand_builtin_args): ... this. Rename builtin_arg
721 enum values and differentiate between ARG_BUILTIN_MEMORY
722 and ARG_BUILTIN_NEON_MEMORY.
723 (arm_expand_neon_builtin_1): Rename to ...
724 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
725 values, arm_expand_builtin_args and add bool parameter NEON.
726 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
727 (arm_expand_vfp_builtin): Likewise.
728 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
730 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
733 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
734 * predict.c (tree_estimate_probability_bb): Reverse direction of
735 polymorphic call predictor.
737 2017-01-06 David Malcolm <dmalcolm@redhat.com>
739 * passes.c (execute_one_pass): Split out pass-skipping logic into...
740 (determine_pass_name_match): ...this new function and...
741 (should_skip_pass_p): ...this new function.
743 2017-01-06 Nathan Sidwell <nathan@acm.org>
745 * ipa-visibility.c (function_and_variable_visibility): Reformat
746 comments and long lines. Remove extrneous if.
747 * symtab.c (symtab_node::make_decl_local): Fix code format.
748 (symtab_node::set_section_for_node): Fix comment typo.
750 2017-01-06 Martin Liska <mliska@suse.cz>
753 * lra-constraints.c: Rename invariant to lra_invariant.
754 * predict.c (set_even_probabilities): Initialize e to NULL.
756 2017-01-05 Martin Sebor <msebor@redhat.com>
758 PR tree-optimization/78910
759 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
760 (format_integer): Correct off-by-one error in the handling
761 of precision with negative numbers in signed conversions..
763 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
765 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
767 2017-01-05 Jakub Jelinek <jakub@redhat.com>
769 PR tree-optimization/71016
770 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
771 factor_out_conditional_conversion. Formatting fix.
772 (factor_out_conditional_conversion): Add cond_stmt argument.
773 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
774 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
777 2017-01-05 David Malcolm <dmalcolm@redhat.com>
779 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
780 read-rtl-function.o, and selftest-rtl.o.
781 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
782 (selftest::aarch64_test_loading_full_dump): New function.
783 (selftest::aarch64_run_selftests): New function.
784 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
785 selftest::aarch64_run_selftests.
787 (selftest::ix86_test_loading_dump_fragment_1): New function.
788 (selftest::ix86_test_loading_call_insn): New function.
789 (selftest::ix86_test_loading_full_dump): New function.
790 (selftest::ix86_test_loading_unspec): New function.
791 (selftest::ix86_run_selftests): Call the new functions.
792 * emit-rtl.c (maybe_set_max_label_num): New function.
793 * emit-rtl.h (maybe_set_max_label_num): New decl.
794 * function.c (instantiate_decls): Guard call to
795 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
796 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
798 * gensupport.c (gen_reader::gen_reader): Pass "false"
799 for new "compact" param of rtx_reader.
800 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
801 rather than an empty string for NULL strings.
802 * read-md.c: Potentially include config.h rather than bconfig.h.
803 Wrap include of errors.h with #ifdef GENERATOR_FILE.
804 (have_error): New global, copied from errors.c.
805 (md_reader::read_name): Rename to...
806 (md_reader::read_name_1): ...this, adding "out_loc" param,
807 and converting "missing name or number" to returning false, rather
809 (md_reader::read_name): Reimplement in terms of read_name_1.
810 (md_reader::read_name_or_nil): New function.
811 (md_reader::read_string): Handle "(nil)" by returning NULL.
812 (md_reader::md_reader): Add new param "compact".
813 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
814 (md_reader::read_file): New method.
815 * read-md.h (md_reader::md_reader): Add new param "compact".
816 (md_reader::read_file): New method.
817 (md_reader::is_compact): New accessor.
818 (md_reader::read_name): Convert return type from void to file_location.
819 (md_reader::read_name_or_nil): New decl.
820 (md_reader::read_name_1): New decl.
821 (md_reader::m_compact): New field.
822 (noop_reader::noop_reader): Pass "false" for new "compact" param
824 (rtx_reader::rtx_reader): Add new "compact" param.
825 (rtx_reader::read_rtx_operand): Make virtual and convert return
826 type from void to rtx.
827 (rtx_reader::read_until): New decl.
828 (rtx_reader::handle_any_trailing_information): New virtual function.
829 (rtx_reader::postprocess): New virtual function.
830 (rtx_reader::finalize_string): New virtual function.
831 (rtx_reader::m_in_call_function_usage): New field.
832 (rtx_reader::m_reuse_rtx_by_id): New field.
833 * read-rtl-function.c: New file.
834 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
835 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
836 (selftest::verify_three_block_rtl_cfg): New decl.
837 * read-rtl-function.h: New file.
838 * read-rtl.c: Potentially include config.h rather than bconfig.h.
839 For host, include function.h, memmodel.h, and emit-rtl.h.
840 (one_time_initialization): New function.
841 (struct compact_insn_name): New struct.
842 (compact_insn_names): New array.
843 (find_code): Handle insn codes in compact dumps.
844 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
845 (bind_subst_iter_and_attr): Likewise.
846 (add_condition_to_string): Likewise.
847 (add_condition_to_rtx): Likewise.
848 (apply_attribute_uses): Likewise.
849 (add_current_iterators): Likewise.
850 (apply_iterators): Likewise.
851 (initialize_iterators): Guard usage of apply_subst_iterator with
852 #ifdef GENERATOR_FILE.
853 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
854 (md_reader::read_mapping): Likewise.
855 (add_define_attr_for_define_subst): Likewise.
856 (add_define_subst_attr): Likewise.
857 (read_subst_mapping): Likewise.
858 (check_code_iterator): Likewise.
859 (rtx_reader::read_rtx): Likewise. Move one-time initialization
861 (one_time_initialization): New function.
862 (rtx_reader::read_until): New method.
863 (read_flags): New function.
864 (parse_reg_note_name): New function.
865 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
866 Handle reuse_rtx ids.
867 Wrap iterator lookup within #ifdef GENERATOR_FILE.
868 Add parsing support for RTL dumps, mirroring the special-cases in
869 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
870 values, and calling handle_any_trailing_information.
871 (rtx_reader::read_rtx_operand): Convert return type from void
872 to rtx, returning return_rtx. Handle case 'e'. Call
873 finalize_string on XSTR and XTMPL fields.
874 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
875 "(nil)" values were omitted. Call the postprocess vfunc on the
877 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
878 class ctor. Initialize m_in_call_function_usage. Call
879 one_time_initialization.
880 * rtl-tests.c (selftest::test_uncond_jump): Call
881 set_new_first_and_last_insn.
882 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
883 * selftest-rtl.c: New file.
884 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
885 (selftest::get_insn_by_uid): New decl.
886 * selftest-run-tests.c (selftest::run_tests): Call
887 read_rtl_function_c_tests.
888 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
889 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
892 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
894 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
895 operands in a special way. Assert that pos+len <= mode precision.
897 2017-01-05 Jakub Jelinek <jakub@redhat.com>
899 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
900 3 argument Alias with unlimited for the negative form.
901 (fno-vect-cost-model): Removed.
903 2017-01-05 Martin Liska <mliska@suse.cz>
905 * hsa-gen.c (gen_hsa_divmod): New function.
906 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
908 2017-01-05 Martin Liska <mliska@suse.cz>
911 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
914 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
916 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
917 small constant length operands.
919 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
921 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
922 between loop iterations.
924 2017-01-05 Martin Liska <mliska@suse.cz>
927 * gimplify.c (gimplify_decl_expr): Compare to
928 asan_poisoned_variables instread of checking flags.
929 (gimplify_target_expr): Likewise.
930 (gimplify_expr): Likewise.
931 (gimplify_function_tree): Conditionally initialize
932 asan_poisoned_variables.
934 2017-01-04 Jeff Law <law@redhat.com>
936 PR tree-optimizatin/78812
937 * rtl.h (contains_mem_rtx_p): Prototype.
938 * ifcvt.c (containts_mem_rtx_p): Move from here to...
939 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
940 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
941 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
942 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
944 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
946 * input.c (assert_char_at_range): Default-initialize actual_range.
948 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
950 * df-scan.c (df_ref_create_structure): Make regno unsigned,
953 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
955 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
956 insns after final jump in test to emit dummy move.
958 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
960 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
961 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
963 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
965 * multiple_target.c (create_dispatcher_calls): Init e_next.
966 * tree-ssa-loop-split.c (split_loop): Init border.
967 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
970 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
975 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
976 (altivec_register_operand): Do not return true if the operand
977 contains a SUBREG mixing SImode and SFmode.
978 (vsx_register_operand): Likewise.
979 (vsx_reg_sfsubreg_ok): New predicate.
980 (vfloat_operand): Do not return true if the operand contains a
981 SUBREG mixing SImode and SFmode.
982 (vint_operand): Likewise.
983 (vlogical_operand): Likewise.
984 (gpc_reg_operand): Likewise.
985 (int_reg_operand): Likewise.
986 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
987 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
988 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
990 (rs6000_emit_move_si_sf_subreg): New helper function.
991 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
992 fixup SUBREGs involving SImode and SFmode.
993 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
994 numbers for the new peephole2 optimization.
995 (peephole2 for SFmode unions): New peephole2 to optimize cases in
996 the GLIBC math library that do AND/IOR/XOR operations on single
997 precision floating point.
998 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
999 target macros to say whether we need to avoid SUBREGs mixing
1001 (TARGET_ALLOW_SF_SUBREG): Likewise.
1002 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
1003 (UNSPEC_SI_FROM_SF): Likewise.
1004 (iorxor): Change spacing.
1005 (and_ior_xor): New iterator for AND, IOR, and XOR.
1006 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
1007 (movdi_from_sf_zero_ext): Likewise.
1008 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
1009 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
1010 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
1011 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
1012 (fms<mode>4): Likewise.
1013 (fnma<mode>4): Likewise.
1014 (fnms<mode>4): Likewise.
1015 (nfma<mode>4): Likewise.
1016 (nfms<mode>4): Likewise.
1018 2017-01-04 Marek Polacek <polacek@redhat.com>
1021 * doc/invoke.texi: Document -Wpointer-compare.
1023 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1025 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
1028 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
1029 descriptions for -gdwarf-5 and emit them as uleb128 instead of
1032 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
1035 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
1036 documentation of the powerpc_popcntb_ok attribute.
1037 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1038 code to issue warning messages if a requested CPU configuration is
1039 not supported by the binary (assembler and loader) toolchain.
1040 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
1041 made to define a built-in function that has been disabled.
1042 (paired_init_builtins): Add assertion to prevent ICE if attempt is
1043 made to define a built-in function that has been disabled.
1044 (altivec_init_builtins): Add comment explaining why definition
1045 of the DST built-in functions is not preceded by an assertion
1046 check. Add assertions to prevent ICE if attempts are made to
1047 define an altivec predicate or an abs* built-in function that has
1049 (htm_init_builtins): Add comment explaining why definition of the
1050 htm built-in functions is not preceded by an assertion check.
1052 2017-01-04 Jeff Law <law@redhat.com>
1054 PR tree-optimizatin/67955
1055 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
1056 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
1057 the points-to solution does not include pt_null. Use DECL_PT_UID
1060 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
1062 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
1063 Use gen_int_mode instead of gen_lopwart for const_int operands.
1065 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1067 PR tree-optimization/71563
1068 * match.pd: Simplify X << Y into X if Y is known to be 0 or
1069 out of range value - has low bits known to be zero.
1071 2017-01-04 Alan Modra <amodra@gmail.com>
1073 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
1074 * configure: Regenerate.
1075 * config.in: Regenerate.
1077 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1080 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1081 a substring of the message, but strcmp with the whole message. Ifdef
1082 ENABLE_NLS, translate the message first using dgettext.
1084 2017-01-03 Jeff Law <law@redhat.com>
1086 PR tree-optimizatin/78856
1087 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1088 (mark_threaded_blocks): Remove code to truncate thread paths that
1089 cross multiple loop headers. Instead invalidate the cached loop
1090 iteration information and handle case of a thread path walking
1091 into an irreducible region.
1093 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1096 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1097 assertions. Add support for doing the signbit if the IEEE 128-bit
1098 floating point value is in a GPR.
1099 * config/rs6000/rs6000.md (Fsignbit): Delete.
1100 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1101 Update the length attribute if the value is in a GPR.
1102 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1103 the sign or zero extension instruction, since the value is always 0/1.
1104 (signbit<mode>2_dm2): Delete using <Fsignbit>.
1107 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1108 extracting SImode to a GPR register so that we can generate a
1109 store, limit the vector to be in a traditional Altivec register
1110 for the vextuwrx instruction.
1112 2017-01-03 Ian Lance Taylor <iant@google.com>
1114 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1116 2017-01-03 Martin Sebor <msebor@redhat.com>
1118 PR tree-optimization/78696
1119 * gimple-ssa-sprintf.c (format_floating): Correct handling of
1120 precision. Use MPFR for %f for greater fidelity. Correct handling
1122 (pass_sprintf_length::compute_format_length): Set width and precision
1123 specified by asrerisk to void_node for vararg functions.
1124 (try_substitute_return_value): Adjust dump output.
1126 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
1128 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1130 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
1132 * doc/invoke.texi (SPARC options): Document -mlra as the default.
1133 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1134 -mlra/-mno-lra was passed to the compiler.
1136 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
1138 PR rtl-optimization/65618
1139 * emit-rtl.c (try_split): Move initialization of "before" and
1140 "after" to just before the call to emit_insn_after_setloc.
1142 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1144 * doc/md.texi (Standard Names): Remove reference to Java frontend.
1146 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
1148 * dwarf2out.c (gen_enumeration_type_die): When
1149 -gno-strict-dwarf, add a DW_AT_encoding attribute.
1151 2017-01-03 Jakub Jelinek <jakub@redhat.com>
1153 PR tree-optimization/78965
1154 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1155 Change first argument from const call_info & to call_info &. For %n
1156 set info.nowrite to false.
1159 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1160 possibly throwing calls.
1162 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1163 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1164 and fns handling, rather than in a separate case SSA_NAME.
1166 2017-01-02 Jeff Law <law@redhat.com>
1168 * config/darwin-driver.c (darwin_driver_init): Const-correctness
1169 fixes for first_period and second_period variables.
1171 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
1174 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1175 (*insvqi_1): New insn pattern.
1176 (*insvqi_1_mem_rex64): Ditto.
1178 (*insvqi_3): Rename from *insvqi.
1180 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
1182 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1184 * doc/cfg.texi (Edges): Remove reference to Java.
1185 (Maintaining the CFG): Ditto.
1187 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1190 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
1191 transparent aliases.
1193 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1196 * predict.def (PRED_CALL): Update hitrate.
1197 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
1198 * predict.c (tree_estimate_probability_bb): Split CALL predictor
1199 into direct/indirect/polymorphic variants.
1201 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1203 Update copyright years.
1205 * gcc.c (process_command): Update copyright notice dates.
1206 * gcov-dump.c (print_version): Ditto.
1207 * gcov.c (print_version): Ditto.
1208 * gcov-tool.c (print_version): Ditto.
1209 * gengtype.c (create_file): Ditto.
1210 * doc/cpp.texi: Bump @copying's copyright year.
1211 * doc/cppinternals.texi: Ditto.
1212 * doc/gcc.texi: Ditto.
1213 * doc/gccint.texi: Ditto.
1214 * doc/gcov.texi: Ditto.
1215 * doc/install.texi: Ditto.
1216 * doc/invoke.texi: Ditto.
1218 Copyright (C) 2017 Free Software Foundation, Inc.
1220 Copying and distribution of this file, with or without modification,
1221 are permitted in any medium without royalty provided the copyright
1222 notice and this notice are preserved.