1 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
3 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
5 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
7 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
8 call recog here. Assert that INSN_CODE (insn) is non-negative.
10 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
13 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
15 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
16 in the currently scheduled RTL fragment.
18 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
20 PR rtl-optimization/78751
21 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
24 2017-01-14 Jeff Law <law@redhat.com>
26 PR tree-optimization/79090
27 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
28 variable length stores.
29 (compute_trims): Delete dead assignment to *trim_tail.
30 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
33 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
35 PR rtl-optimization/78626
36 PR rtl-optimization/78727
37 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
38 of a block, and split such blocks after everything else is finished.
40 2017-01-14 Alan Modra <amodra@gmail.com>
43 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
44 target legitimate_combined_insn.
45 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
46 (rs6000_legitimate_combined_insn): New function.
47 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
49 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
50 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
51 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
53 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
55 * doc/frontends.texi (G++ and GCC): Remove references to Java.
57 2017-01-13 Jeff Law <law@redhat.com>
59 PR tree-optimization/33562
60 PR tree-optimization/61912
61 PR tree-optimization/77485
62 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
64 (delete_dead_assignment): Likewise.
65 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
66 statement to delete_dead_call and delete_dead_assignment.
68 2017-01-13 David Malcolm <dmalcolm@redhat.com>
71 * substring-locations.c (format_warning_va): Strengthen case 1 so
72 that both endpoints of the substring must be within the format
73 range for just the substring to be printed.
75 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
77 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
78 * config/i386/i386.c (ix86_target_string): Add missing options
79 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
80 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
81 flags_other and ix86_target_other to flags2_other. Display unknown
83 (ix86_valid_target_attribute_inner_p): Add missing options and
84 reorder options by implied ISAs, as in ix86_target_string.
86 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
88 * hash-table.h (hash_table::too_empty_p): New function.
89 (hash_table::expand): Use it.
90 (hash_table::traverse): Likewise.
91 (hash_table::empty_slot): Use sizeof (value_type) instead of
92 sizeof (PTR) to convert bytes to elements. Shrink the table
93 if the current size is excessive for the current number of
96 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
98 * ira-costs.c (record_reg_classes): Break from the inner loop
99 early once alt_fail is known to be true. Update outer loop
100 handling accordingly.
102 2017-01-13 Jeff Law <law@redhat.com>
104 * tree-ssa-dse.c (decrement_count): New function.
105 (increment_start_addr, maybe_trim_memstar_call): Likewise.
106 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
107 when we know the partially dead statement is a mem* function.
109 PR tree-optimization/61912
110 PR tree-optimization/77485
111 * tree-ssa-dse.c: Include expr.h.
112 (maybe_trim_constructor_store): New function.
113 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
115 PR tree-optimization/33562
116 PR tree-optimization/61912
117 PR tree-optimization/77485
118 * doc/invoke.texi: Document new dse-max-object-size param.
119 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
120 * tree-ssa-dse.c: Include params.h.
121 (dse_store_status): New enum.
122 (initialize_ao_ref_for_dse): New, partially extracted from
124 (valid_ao_ref_for_dse, normalize_ref): New.
125 (setup_live_bytes_from_ref, compute_trims): Likewise.
126 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
127 (maybe_trim_partially_dead_store): Likewise.
128 (maybe_trim_complex_store): Likewise.
129 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
130 Track what bytes live from the original store. Return tri-state
131 for dead, partially dead or live.
132 (dse_dom_walker): Add constructor, destructor and new private members.
133 (delete_dead_call, delete_dead_assignment): New extracted from
135 (dse_optimize_stmt): Make a member of dse_dom_walker.
136 Use initialize_ao_ref_for_dse.
138 PR tree-optimization/33562
139 PR tree-optimization/61912
140 PR tree-optimization/77485
141 * sbitmap.h (bitmap_count_bits): Prototype.
142 (bitmap_clear_range, bitmap_set_range): Likewise.
143 * sbitmap.c (bitmap_clear_range): New function.
144 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
146 2017-01-13 Martin Liska <mliska@suse.cz>
149 * function.c (set_cfun): Add new argument force.
150 * function.h (set_cfun): Likewise.
151 * ipa-inline-transform.c (inline_call): Use the function when
152 strict alising from is dropped for function we inline to.
154 2017-01-13 Richard Biener <rguenther@suse.de>
156 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
157 for dumping GIMPLE INTEGER_CSTs.
159 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
161 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
162 to 201112L since C++17.
164 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
167 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
168 if -fsanitize=kernel-address is present.
170 2017-01-13 Richard Biener <rguenther@suse.de>
172 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
173 as _Literal ( type ) number in case usual suffixes do not
174 preserve all information.
176 2017-01-13 Richard Biener <rguenther@suse.de>
178 PR tree-optimization/77283
179 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
181 (is_feasible_trace): Implement a cost model based on joiner
184 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
187 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
188 char or short to __float128/_Float128 directly.
190 2017-01-12 Martin Sebor <msebor@redhat.com>
192 to -Wformat-overflow.
193 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
194 (min_bytes_remaining): Same.
195 (get_string_length): Same.
196 (format_string): Same.
197 (format_directive): Same.
199 (pass_sprintf_length::handle_gimple_call): Same.
201 2017-01-12 Jakub Jelinek <jakub@redhat.com>
203 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
204 info.nowrite calls with no lhs that can't throw. Return bool
205 whether gsi_remove has been called or not.
206 (pass_sprintf_length::handle_gimple_call): Return bool whether
207 try_substitute_return_value called gsi_remove. Formatting fix.
208 (pass_sprintf_length::execute): Don't use gsi_remove if
209 handle_gimple_call returned true.
212 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
213 be removed due to side-effects, don't remove following barrier nor
214 turn the successor edge into fallthru edge.
216 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
219 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
220 element-reversing loads and stores as not swappable.
222 2017-01-12 Nathan Sidwell <nathan@acm.org>
223 Nicolai Stange <nicstange@gmail.com>
225 * combine.c (try_combine): Don't ignore result of overlap checking
226 loop. Combine overlap & asm check into single loop.
228 2017-01-12 Richard Biener <rguenther@suse.de>
230 * tree-pretty-print.c (dump_generic_node): Provide -gimple
231 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
233 2017-01-12 Richard Biener <rguenther@suse.de>
235 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
236 and TS_TARGET_OPTION directly derive from TS_BASE.
237 * tree-core.h (tree_optimization_option): Derive from tree_base.
238 (tree_target_option): Likewise.
240 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
242 * config/i386/i386.c (memory_address_length): Increase len
243 only when rip_relative_addr_p returns false.
245 2017-01-11 Julia Koval <julia.koval@intel.com>
247 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
248 (OPTION_MASK_ISA_SGX_SET): New.
249 (ix86_handle_option): Handle OPT_msgx.
250 * config.gcc: Added sgxintrin.h.
251 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
252 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
253 * config/i386/i386.c (ix86_target_string): Add -msgx.
255 (ix86_option_override_internal): Handle new options.
256 (ix86_valid_target_attribute_inner_p): Add sgx.
257 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
258 * config/i386/i386.opt: Add msgx.
259 * config/i386/sgxintrin.h: New file.
260 * config/i386/x86intrin.h: Add sgxintrin.h.
262 2017-01-11 Jakub Jelinek <jakub@redhat.com>
265 * fold-const.c (maybe_nonzero_address): Return 1 for function
267 (tree_single_nonzero_warnv_p): Don't handle function local objects
271 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
274 2017-01-11 David Malcolm <dmalcolm@redhat.com>
277 * opts.c: Include "spellcheck.h"
278 (struct string_fragment): New struct.
279 (struct edit_distance_traits<const string_fragment &>): New
281 (get_closest_sanitizer_option): New function.
282 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
284 2017-01-11 Jakub Jelinek <jakub@redhat.com>
286 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
288 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
289 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
290 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
291 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
292 for initial die_offset if dwarf_split_debug_info.
293 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
294 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
296 (output_skeleton_debug_sections): Formatting fix. Use
297 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
298 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
300 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
302 * config/arm/cortex-a53.md: Add bypasses for
304 (cortex_a53_r2f): Only use for transfers.
305 (cortex_a53_f2r): Likewise.
306 (cortex_a53_r2f_cvt): Add reservation for conversions.
307 (cortex_a53_f2r_cvt): Likewise.
309 2017-01-11 Tamar Christina <tamar.christina@arm.com>
311 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
312 to all inlined functions, change static to extern.
314 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
317 * config/arm/arm.c (legitimize_pic_address): Handle reference to
319 (arm_assemble_integer): Likewise.
321 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
323 * config.gcc: Use new awk script to check CPU, FPU and architecture
324 parameters for --with-... options.
325 * config/arm/parsecpu.awk: New file
326 * config/arm/arm-cpus.in: New file.
327 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
329 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
331 * config/arm/t-arm: Update dependency rules.
332 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
333 of processing .def files.
334 * config/arm/genopt.sh: Deleted.
335 * config/arm/gentune.sh: Deleted.
336 * config/arm/arm-cores.def: Deleted.
337 * config/arm/arm-arches.def: Deleted.
338 * config/arm/arm-fpus.def: Deleted.
339 * config/arm/arm-tune.md: Regenerated.
340 * config/arm/arm-tables.opt: Regenerated.
341 * config/arm/arm-cpu.h: New generated file.
342 * config/arm/arm-cpu-data.h: New generated file.
343 * config/arm/arm-cpu-cdata.h: New generated file.
345 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
348 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
350 (input_varpool_node): Unpack dynamically_initialized bit.
352 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
354 PR rtl-optimization/79032
355 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
356 the alignment of the adjusted memory reference against that of MODE,
357 instead of the alignment of the original memory reference.
359 2017-01-11 Martin Jambor <mjambor@suse.cz>
361 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
363 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
366 2017-01-11 Richard Biener <rguenther@suse.de>
368 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
369 set range/nonnull info for PHI results. Do not set it on
370 stmts marked for removal.
372 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
374 * expr.c (store_field): In the bitfield case, fetch the return value
375 from the registers before applying a single big-endian adjustment.
376 Always do a final load for a BLKmode value not larger than a word.
378 2017-01-10 David Malcolm <dmalcolm@redhat.com>
381 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
382 that we correctly handle column numbers greater than
383 LINE_MAP_MAX_COLUMN_NUMBER.
385 2017-01-10 Martin Sebor <msebor@redhat.com>
388 * gimple-ssa-sprintf.c (get_destination_size): Call
389 {init,fini}object_sizes.
390 * tree-object-size.c (addr_object_size): Adjust.
391 (pass_through_call): Adjust.
392 (pass_object_sizes::execute): Adjust.
393 * tree-object-size.h (fini_object_sizes): Declare.
395 2017-01-10 Martin Sebor <msebor@redhat.com>
397 PR tree-optimization/78775
398 * builtins.c (get_size_range): Move...
399 * calls.c: ...to here.
400 (alloc_max_size): Accept zero argument.
401 (operand_signed_p): Remove.
402 (maybe_warn_alloc_args_overflow): Call get_size_range.
403 * calls.h (get_size_range): Declare.
405 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
407 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
408 from TI's devices.csv file as of September 2016.
409 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
411 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
413 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
414 * doc/invoke.texi: Likewise.
415 * doc/md.texi: Likewise.
416 * doc/objc.texi: Likewise.
418 2017-01-10 Joshua Conner <joshconner@google.com>
420 * config/arm/fuchsia-elf.h: New file.
421 * config/fuchsia.h: New file.
422 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
423 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
425 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
427 2016-01-10 Richard Biener <rguenther@suse.de>
429 PR tree-optimization/79034
430 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
431 Propagate out degenerate PHIs in the joiner.
433 2017-01-10 Martin Liska <mliska@suse.cz>
435 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
436 (sort_congruence_classes_by_decl_uid): Likewise.
437 (sort_congruence_class_groups_by_decl_uid): Likewise.
438 (sem_item_optimizer::merge_classes): Sort class, groups in these
439 classes and members in the groups by DECL_UID of declarations.
440 This would make merge operations stable.
442 2017-01-10 Martin Liska <mliska@suse.cz>
444 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
445 usage of m_classes_vec.
446 (sem_item_optimizer::~sem_item_optimizer): Likewise.
447 (sem_item_optimizer::get_group_by_hash): Likewise.
448 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
449 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
450 (sem_item_optimizer::verify_classes): Likewise.
451 (sem_item_optimizer::process_cong_reduction): Likewise.
452 (sem_item_optimizer::dump_cong_classes): Likewise.
453 (sem_item_optimizer::merge_classes): Likewise.
454 * ipa-icf.h (congruence_class_hash): Rename from
455 congruence_class_group_hash. Remove declaration of m_classes_vec.
457 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
459 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
460 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
461 * config.gcc: Add avx512vpopcntdqintrin.h.
462 * config/i386/avx512vpopcntdqintrin.h: New.
463 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
464 * config/i386/i386-builtin-types.def: Add new types.
465 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
466 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
467 __builtin_ia32_vpopcountq_v8di_mask): New.
468 * config/i386/i386-c.c (ix86_target_macros_internal): Define
470 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
471 (PTA_AVX512VPOPCNTDQ): Define.
472 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
473 TARGET_AVX512VPOPCNTDQ_P): Define.
474 * config/i386/i386.opt: Add mavx512vpopcntdq.
475 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
476 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
478 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
481 * predict.def (PRED_CALL): Set to 67.
483 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
485 * expr.c (store_field): In the bitfield case, if the value comes from
486 a function call and is of an aggregate type returned in registers, do
487 not modify the field mode; extract the value in all cases if the mode
488 is BLKmode and the size is not larger than a word.
490 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
493 * config/i386/cpuid.h: Fix undefined behavior.
495 2017-01-04 Jeff Law <law@redhat.com>
497 PR tree-optimization/79007
498 PR tree-optimization/67955
499 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
500 conservative for pt.null when flag_non_call_exceptions is on.
502 2017-01-09 Jakub Jelinek <jakub@redhat.com>
506 * params.def (PARAM_INLINE_MIN_SPEEDUP,
507 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
508 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
510 * config/avr/avr.opt (maccumulate-args): Likewise.
511 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
512 * common.opt (freport-bug): Likewise.
513 * cif-code.def (CIF_FINAL_ERROR): Likewise.
514 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
515 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
517 * config/i386/i386.c (function_value_32): Likewise.
518 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
519 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
521 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
522 * common/config/msp430/msp430-common.c (msp430_handle_option):
524 * symtab.c (symtab_node::verify_base): Likewise.
525 * opts.c (set_debug_level): Likewise.
526 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
527 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
528 missing whitespace to translatable strings.
529 * config/avr/avr.md (bswapsi2): Fix typo in comment.
530 * config/sh/superh.h: Likewise.
531 * config/i386/xopintrin.h: Likewise.
532 * config/i386/znver1.md: Likewise.
533 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
534 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
535 * double-int.h (struct double_int): Likewise.
536 * double-int.c (div_and_round_double): Likewise.
537 * wide-int.cc: Likewise.
538 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
539 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
540 * cfgcleanup.c (crossjumps_occured): Renamed to ...
541 (crossjumps_occurred): ... this.
542 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
545 PR tree-optimization/78899
546 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
547 returning bool return struct loop *, NULL for failure and the new
549 (versionable_outer_loop_p): Don't version outer loop if it has
550 dont_vectorized bit set.
551 (tree_if_conversion): When versioning outer loop, ensure
552 tree_if_conversion is performed also on the inner loop of the
553 non-vectorizable outer loop copy.
554 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
555 LOOP_VECTORIZED in inner loop of the scalar outer loop and
556 prevent vectorization of it.
557 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
558 the outer loop vectorization of the non-scalar version is attempted
559 before vectorization of the inner loop in scalar version. If
560 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
561 vectorization of its inner loop.
562 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
563 has 2 inner loops, rename also on edges from bb whose single pred
564 is outer_loop->header. Fix typo in function comment.
566 2017-01-09 Martin Sebor <msebor@redhat.com>
569 * asan.c (asan_emit_stack_protection): Increase local buffer size
570 to avoid snprintf truncation warning.
572 2017-01-09 Andrew Pinski <apinski@cavium.com>
574 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
575 to reference thunderx2t99 for the tuning structure
576 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
578 (thunderx2t99_extra_costs): This.
579 * config/aarch64/aarch64-tune.md: Regenerate.
580 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
581 (vulcan_addrcost_table): This.
582 (vulcan_regmove_cost): Rename to ...
583 (thunderx2t99_regmove_cost): This.
584 (vulcan_vector_cost): Rename to ...
585 (thunderx2t99_vector_cost): this.
586 (vulcan_branch_cost): Rename to ...
587 (thunderx2t99_branch_cost): This.
588 (vulcan_tunings): Rename to ...
589 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
590 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
592 2017-01-09 Martin Jambor <mjambor@suse.cz>
596 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
597 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
598 (propagate_vr_accross_jump_function): Use the above function for all
599 value range computations for pass-through jump functions and type
600 converasion from explicit value range values.
601 (ipcp_propagate_stage): Do not attempt to deduce types of formal
602 parameters from TYPE_ARG_TYPES.
603 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
604 (ipa_write_node_info): Stream type of the actual argument.
605 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
607 2017-01-09 Martin Liska <mliska@suse.cz>
610 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
611 (lookup_compiler): Do not show error message with have_E.
613 2017-01-09 Jakub Jelinek <jakub@redhat.com>
615 PR tree-optimization/78938
616 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
617 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
618 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
619 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
622 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
624 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
627 2017-01-09 Richard Biener <rguenther@suse.de>
629 PR tree-optimization/78997
630 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
631 name condition properly.
633 2017-01-09 Richard Biener <rguenther@suse.de>
636 * dwarf2out.c (is_cxx): New overload with context.
637 (is_naming_typedef_decl): Use it.
639 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
641 * invoke.texi (Option Summary): Correct spacing in option lists
642 and add line breaks to fix over-long lines.
644 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
648 * extend.texi (Common Variable Attributes): Add xref to GCC
649 Internals manual to explain mode attribute keywords.
651 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
654 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
655 and Preprocessor Options.
656 (Options for Linking): Document -pthread here....
657 (RS/6000 and PowerPC Options): ...not here.
658 (Solaris 2 Options): ...or here.
659 * doc/cppopts.texi: Document -pthread.
661 2017-01-08 Martin Sebor <msebor@redhat.com>
664 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
665 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
666 New member functions.
667 (format_directive): Used them.
669 (pass_sprintf_length::handle_gimple_call): Same.
670 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
671 to avoid truncation for any argument.
672 (extract_affine_mul): Same.
673 * tree.c (get_file_function_name): Same.
675 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
678 * predict.def (PRED_INDIR_CALL): Set to 86.
680 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
682 PR preprocessor/54124
683 * doc/cppopts.texi: Reformat -d subtable to list the full name
684 of the options. Add cross-reference to the docs for the general
686 * doc/invoke.texi (Developer Options): Add cross-reference to the
687 preprocessor-specific -d option documentation.
689 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
691 PR preprocessor/13498
692 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
693 redudant material, and reflect new command-line options.
694 (System Headers): Likewise.
696 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
698 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
699 -isystem, and -idirafter. Copy-edit.
700 * doc/cppopts.texi: Copy-edit. Remove contradiction about
701 default for -ftrack-macro-expansion. Delete obsolete and
702 badly-formatted implementation details about -fdebug-cpp output.
703 * doc/cppwarnopts.texi: Copy-edit.
705 2017-01-07 David Malcolm <dmalcolm@redhat.com>
708 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
709 that the transition from a max line width >= 1<<10 to narrower
710 lines works correctly.
712 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
714 * doc/options.texi (PerFunction): New.
715 * opt-functions.awk (switch_flags): Map both Optimization and
716 PerFunction to CL_OPTIMIZATION.
717 * opth-gen.awk: Test for PerFunction flag along with
719 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
720 it only when the latter is present. Skip those that don't in
721 the hash function generator.
722 * common.opt (fvar-tracking): Mark as PerFunction instead of
724 (fvar-tracking-assignments): Likewise.
725 (fvar-tracking-assignments-toggle): Likewise.
726 (fvar-tracking-uninit): Likewise.
728 2017-01-07 Jakub Jelinek <jakub@redhat.com>
731 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
734 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
737 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
738 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
739 TARGET_LONG_JUMP_TABLE_OFFSETS.
740 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
741 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
742 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
743 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
744 * config/m68k/m68k.md (tablejump expander): Likewise.
745 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
746 TARGET_LONG_JUMP_TABLE_OFFSETS.
747 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
748 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
750 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
751 David Holsgrove <david.holsgrove@xilinx.com>
753 * common/config/microblaze/microblaze-common.c
754 (TARGET_EXCEPT_UNWIND_INFO): Remove.
755 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
757 * config/microblaze/microblaze.c (microblaze_must_save_register)
758 (microblaze_expand_epilogue, microblaze_return_addr): Handle
760 (microblaze_eh_return): New function.
761 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
762 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
763 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
764 * config/microblaze/microblaze.md (eh_return): New pattern.
766 2017-01-06 Jakub Jelinek <jakub@redhat.com>
768 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
769 GCC_DIAGNOSTIC_STRINGIFY): Define.
771 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
773 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
775 * config/arm/arm.md (<mcrr>): New.
777 * config/arm/arm.c (arm_arch5te): New.
778 (arm_option_override): Set arm_arch5te.
779 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
781 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
782 (arm_mcrr_qualifiers): ... this. New.
783 (MRRC_QUALIFIERS): Define to...
784 (arm_mrrc_qualifiers): ... this. New.
785 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
787 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
788 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
789 (MRRCI, mrrc, MRRC): New.
790 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
793 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
795 * config/arm/arm.md (<mcr>): New.
797 * config/arm/arm.c (arm_coproc_builtin_available): Add
798 support for mcr, mrc, mcr2 and mrc2.
799 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
800 (arm_mcr_qualifiers): ... this. New.
801 (MRC_QUALIFIERS): Define to ...
802 (arm_mrc_qualifiers): ... this. New.
803 (MCR_QUALIFIERS): Define to ...
804 (arm_mcr_qualifiers): ... this. New.
805 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
807 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
808 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
809 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
812 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
814 * config/arm/arm.md (*ldc): New.
818 * config/arm/arm.c (arm_coproc_builtin_available): Add
819 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
820 (arm_coproc_ldc_stc_legitimate_address): New.
821 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
822 'qualifier_const_pointer'.
823 (LDC_QUALIFIERS): Define to...
824 (arm_ldc_qualifiers): ... this. New.
825 (STC_QUALIFIERS): Define to...
826 (arm_stc_qualifiers): ... this. New.
827 * config/arm/arm-protos.h
828 (arm_coproc_ldc_stc_legitimate_address): New.
829 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
830 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
831 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
832 stc2, stcl, stc2l): New.
833 * config/arm/constraints.md (Uz): New.
834 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
835 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
836 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
839 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
841 * config/arm/arm.md (<cdp>): New.
842 * config/arm/arm.c (neon_const_bounds): Rename this ...
843 (arm_const_bounds): ... this.
844 (arm_coproc_builtin_available): New.
845 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
846 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
847 (CDP_QUALIFIERS): Define to...
848 (arm_cdp_qualifiers): ... this. New.
850 (arm_expand_builtin_args): Add case for 6 arguments.
851 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
852 (arm_const_bounds): ... this.
853 (arm_coproc_builtin_available): New.
854 * config/arm/arm_acle.h (__arm_cdp): New.
856 * config/arm/arm_acle_builtins.def (cdp): New.
858 * config/arm/iterators.md (CDPI,CDP,cdp): New.
859 * config/arm/neon.md: Rename all 'neon_const_bounds' to
861 * config/arm/types.md (coproc): New.
862 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
863 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
864 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
865 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
867 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
869 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
870 (UBINOP_QUALIFIERS): New.
872 (acle_builtin_data): New. Change comment.
873 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
874 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
875 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
876 arm_acle_builtins.def.
877 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
878 (arm_init_acle_builtins): New.
879 (CRC32_BUILTIN): Remove.
880 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
881 crc32cb, crc32ch and crc32cw.
882 (arm_init_crc32_builtins): Remove.
883 (arm_init_builtins): Use arm_init_acle_builtins rather
884 than arm_init_crc32_builtins.
885 (arm_expand_acle_builtin): New.
886 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
887 * config/arm/arm_acle_builtins.def: New.
889 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
891 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
892 (arm_builtin_datum): ... this.
893 (arm_init_neon_builtin): Rename to ...
894 (arm_init_builtin): ... this. Add a new parameters PREFIX
896 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
897 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
899 (arm_init_vfp_builtins): Likewise.
900 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
901 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
902 (arm_expand_neon_args): Rename to ...
903 (arm_expand_builtin_args): ... this. Rename builtin_arg
904 enum values and differentiate between ARG_BUILTIN_MEMORY
905 and ARG_BUILTIN_NEON_MEMORY.
906 (arm_expand_neon_builtin_1): Rename to ...
907 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
908 values, arm_expand_builtin_args and add bool parameter NEON.
909 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
910 (arm_expand_vfp_builtin): Likewise.
911 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
913 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
916 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
917 * predict.c (tree_estimate_probability_bb): Reverse direction of
918 polymorphic call predictor.
920 2017-01-06 David Malcolm <dmalcolm@redhat.com>
922 * passes.c (execute_one_pass): Split out pass-skipping logic into...
923 (determine_pass_name_match): ...this new function and...
924 (should_skip_pass_p): ...this new function.
926 2017-01-06 Nathan Sidwell <nathan@acm.org>
928 * ipa-visibility.c (function_and_variable_visibility): Reformat
929 comments and long lines. Remove extrneous if.
930 * symtab.c (symtab_node::make_decl_local): Fix code format.
931 (symtab_node::set_section_for_node): Fix comment typo.
933 2017-01-06 Martin Liska <mliska@suse.cz>
936 * lra-constraints.c: Rename invariant to lra_invariant.
937 * predict.c (set_even_probabilities): Initialize e to NULL.
939 2017-01-05 Martin Sebor <msebor@redhat.com>
941 PR tree-optimization/78910
942 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
943 (format_integer): Correct off-by-one error in the handling
944 of precision with negative numbers in signed conversions..
946 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
948 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
950 2017-01-05 Jakub Jelinek <jakub@redhat.com>
952 PR tree-optimization/71016
953 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
954 factor_out_conditional_conversion. Formatting fix.
955 (factor_out_conditional_conversion): Add cond_stmt argument.
956 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
957 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
960 2017-01-05 David Malcolm <dmalcolm@redhat.com>
962 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
963 read-rtl-function.o, and selftest-rtl.o.
964 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
965 (selftest::aarch64_test_loading_full_dump): New function.
966 (selftest::aarch64_run_selftests): New function.
967 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
968 selftest::aarch64_run_selftests.
970 (selftest::ix86_test_loading_dump_fragment_1): New function.
971 (selftest::ix86_test_loading_call_insn): New function.
972 (selftest::ix86_test_loading_full_dump): New function.
973 (selftest::ix86_test_loading_unspec): New function.
974 (selftest::ix86_run_selftests): Call the new functions.
975 * emit-rtl.c (maybe_set_max_label_num): New function.
976 * emit-rtl.h (maybe_set_max_label_num): New decl.
977 * function.c (instantiate_decls): Guard call to
978 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
979 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
981 * gensupport.c (gen_reader::gen_reader): Pass "false"
982 for new "compact" param of rtx_reader.
983 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
984 rather than an empty string for NULL strings.
985 * read-md.c: Potentially include config.h rather than bconfig.h.
986 Wrap include of errors.h with #ifdef GENERATOR_FILE.
987 (have_error): New global, copied from errors.c.
988 (md_reader::read_name): Rename to...
989 (md_reader::read_name_1): ...this, adding "out_loc" param,
990 and converting "missing name or number" to returning false, rather
992 (md_reader::read_name): Reimplement in terms of read_name_1.
993 (md_reader::read_name_or_nil): New function.
994 (md_reader::read_string): Handle "(nil)" by returning NULL.
995 (md_reader::md_reader): Add new param "compact".
996 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
997 (md_reader::read_file): New method.
998 * read-md.h (md_reader::md_reader): Add new param "compact".
999 (md_reader::read_file): New method.
1000 (md_reader::is_compact): New accessor.
1001 (md_reader::read_name): Convert return type from void to file_location.
1002 (md_reader::read_name_or_nil): New decl.
1003 (md_reader::read_name_1): New decl.
1004 (md_reader::m_compact): New field.
1005 (noop_reader::noop_reader): Pass "false" for new "compact" param
1007 (rtx_reader::rtx_reader): Add new "compact" param.
1008 (rtx_reader::read_rtx_operand): Make virtual and convert return
1009 type from void to rtx.
1010 (rtx_reader::read_until): New decl.
1011 (rtx_reader::handle_any_trailing_information): New virtual function.
1012 (rtx_reader::postprocess): New virtual function.
1013 (rtx_reader::finalize_string): New virtual function.
1014 (rtx_reader::m_in_call_function_usage): New field.
1015 (rtx_reader::m_reuse_rtx_by_id): New field.
1016 * read-rtl-function.c: New file.
1017 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
1018 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
1019 (selftest::verify_three_block_rtl_cfg): New decl.
1020 * read-rtl-function.h: New file.
1021 * read-rtl.c: Potentially include config.h rather than bconfig.h.
1022 For host, include function.h, memmodel.h, and emit-rtl.h.
1023 (one_time_initialization): New function.
1024 (struct compact_insn_name): New struct.
1025 (compact_insn_names): New array.
1026 (find_code): Handle insn codes in compact dumps.
1027 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
1028 (bind_subst_iter_and_attr): Likewise.
1029 (add_condition_to_string): Likewise.
1030 (add_condition_to_rtx): Likewise.
1031 (apply_attribute_uses): Likewise.
1032 (add_current_iterators): Likewise.
1033 (apply_iterators): Likewise.
1034 (initialize_iterators): Guard usage of apply_subst_iterator with
1035 #ifdef GENERATOR_FILE.
1036 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
1037 (md_reader::read_mapping): Likewise.
1038 (add_define_attr_for_define_subst): Likewise.
1039 (add_define_subst_attr): Likewise.
1040 (read_subst_mapping): Likewise.
1041 (check_code_iterator): Likewise.
1042 (rtx_reader::read_rtx): Likewise. Move one-time initialization
1044 (one_time_initialization): New function.
1045 (rtx_reader::read_until): New method.
1046 (read_flags): New function.
1047 (parse_reg_note_name): New function.
1048 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
1049 Handle reuse_rtx ids.
1050 Wrap iterator lookup within #ifdef GENERATOR_FILE.
1051 Add parsing support for RTL dumps, mirroring the special-cases in
1052 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
1053 values, and calling handle_any_trailing_information.
1054 (rtx_reader::read_rtx_operand): Convert return type from void
1055 to rtx, returning return_rtx. Handle case 'e'. Call
1056 finalize_string on XSTR and XTMPL fields.
1057 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
1058 "(nil)" values were omitted. Call the postprocess vfunc on the
1060 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
1061 class ctor. Initialize m_in_call_function_usage. Call
1062 one_time_initialization.
1063 * rtl-tests.c (selftest::test_uncond_jump): Call
1064 set_new_first_and_last_insn.
1065 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
1066 * selftest-rtl.c: New file.
1067 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
1068 (selftest::get_insn_by_uid): New decl.
1069 * selftest-run-tests.c (selftest::run_tests): Call
1070 read_rtl_function_c_tests.
1071 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
1072 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
1075 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
1077 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
1078 operands in a special way. Assert that pos+len <= mode precision.
1080 2017-01-05 Jakub Jelinek <jakub@redhat.com>
1082 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
1083 3 argument Alias with unlimited for the negative form.
1084 (fno-vect-cost-model): Removed.
1086 2017-01-05 Martin Liska <mliska@suse.cz>
1088 * hsa-gen.c (gen_hsa_divmod): New function.
1089 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
1091 2017-01-05 Martin Liska <mliska@suse.cz>
1094 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
1097 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1099 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
1100 small constant length operands.
1102 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1104 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
1105 between loop iterations.
1107 2017-01-05 Martin Liska <mliska@suse.cz>
1110 * gimplify.c (gimplify_decl_expr): Compare to
1111 asan_poisoned_variables instread of checking flags.
1112 (gimplify_target_expr): Likewise.
1113 (gimplify_expr): Likewise.
1114 (gimplify_function_tree): Conditionally initialize
1115 asan_poisoned_variables.
1117 2017-01-04 Jeff Law <law@redhat.com>
1119 PR tree-optimizatin/78812
1120 * rtl.h (contains_mem_rtx_p): Prototype.
1121 * ifcvt.c (containts_mem_rtx_p): Move from here to...
1122 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
1123 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
1124 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
1125 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
1127 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1129 * input.c (assert_char_at_range): Default-initialize actual_range.
1131 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1133 * df-scan.c (df_ref_create_structure): Make regno unsigned,
1134 to match the caller.
1136 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1138 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
1139 insns after final jump in test to emit dummy move.
1141 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1143 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
1144 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
1146 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1148 * multiple_target.c (create_dispatcher_calls): Init e_next.
1149 * tree-ssa-loop-split.c (split_loop): Init border.
1150 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
1153 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1158 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
1159 (altivec_register_operand): Do not return true if the operand
1160 contains a SUBREG mixing SImode and SFmode.
1161 (vsx_register_operand): Likewise.
1162 (vsx_reg_sfsubreg_ok): New predicate.
1163 (vfloat_operand): Do not return true if the operand contains a
1164 SUBREG mixing SImode and SFmode.
1165 (vint_operand): Likewise.
1166 (vlogical_operand): Likewise.
1167 (gpc_reg_operand): Likewise.
1168 (int_reg_operand): Likewise.
1169 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
1170 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
1171 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
1173 (rs6000_emit_move_si_sf_subreg): New helper function.
1174 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
1175 fixup SUBREGs involving SImode and SFmode.
1176 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
1177 numbers for the new peephole2 optimization.
1178 (peephole2 for SFmode unions): New peephole2 to optimize cases in
1179 the GLIBC math library that do AND/IOR/XOR operations on single
1180 precision floating point.
1181 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
1182 target macros to say whether we need to avoid SUBREGs mixing
1184 (TARGET_ALLOW_SF_SUBREG): Likewise.
1185 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
1186 (UNSPEC_SI_FROM_SF): Likewise.
1187 (iorxor): Change spacing.
1188 (and_ior_xor): New iterator for AND, IOR, and XOR.
1189 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
1190 (movdi_from_sf_zero_ext): Likewise.
1191 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
1192 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
1193 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
1194 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
1195 (fms<mode>4): Likewise.
1196 (fnma<mode>4): Likewise.
1197 (fnms<mode>4): Likewise.
1198 (nfma<mode>4): Likewise.
1199 (nfms<mode>4): Likewise.
1201 2017-01-04 Marek Polacek <polacek@redhat.com>
1204 * doc/invoke.texi: Document -Wpointer-compare.
1206 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1208 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
1211 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
1212 descriptions for -gdwarf-5 and emit them as uleb128 instead of
1215 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
1218 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
1219 documentation of the powerpc_popcntb_ok attribute.
1220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1221 code to issue warning messages if a requested CPU configuration is
1222 not supported by the binary (assembler and loader) toolchain.
1223 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
1224 made to define a built-in function that has been disabled.
1225 (paired_init_builtins): Add assertion to prevent ICE if attempt is
1226 made to define a built-in function that has been disabled.
1227 (altivec_init_builtins): Add comment explaining why definition
1228 of the DST built-in functions is not preceded by an assertion
1229 check. Add assertions to prevent ICE if attempts are made to
1230 define an altivec predicate or an abs* built-in function that has
1232 (htm_init_builtins): Add comment explaining why definition of the
1233 htm built-in functions is not preceded by an assertion check.
1235 2017-01-04 Jeff Law <law@redhat.com>
1237 PR tree-optimizatin/67955
1238 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
1239 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
1240 the points-to solution does not include pt_null. Use DECL_PT_UID
1243 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
1245 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
1246 Use gen_int_mode instead of gen_lopwart for const_int operands.
1248 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1250 PR tree-optimization/71563
1251 * match.pd: Simplify X << Y into X if Y is known to be 0 or
1252 out of range value - has low bits known to be zero.
1254 2017-01-04 Alan Modra <amodra@gmail.com>
1256 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
1257 * configure: Regenerate.
1258 * config.in: Regenerate.
1260 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1263 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1264 a substring of the message, but strcmp with the whole message. Ifdef
1265 ENABLE_NLS, translate the message first using dgettext.
1267 2017-01-03 Jeff Law <law@redhat.com>
1269 PR tree-optimizatin/78856
1270 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1271 (mark_threaded_blocks): Remove code to truncate thread paths that
1272 cross multiple loop headers. Instead invalidate the cached loop
1273 iteration information and handle case of a thread path walking
1274 into an irreducible region.
1276 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1279 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1280 assertions. Add support for doing the signbit if the IEEE 128-bit
1281 floating point value is in a GPR.
1282 * config/rs6000/rs6000.md (Fsignbit): Delete.
1283 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1284 Update the length attribute if the value is in a GPR.
1285 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1286 the sign or zero extension instruction, since the value is always 0/1.
1287 (signbit<mode>2_dm2): Delete using <Fsignbit>.
1290 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1291 extracting SImode to a GPR register so that we can generate a
1292 store, limit the vector to be in a traditional Altivec register
1293 for the vextuwrx instruction.
1295 2017-01-03 Ian Lance Taylor <iant@google.com>
1297 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1299 2017-01-03 Martin Sebor <msebor@redhat.com>
1301 PR tree-optimization/78696
1302 * gimple-ssa-sprintf.c (format_floating): Correct handling of
1303 precision. Use MPFR for %f for greater fidelity. Correct handling
1305 (pass_sprintf_length::compute_format_length): Set width and precision
1306 specified by asrerisk to void_node for vararg functions.
1307 (try_substitute_return_value): Adjust dump output.
1309 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
1311 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1313 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
1315 * doc/invoke.texi (SPARC options): Document -mlra as the default.
1316 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1317 -mlra/-mno-lra was passed to the compiler.
1319 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
1321 PR rtl-optimization/65618
1322 * emit-rtl.c (try_split): Move initialization of "before" and
1323 "after" to just before the call to emit_insn_after_setloc.
1325 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1327 * doc/md.texi (Standard Names): Remove reference to Java frontend.
1329 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
1331 * dwarf2out.c (gen_enumeration_type_die): When
1332 -gno-strict-dwarf, add a DW_AT_encoding attribute.
1334 2017-01-03 Jakub Jelinek <jakub@redhat.com>
1336 PR tree-optimization/78965
1337 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1338 Change first argument from const call_info & to call_info &. For %n
1339 set info.nowrite to false.
1342 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1343 possibly throwing calls.
1345 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1346 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1347 and fns handling, rather than in a separate case SSA_NAME.
1349 2017-01-02 Jeff Law <law@redhat.com>
1351 * config/darwin-driver.c (darwin_driver_init): Const-correctness
1352 fixes for first_period and second_period variables.
1354 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
1357 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1358 (*insvqi_1): New insn pattern.
1359 (*insvqi_1_mem_rex64): Ditto.
1361 (*insvqi_3): Rename from *insvqi.
1363 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
1365 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1367 * doc/cfg.texi (Edges): Remove reference to Java.
1368 (Maintaining the CFG): Ditto.
1370 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1373 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
1374 transparent aliases.
1376 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1379 * predict.def (PRED_CALL): Update hitrate.
1380 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
1381 * predict.c (tree_estimate_probability_bb): Split CALL predictor
1382 into direct/indirect/polymorphic variants.
1384 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1386 Update copyright years.
1388 * gcc.c (process_command): Update copyright notice dates.
1389 * gcov-dump.c (print_version): Ditto.
1390 * gcov.c (print_version): Ditto.
1391 * gcov-tool.c (print_version): Ditto.
1392 * gengtype.c (create_file): Ditto.
1393 * doc/cpp.texi: Bump @copying's copyright year.
1394 * doc/cppinternals.texi: Ditto.
1395 * doc/gcc.texi: Ditto.
1396 * doc/gccint.texi: Ditto.
1397 * doc/gcov.texi: Ditto.
1398 * doc/install.texi: Ditto.
1399 * doc/invoke.texi: Ditto.
1401 Copyright (C) 2017 Free Software Foundation, Inc.
1403 Copying and distribution of this file, with or without modification,
1404 are permitted in any medium without royalty provided the copyright
1405 notice and this notice are preserved.