1 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4 * configure.ac: Add GCC_BASE_VER.
5 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
6 version from BASE-VER file.
7 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
8 (gcc.o): Depend on $(BASEVER).
9 * common.opt (dumpfullversion): New option.
10 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
11 * doc/invoke.texi: Document -dumpfullversion.
12 * doc/install.texi: Document --with-gcc-major-version-only.
13 * configure: Regenerated.
15 2017-01-17 Richard Biener <rguenther@suse.de>
17 PR tree-optimization/71433
18 * tree-vrp.c (register_new_assert_for): Merge same asserts
19 on all incoming edges.
20 (process_assert_insertions_for): Handle insertions at the
23 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
25 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
26 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
28 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
31 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
34 2017-01-17 Alan Modra <amodra@gmail.com>
37 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
38 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
39 symbolic stack limit when pic.
41 2017-01-16 Martin Sebor <msebor@redhat.com>
43 PR tree-optimization/78608
44 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
46 2017-01-16 Jeff Law <law@redhat.com>
49 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
50 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
51 for several include directories that may be relative to sysroot.
52 * config/i386/x-mingw32 (gplus_includedir): Define.
53 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
54 (native_system_includedir): Likewise.
55 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
56 override if TARGET_SYSTEM_ROOT is defined.
57 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
59 PR tree-optimization/79090
60 PR tree-optimization/33562
61 PR tree-optimization/61912
62 PR tree-optimization/77485
63 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
64 and computed trims into the dump file.
66 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
68 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
70 2017-01-16 Jakub Jelinek <jakub@redhat.com>
73 * gimplify.c (gimplify_init_constructor): If want_value and
74 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
78 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
79 sequence. Formatting fixes.
80 (doloop_optimize): Formatting fixes.
83 * gcc.c (debug_level_greater_than_spec_func): New function.
84 (static_spec_functions): Add debug-level-gt spec function.
85 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
87 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
88 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
89 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
90 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
91 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
92 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
94 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
96 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
97 QImode fixups to general and mask registers only.
99 2017-01-16 Carl Love <cel@us.ibm.com>
101 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
102 for built-in functions
103 vector signed char vec_nabs (vector signed char)
104 vector signed short vec_nabs (vector signed short)
105 vector signed int vec_nabs (vector signed int)
106 vector signed long long vec_nabs (vector signed long long)
107 vector float vec_nabs (vector float)
108 vector double vec_nabs (vector double)
109 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
111 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
112 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
113 * doc/extend.texi: Update the documentation file for the new built-in
116 2017-01-16 Martin Sebor <msebor@redhat.com>
118 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
121 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
123 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
124 UNSPEC_VSX__XXSPLTD to require special splat handling.
126 2017-01-16 David Malcolm <dmalcolm@redhat.com>
129 * system.h: Poison strndup.
131 2017-01-16 Alan Modra <amodra@gmail.com>
134 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
137 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
139 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
141 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
143 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
144 call recog here. Assert that INSN_CODE (insn) is non-negative.
146 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
149 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
151 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
152 in the currently scheduled RTL fragment.
154 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
156 PR rtl-optimization/78751
157 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
160 2017-01-14 Jeff Law <law@redhat.com>
162 PR tree-optimization/79090
163 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
164 variable length stores.
165 (compute_trims): Delete dead assignment to *trim_tail.
166 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
169 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
171 PR rtl-optimization/78626
172 PR rtl-optimization/78727
173 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
174 of a block, and split such blocks after everything else is finished.
176 2017-01-14 Alan Modra <amodra@gmail.com>
179 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
180 target legitimate_combined_insn.
181 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
182 (rs6000_legitimate_combined_insn): New function.
183 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
185 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
186 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
187 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
189 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
191 * doc/frontends.texi (G++ and GCC): Remove references to Java.
193 2017-01-13 Jeff Law <law@redhat.com>
195 PR tree-optimization/33562
196 PR tree-optimization/61912
197 PR tree-optimization/77485
198 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
200 (delete_dead_assignment): Likewise.
201 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
202 statement to delete_dead_call and delete_dead_assignment.
204 2017-01-13 David Malcolm <dmalcolm@redhat.com>
207 * substring-locations.c (format_warning_va): Strengthen case 1 so
208 that both endpoints of the substring must be within the format
209 range for just the substring to be printed.
211 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
213 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
214 * config/i386/i386.c (ix86_target_string): Add missing options
215 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
216 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
217 flags_other and ix86_target_other to flags2_other. Display unknown
219 (ix86_valid_target_attribute_inner_p): Add missing options and
220 reorder options by implied ISAs, as in ix86_target_string.
222 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
224 * hash-table.h (hash_table::too_empty_p): New function.
225 (hash_table::expand): Use it.
226 (hash_table::traverse): Likewise.
227 (hash_table::empty_slot): Use sizeof (value_type) instead of
228 sizeof (PTR) to convert bytes to elements. Shrink the table
229 if the current size is excessive for the current number of
232 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
234 * ira-costs.c (record_reg_classes): Break from the inner loop
235 early once alt_fail is known to be true. Update outer loop
236 handling accordingly.
238 2017-01-13 Jeff Law <law@redhat.com>
240 * tree-ssa-dse.c (decrement_count): New function.
241 (increment_start_addr, maybe_trim_memstar_call): Likewise.
242 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
243 when we know the partially dead statement is a mem* function.
245 PR tree-optimization/61912
246 PR tree-optimization/77485
247 * tree-ssa-dse.c: Include expr.h.
248 (maybe_trim_constructor_store): New function.
249 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
251 PR tree-optimization/33562
252 PR tree-optimization/61912
253 PR tree-optimization/77485
254 * doc/invoke.texi: Document new dse-max-object-size param.
255 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
256 * tree-ssa-dse.c: Include params.h.
257 (dse_store_status): New enum.
258 (initialize_ao_ref_for_dse): New, partially extracted from
260 (valid_ao_ref_for_dse, normalize_ref): New.
261 (setup_live_bytes_from_ref, compute_trims): Likewise.
262 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
263 (maybe_trim_partially_dead_store): Likewise.
264 (maybe_trim_complex_store): Likewise.
265 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
266 Track what bytes live from the original store. Return tri-state
267 for dead, partially dead or live.
268 (dse_dom_walker): Add constructor, destructor and new private members.
269 (delete_dead_call, delete_dead_assignment): New extracted from
271 (dse_optimize_stmt): Make a member of dse_dom_walker.
272 Use initialize_ao_ref_for_dse.
274 PR tree-optimization/33562
275 PR tree-optimization/61912
276 PR tree-optimization/77485
277 * sbitmap.h (bitmap_count_bits): Prototype.
278 (bitmap_clear_range, bitmap_set_range): Likewise.
279 * sbitmap.c (bitmap_clear_range): New function.
280 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
282 2017-01-13 Martin Liska <mliska@suse.cz>
285 * function.c (set_cfun): Add new argument force.
286 * function.h (set_cfun): Likewise.
287 * ipa-inline-transform.c (inline_call): Use the function when
288 strict alising from is dropped for function we inline to.
290 2017-01-13 Richard Biener <rguenther@suse.de>
292 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
293 for dumping GIMPLE INTEGER_CSTs.
295 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
297 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
298 to 201112L since C++17.
300 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
303 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
304 if -fsanitize=kernel-address is present.
306 2017-01-13 Richard Biener <rguenther@suse.de>
308 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
309 as _Literal ( type ) number in case usual suffixes do not
310 preserve all information.
312 2017-01-13 Richard Biener <rguenther@suse.de>
314 PR tree-optimization/77283
315 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
317 (is_feasible_trace): Implement a cost model based on joiner
320 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
323 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
324 char or short to __float128/_Float128 directly.
326 2017-01-12 Martin Sebor <msebor@redhat.com>
328 to -Wformat-overflow.
329 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
330 (min_bytes_remaining): Same.
331 (get_string_length): Same.
332 (format_string): Same.
333 (format_directive): Same.
335 (pass_sprintf_length::handle_gimple_call): Same.
337 2017-01-12 Jakub Jelinek <jakub@redhat.com>
339 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
340 info.nowrite calls with no lhs that can't throw. Return bool
341 whether gsi_remove has been called or not.
342 (pass_sprintf_length::handle_gimple_call): Return bool whether
343 try_substitute_return_value called gsi_remove. Formatting fix.
344 (pass_sprintf_length::execute): Don't use gsi_remove if
345 handle_gimple_call returned true.
348 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
349 be removed due to side-effects, don't remove following barrier nor
350 turn the successor edge into fallthru edge.
352 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
355 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
356 element-reversing loads and stores as not swappable.
358 2017-01-12 Nathan Sidwell <nathan@acm.org>
359 Nicolai Stange <nicstange@gmail.com>
361 * combine.c (try_combine): Don't ignore result of overlap checking
362 loop. Combine overlap & asm check into single loop.
364 2017-01-12 Richard Biener <rguenther@suse.de>
366 * tree-pretty-print.c (dump_generic_node): Provide -gimple
367 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
369 2017-01-12 Richard Biener <rguenther@suse.de>
371 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
372 and TS_TARGET_OPTION directly derive from TS_BASE.
373 * tree-core.h (tree_optimization_option): Derive from tree_base.
374 (tree_target_option): Likewise.
376 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
378 * config/i386/i386.c (memory_address_length): Increase len
379 only when rip_relative_addr_p returns false.
381 2017-01-11 Julia Koval <julia.koval@intel.com>
383 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
384 (OPTION_MASK_ISA_SGX_SET): New.
385 (ix86_handle_option): Handle OPT_msgx.
386 * config.gcc: Added sgxintrin.h.
387 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
388 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
389 * config/i386/i386.c (ix86_target_string): Add -msgx.
391 (ix86_option_override_internal): Handle new options.
392 (ix86_valid_target_attribute_inner_p): Add sgx.
393 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
394 * config/i386/i386.opt: Add msgx.
395 * config/i386/sgxintrin.h: New file.
396 * config/i386/x86intrin.h: Add sgxintrin.h.
398 2017-01-11 Jakub Jelinek <jakub@redhat.com>
401 * fold-const.c (maybe_nonzero_address): Return 1 for function
403 (tree_single_nonzero_warnv_p): Don't handle function local objects
407 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
410 2017-01-11 David Malcolm <dmalcolm@redhat.com>
413 * opts.c: Include "spellcheck.h"
414 (struct string_fragment): New struct.
415 (struct edit_distance_traits<const string_fragment &>): New
417 (get_closest_sanitizer_option): New function.
418 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
420 2017-01-11 Jakub Jelinek <jakub@redhat.com>
422 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
424 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
425 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
426 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
427 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
428 for initial die_offset if dwarf_split_debug_info.
429 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
430 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
432 (output_skeleton_debug_sections): Formatting fix. Use
433 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
434 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
436 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
438 * config/arm/cortex-a53.md: Add bypasses for
440 (cortex_a53_r2f): Only use for transfers.
441 (cortex_a53_f2r): Likewise.
442 (cortex_a53_r2f_cvt): Add reservation for conversions.
443 (cortex_a53_f2r_cvt): Likewise.
445 2017-01-11 Tamar Christina <tamar.christina@arm.com>
447 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
448 to all inlined functions, change static to extern.
450 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
453 * config/arm/arm.c (legitimize_pic_address): Handle reference to
455 (arm_assemble_integer): Likewise.
457 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
459 * config.gcc: Use new awk script to check CPU, FPU and architecture
460 parameters for --with-... options.
461 * config/arm/parsecpu.awk: New file
462 * config/arm/arm-cpus.in: New file.
463 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
465 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
467 * config/arm/t-arm: Update dependency rules.
468 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
469 of processing .def files.
470 * config/arm/genopt.sh: Deleted.
471 * config/arm/gentune.sh: Deleted.
472 * config/arm/arm-cores.def: Deleted.
473 * config/arm/arm-arches.def: Deleted.
474 * config/arm/arm-fpus.def: Deleted.
475 * config/arm/arm-tune.md: Regenerated.
476 * config/arm/arm-tables.opt: Regenerated.
477 * config/arm/arm-cpu.h: New generated file.
478 * config/arm/arm-cpu-data.h: New generated file.
479 * config/arm/arm-cpu-cdata.h: New generated file.
481 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
484 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
486 (input_varpool_node): Unpack dynamically_initialized bit.
488 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
490 PR rtl-optimization/79032
491 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
492 the alignment of the adjusted memory reference against that of MODE,
493 instead of the alignment of the original memory reference.
495 2017-01-11 Martin Jambor <mjambor@suse.cz>
497 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
499 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
502 2017-01-11 Richard Biener <rguenther@suse.de>
504 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
505 set range/nonnull info for PHI results. Do not set it on
506 stmts marked for removal.
508 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
510 * expr.c (store_field): In the bitfield case, fetch the return value
511 from the registers before applying a single big-endian adjustment.
512 Always do a final load for a BLKmode value not larger than a word.
514 2017-01-10 David Malcolm <dmalcolm@redhat.com>
517 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
518 that we correctly handle column numbers greater than
519 LINE_MAP_MAX_COLUMN_NUMBER.
521 2017-01-10 Martin Sebor <msebor@redhat.com>
524 * gimple-ssa-sprintf.c (get_destination_size): Call
525 {init,fini}object_sizes.
526 * tree-object-size.c (addr_object_size): Adjust.
527 (pass_through_call): Adjust.
528 (pass_object_sizes::execute): Adjust.
529 * tree-object-size.h (fini_object_sizes): Declare.
531 2017-01-10 Martin Sebor <msebor@redhat.com>
533 PR tree-optimization/78775
534 * builtins.c (get_size_range): Move...
535 * calls.c: ...to here.
536 (alloc_max_size): Accept zero argument.
537 (operand_signed_p): Remove.
538 (maybe_warn_alloc_args_overflow): Call get_size_range.
539 * calls.h (get_size_range): Declare.
541 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
543 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
544 from TI's devices.csv file as of September 2016.
545 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
547 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
549 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
550 * doc/invoke.texi: Likewise.
551 * doc/md.texi: Likewise.
552 * doc/objc.texi: Likewise.
554 2017-01-10 Joshua Conner <joshconner@google.com>
556 * config/arm/fuchsia-elf.h: New file.
557 * config/fuchsia.h: New file.
558 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
559 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
561 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
563 2016-01-10 Richard Biener <rguenther@suse.de>
565 PR tree-optimization/79034
566 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
567 Propagate out degenerate PHIs in the joiner.
569 2017-01-10 Martin Liska <mliska@suse.cz>
571 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
572 (sort_congruence_classes_by_decl_uid): Likewise.
573 (sort_congruence_class_groups_by_decl_uid): Likewise.
574 (sem_item_optimizer::merge_classes): Sort class, groups in these
575 classes and members in the groups by DECL_UID of declarations.
576 This would make merge operations stable.
578 2017-01-10 Martin Liska <mliska@suse.cz>
580 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
581 usage of m_classes_vec.
582 (sem_item_optimizer::~sem_item_optimizer): Likewise.
583 (sem_item_optimizer::get_group_by_hash): Likewise.
584 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
585 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
586 (sem_item_optimizer::verify_classes): Likewise.
587 (sem_item_optimizer::process_cong_reduction): Likewise.
588 (sem_item_optimizer::dump_cong_classes): Likewise.
589 (sem_item_optimizer::merge_classes): Likewise.
590 * ipa-icf.h (congruence_class_hash): Rename from
591 congruence_class_group_hash. Remove declaration of m_classes_vec.
593 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
595 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
596 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
597 * config.gcc: Add avx512vpopcntdqintrin.h.
598 * config/i386/avx512vpopcntdqintrin.h: New.
599 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
600 * config/i386/i386-builtin-types.def: Add new types.
601 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
602 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
603 __builtin_ia32_vpopcountq_v8di_mask): New.
604 * config/i386/i386-c.c (ix86_target_macros_internal): Define
606 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
607 (PTA_AVX512VPOPCNTDQ): Define.
608 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
609 TARGET_AVX512VPOPCNTDQ_P): Define.
610 * config/i386/i386.opt: Add mavx512vpopcntdq.
611 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
612 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
614 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
617 * predict.def (PRED_CALL): Set to 67.
619 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
621 * expr.c (store_field): In the bitfield case, if the value comes from
622 a function call and is of an aggregate type returned in registers, do
623 not modify the field mode; extract the value in all cases if the mode
624 is BLKmode and the size is not larger than a word.
626 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
629 * config/i386/cpuid.h: Fix undefined behavior.
631 2017-01-04 Jeff Law <law@redhat.com>
633 PR tree-optimization/79007
634 PR tree-optimization/67955
635 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
636 conservative for pt.null when flag_non_call_exceptions is on.
638 2017-01-09 Jakub Jelinek <jakub@redhat.com>
642 * params.def (PARAM_INLINE_MIN_SPEEDUP,
643 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
644 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
646 * config/avr/avr.opt (maccumulate-args): Likewise.
647 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
648 * common.opt (freport-bug): Likewise.
649 * cif-code.def (CIF_FINAL_ERROR): Likewise.
650 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
651 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
653 * config/i386/i386.c (function_value_32): Likewise.
654 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
655 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
657 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
658 * common/config/msp430/msp430-common.c (msp430_handle_option):
660 * symtab.c (symtab_node::verify_base): Likewise.
661 * opts.c (set_debug_level): Likewise.
662 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
663 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
664 missing whitespace to translatable strings.
665 * config/avr/avr.md (bswapsi2): Fix typo in comment.
666 * config/sh/superh.h: Likewise.
667 * config/i386/xopintrin.h: Likewise.
668 * config/i386/znver1.md: Likewise.
669 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
670 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
671 * double-int.h (struct double_int): Likewise.
672 * double-int.c (div_and_round_double): Likewise.
673 * wide-int.cc: Likewise.
674 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
675 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
676 * cfgcleanup.c (crossjumps_occured): Renamed to ...
677 (crossjumps_occurred): ... this.
678 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
681 PR tree-optimization/78899
682 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
683 returning bool return struct loop *, NULL for failure and the new
685 (versionable_outer_loop_p): Don't version outer loop if it has
686 dont_vectorized bit set.
687 (tree_if_conversion): When versioning outer loop, ensure
688 tree_if_conversion is performed also on the inner loop of the
689 non-vectorizable outer loop copy.
690 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
691 LOOP_VECTORIZED in inner loop of the scalar outer loop and
692 prevent vectorization of it.
693 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
694 the outer loop vectorization of the non-scalar version is attempted
695 before vectorization of the inner loop in scalar version. If
696 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
697 vectorization of its inner loop.
698 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
699 has 2 inner loops, rename also on edges from bb whose single pred
700 is outer_loop->header. Fix typo in function comment.
702 2017-01-09 Martin Sebor <msebor@redhat.com>
705 * asan.c (asan_emit_stack_protection): Increase local buffer size
706 to avoid snprintf truncation warning.
708 2017-01-09 Andrew Pinski <apinski@cavium.com>
710 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
711 to reference thunderx2t99 for the tuning structure
712 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
714 (thunderx2t99_extra_costs): This.
715 * config/aarch64/aarch64-tune.md: Regenerate.
716 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
717 (vulcan_addrcost_table): This.
718 (vulcan_regmove_cost): Rename to ...
719 (thunderx2t99_regmove_cost): This.
720 (vulcan_vector_cost): Rename to ...
721 (thunderx2t99_vector_cost): this.
722 (vulcan_branch_cost): Rename to ...
723 (thunderx2t99_branch_cost): This.
724 (vulcan_tunings): Rename to ...
725 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
726 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
728 2017-01-09 Martin Jambor <mjambor@suse.cz>
732 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
733 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
734 (propagate_vr_accross_jump_function): Use the above function for all
735 value range computations for pass-through jump functions and type
736 converasion from explicit value range values.
737 (ipcp_propagate_stage): Do not attempt to deduce types of formal
738 parameters from TYPE_ARG_TYPES.
739 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
740 (ipa_write_node_info): Stream type of the actual argument.
741 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
743 2017-01-09 Martin Liska <mliska@suse.cz>
746 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
747 (lookup_compiler): Do not show error message with have_E.
749 2017-01-09 Jakub Jelinek <jakub@redhat.com>
751 PR tree-optimization/78938
752 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
753 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
754 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
755 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
758 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
760 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
763 2017-01-09 Richard Biener <rguenther@suse.de>
765 PR tree-optimization/78997
766 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
767 name condition properly.
769 2017-01-09 Richard Biener <rguenther@suse.de>
772 * dwarf2out.c (is_cxx): New overload with context.
773 (is_naming_typedef_decl): Use it.
775 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
777 * invoke.texi (Option Summary): Correct spacing in option lists
778 and add line breaks to fix over-long lines.
780 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
784 * extend.texi (Common Variable Attributes): Add xref to GCC
785 Internals manual to explain mode attribute keywords.
787 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
790 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
791 and Preprocessor Options.
792 (Options for Linking): Document -pthread here....
793 (RS/6000 and PowerPC Options): ...not here.
794 (Solaris 2 Options): ...or here.
795 * doc/cppopts.texi: Document -pthread.
797 2017-01-08 Martin Sebor <msebor@redhat.com>
800 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
801 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
802 New member functions.
803 (format_directive): Used them.
805 (pass_sprintf_length::handle_gimple_call): Same.
806 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
807 to avoid truncation for any argument.
808 (extract_affine_mul): Same.
809 * tree.c (get_file_function_name): Same.
811 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
814 * predict.def (PRED_INDIR_CALL): Set to 86.
816 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
818 PR preprocessor/54124
819 * doc/cppopts.texi: Reformat -d subtable to list the full name
820 of the options. Add cross-reference to the docs for the general
822 * doc/invoke.texi (Developer Options): Add cross-reference to the
823 preprocessor-specific -d option documentation.
825 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
827 PR preprocessor/13498
828 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
829 redudant material, and reflect new command-line options.
830 (System Headers): Likewise.
832 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
834 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
835 -isystem, and -idirafter. Copy-edit.
836 * doc/cppopts.texi: Copy-edit. Remove contradiction about
837 default for -ftrack-macro-expansion. Delete obsolete and
838 badly-formatted implementation details about -fdebug-cpp output.
839 * doc/cppwarnopts.texi: Copy-edit.
841 2017-01-07 David Malcolm <dmalcolm@redhat.com>
844 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
845 that the transition from a max line width >= 1<<10 to narrower
846 lines works correctly.
848 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
850 * doc/options.texi (PerFunction): New.
851 * opt-functions.awk (switch_flags): Map both Optimization and
852 PerFunction to CL_OPTIMIZATION.
853 * opth-gen.awk: Test for PerFunction flag along with
855 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
856 it only when the latter is present. Skip those that don't in
857 the hash function generator.
858 * common.opt (fvar-tracking): Mark as PerFunction instead of
860 (fvar-tracking-assignments): Likewise.
861 (fvar-tracking-assignments-toggle): Likewise.
862 (fvar-tracking-uninit): Likewise.
864 2017-01-07 Jakub Jelinek <jakub@redhat.com>
867 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
870 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
873 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
874 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
875 TARGET_LONG_JUMP_TABLE_OFFSETS.
876 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
877 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
878 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
879 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
880 * config/m68k/m68k.md (tablejump expander): Likewise.
881 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
882 TARGET_LONG_JUMP_TABLE_OFFSETS.
883 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
884 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
886 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
887 David Holsgrove <david.holsgrove@xilinx.com>
889 * common/config/microblaze/microblaze-common.c
890 (TARGET_EXCEPT_UNWIND_INFO): Remove.
891 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
893 * config/microblaze/microblaze.c (microblaze_must_save_register)
894 (microblaze_expand_epilogue, microblaze_return_addr): Handle
896 (microblaze_eh_return): New function.
897 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
898 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
899 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
900 * config/microblaze/microblaze.md (eh_return): New pattern.
902 2017-01-06 Jakub Jelinek <jakub@redhat.com>
904 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
905 GCC_DIAGNOSTIC_STRINGIFY): Define.
907 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
909 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
911 * config/arm/arm.md (<mcrr>): New.
913 * config/arm/arm.c (arm_arch5te): New.
914 (arm_option_override): Set arm_arch5te.
915 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
917 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
918 (arm_mcrr_qualifiers): ... this. New.
919 (MRRC_QUALIFIERS): Define to...
920 (arm_mrrc_qualifiers): ... this. New.
921 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
923 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
924 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
925 (MRRCI, mrrc, MRRC): New.
926 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
929 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
931 * config/arm/arm.md (<mcr>): New.
933 * config/arm/arm.c (arm_coproc_builtin_available): Add
934 support for mcr, mrc, mcr2 and mrc2.
935 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
936 (arm_mcr_qualifiers): ... this. New.
937 (MRC_QUALIFIERS): Define to ...
938 (arm_mrc_qualifiers): ... this. New.
939 (MCR_QUALIFIERS): Define to ...
940 (arm_mcr_qualifiers): ... this. New.
941 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
943 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
944 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
945 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
948 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
950 * config/arm/arm.md (*ldc): New.
954 * config/arm/arm.c (arm_coproc_builtin_available): Add
955 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
956 (arm_coproc_ldc_stc_legitimate_address): New.
957 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
958 'qualifier_const_pointer'.
959 (LDC_QUALIFIERS): Define to...
960 (arm_ldc_qualifiers): ... this. New.
961 (STC_QUALIFIERS): Define to...
962 (arm_stc_qualifiers): ... this. New.
963 * config/arm/arm-protos.h
964 (arm_coproc_ldc_stc_legitimate_address): New.
965 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
966 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
967 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
968 stc2, stcl, stc2l): New.
969 * config/arm/constraints.md (Uz): New.
970 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
971 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
972 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
975 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
977 * config/arm/arm.md (<cdp>): New.
978 * config/arm/arm.c (neon_const_bounds): Rename this ...
979 (arm_const_bounds): ... this.
980 (arm_coproc_builtin_available): New.
981 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
982 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
983 (CDP_QUALIFIERS): Define to...
984 (arm_cdp_qualifiers): ... this. New.
986 (arm_expand_builtin_args): Add case for 6 arguments.
987 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
988 (arm_const_bounds): ... this.
989 (arm_coproc_builtin_available): New.
990 * config/arm/arm_acle.h (__arm_cdp): New.
992 * config/arm/arm_acle_builtins.def (cdp): New.
994 * config/arm/iterators.md (CDPI,CDP,cdp): New.
995 * config/arm/neon.md: Rename all 'neon_const_bounds' to
997 * config/arm/types.md (coproc): New.
998 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
999 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
1000 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
1001 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
1003 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1005 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
1006 (UBINOP_QUALIFIERS): New.
1008 (acle_builtin_data): New. Change comment.
1009 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
1010 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
1011 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
1012 arm_acle_builtins.def.
1013 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
1014 (arm_init_acle_builtins): New.
1015 (CRC32_BUILTIN): Remove.
1016 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
1017 crc32cb, crc32ch and crc32cw.
1018 (arm_init_crc32_builtins): Remove.
1019 (arm_init_builtins): Use arm_init_acle_builtins rather
1020 than arm_init_crc32_builtins.
1021 (arm_expand_acle_builtin): New.
1022 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
1023 * config/arm/arm_acle_builtins.def: New.
1025 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
1027 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
1028 (arm_builtin_datum): ... this.
1029 (arm_init_neon_builtin): Rename to ...
1030 (arm_init_builtin): ... this. Add a new parameters PREFIX
1031 and USE_SIG_IN_NAME.
1032 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
1033 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
1034 'arm_builtin_datum'.
1035 (arm_init_vfp_builtins): Likewise.
1036 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
1037 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
1038 (arm_expand_neon_args): Rename to ...
1039 (arm_expand_builtin_args): ... this. Rename builtin_arg
1040 enum values and differentiate between ARG_BUILTIN_MEMORY
1041 and ARG_BUILTIN_NEON_MEMORY.
1042 (arm_expand_neon_builtin_1): Rename to ...
1043 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
1044 values, arm_expand_builtin_args and add bool parameter NEON.
1045 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
1046 (arm_expand_vfp_builtin): Likewise.
1047 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
1049 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1052 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
1053 * predict.c (tree_estimate_probability_bb): Reverse direction of
1054 polymorphic call predictor.
1056 2017-01-06 David Malcolm <dmalcolm@redhat.com>
1058 * passes.c (execute_one_pass): Split out pass-skipping logic into...
1059 (determine_pass_name_match): ...this new function and...
1060 (should_skip_pass_p): ...this new function.
1062 2017-01-06 Nathan Sidwell <nathan@acm.org>
1064 * ipa-visibility.c (function_and_variable_visibility): Reformat
1065 comments and long lines. Remove extrneous if.
1066 * symtab.c (symtab_node::make_decl_local): Fix code format.
1067 (symtab_node::set_section_for_node): Fix comment typo.
1069 2017-01-06 Martin Liska <mliska@suse.cz>
1072 * lra-constraints.c: Rename invariant to lra_invariant.
1073 * predict.c (set_even_probabilities): Initialize e to NULL.
1075 2017-01-05 Martin Sebor <msebor@redhat.com>
1077 PR tree-optimization/78910
1078 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
1079 (format_integer): Correct off-by-one error in the handling
1080 of precision with negative numbers in signed conversions..
1082 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1084 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
1086 2017-01-05 Jakub Jelinek <jakub@redhat.com>
1088 PR tree-optimization/71016
1089 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
1090 factor_out_conditional_conversion. Formatting fix.
1091 (factor_out_conditional_conversion): Add cond_stmt argument.
1092 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
1093 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
1096 2017-01-05 David Malcolm <dmalcolm@redhat.com>
1098 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
1099 read-rtl-function.o, and selftest-rtl.o.
1100 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
1101 (selftest::aarch64_test_loading_full_dump): New function.
1102 (selftest::aarch64_run_selftests): New function.
1103 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
1104 selftest::aarch64_run_selftests.
1105 * config/i386/i386.c
1106 (selftest::ix86_test_loading_dump_fragment_1): New function.
1107 (selftest::ix86_test_loading_call_insn): New function.
1108 (selftest::ix86_test_loading_full_dump): New function.
1109 (selftest::ix86_test_loading_unspec): New function.
1110 (selftest::ix86_run_selftests): Call the new functions.
1111 * emit-rtl.c (maybe_set_max_label_num): New function.
1112 * emit-rtl.h (maybe_set_max_label_num): New decl.
1113 * function.c (instantiate_decls): Guard call to
1114 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
1115 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
1117 * gensupport.c (gen_reader::gen_reader): Pass "false"
1118 for new "compact" param of rtx_reader.
1119 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
1120 rather than an empty string for NULL strings.
1121 * read-md.c: Potentially include config.h rather than bconfig.h.
1122 Wrap include of errors.h with #ifdef GENERATOR_FILE.
1123 (have_error): New global, copied from errors.c.
1124 (md_reader::read_name): Rename to...
1125 (md_reader::read_name_1): ...this, adding "out_loc" param,
1126 and converting "missing name or number" to returning false, rather
1128 (md_reader::read_name): Reimplement in terms of read_name_1.
1129 (md_reader::read_name_or_nil): New function.
1130 (md_reader::read_string): Handle "(nil)" by returning NULL.
1131 (md_reader::md_reader): Add new param "compact".
1132 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
1133 (md_reader::read_file): New method.
1134 * read-md.h (md_reader::md_reader): Add new param "compact".
1135 (md_reader::read_file): New method.
1136 (md_reader::is_compact): New accessor.
1137 (md_reader::read_name): Convert return type from void to file_location.
1138 (md_reader::read_name_or_nil): New decl.
1139 (md_reader::read_name_1): New decl.
1140 (md_reader::m_compact): New field.
1141 (noop_reader::noop_reader): Pass "false" for new "compact" param
1143 (rtx_reader::rtx_reader): Add new "compact" param.
1144 (rtx_reader::read_rtx_operand): Make virtual and convert return
1145 type from void to rtx.
1146 (rtx_reader::read_until): New decl.
1147 (rtx_reader::handle_any_trailing_information): New virtual function.
1148 (rtx_reader::postprocess): New virtual function.
1149 (rtx_reader::finalize_string): New virtual function.
1150 (rtx_reader::m_in_call_function_usage): New field.
1151 (rtx_reader::m_reuse_rtx_by_id): New field.
1152 * read-rtl-function.c: New file.
1153 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
1154 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
1155 (selftest::verify_three_block_rtl_cfg): New decl.
1156 * read-rtl-function.h: New file.
1157 * read-rtl.c: Potentially include config.h rather than bconfig.h.
1158 For host, include function.h, memmodel.h, and emit-rtl.h.
1159 (one_time_initialization): New function.
1160 (struct compact_insn_name): New struct.
1161 (compact_insn_names): New array.
1162 (find_code): Handle insn codes in compact dumps.
1163 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
1164 (bind_subst_iter_and_attr): Likewise.
1165 (add_condition_to_string): Likewise.
1166 (add_condition_to_rtx): Likewise.
1167 (apply_attribute_uses): Likewise.
1168 (add_current_iterators): Likewise.
1169 (apply_iterators): Likewise.
1170 (initialize_iterators): Guard usage of apply_subst_iterator with
1171 #ifdef GENERATOR_FILE.
1172 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
1173 (md_reader::read_mapping): Likewise.
1174 (add_define_attr_for_define_subst): Likewise.
1175 (add_define_subst_attr): Likewise.
1176 (read_subst_mapping): Likewise.
1177 (check_code_iterator): Likewise.
1178 (rtx_reader::read_rtx): Likewise. Move one-time initialization
1180 (one_time_initialization): New function.
1181 (rtx_reader::read_until): New method.
1182 (read_flags): New function.
1183 (parse_reg_note_name): New function.
1184 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
1185 Handle reuse_rtx ids.
1186 Wrap iterator lookup within #ifdef GENERATOR_FILE.
1187 Add parsing support for RTL dumps, mirroring the special-cases in
1188 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
1189 values, and calling handle_any_trailing_information.
1190 (rtx_reader::read_rtx_operand): Convert return type from void
1191 to rtx, returning return_rtx. Handle case 'e'. Call
1192 finalize_string on XSTR and XTMPL fields.
1193 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
1194 "(nil)" values were omitted. Call the postprocess vfunc on the
1196 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
1197 class ctor. Initialize m_in_call_function_usage. Call
1198 one_time_initialization.
1199 * rtl-tests.c (selftest::test_uncond_jump): Call
1200 set_new_first_and_last_insn.
1201 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
1202 * selftest-rtl.c: New file.
1203 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
1204 (selftest::get_insn_by_uid): New decl.
1205 * selftest-run-tests.c (selftest::run_tests): Call
1206 read_rtl_function_c_tests.
1207 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
1208 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
1211 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
1213 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
1214 operands in a special way. Assert that pos+len <= mode precision.
1216 2017-01-05 Jakub Jelinek <jakub@redhat.com>
1218 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
1219 3 argument Alias with unlimited for the negative form.
1220 (fno-vect-cost-model): Removed.
1222 2017-01-05 Martin Liska <mliska@suse.cz>
1224 * hsa-gen.c (gen_hsa_divmod): New function.
1225 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
1227 2017-01-05 Martin Liska <mliska@suse.cz>
1230 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
1233 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1235 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
1236 small constant length operands.
1238 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1240 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
1241 between loop iterations.
1243 2017-01-05 Martin Liska <mliska@suse.cz>
1246 * gimplify.c (gimplify_decl_expr): Compare to
1247 asan_poisoned_variables instread of checking flags.
1248 (gimplify_target_expr): Likewise.
1249 (gimplify_expr): Likewise.
1250 (gimplify_function_tree): Conditionally initialize
1251 asan_poisoned_variables.
1253 2017-01-04 Jeff Law <law@redhat.com>
1255 PR tree-optimizatin/78812
1256 * rtl.h (contains_mem_rtx_p): Prototype.
1257 * ifcvt.c (containts_mem_rtx_p): Move from here to...
1258 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
1259 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
1260 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
1261 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
1263 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1265 * input.c (assert_char_at_range): Default-initialize actual_range.
1267 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1269 * df-scan.c (df_ref_create_structure): Make regno unsigned,
1270 to match the caller.
1272 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1274 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
1275 insns after final jump in test to emit dummy move.
1277 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1279 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
1280 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
1282 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
1284 * multiple_target.c (create_dispatcher_calls): Init e_next.
1285 * tree-ssa-loop-split.c (split_loop): Init border.
1286 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
1289 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1294 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
1295 (altivec_register_operand): Do not return true if the operand
1296 contains a SUBREG mixing SImode and SFmode.
1297 (vsx_register_operand): Likewise.
1298 (vsx_reg_sfsubreg_ok): New predicate.
1299 (vfloat_operand): Do not return true if the operand contains a
1300 SUBREG mixing SImode and SFmode.
1301 (vint_operand): Likewise.
1302 (vlogical_operand): Likewise.
1303 (gpc_reg_operand): Likewise.
1304 (int_reg_operand): Likewise.
1305 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
1306 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
1307 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
1309 (rs6000_emit_move_si_sf_subreg): New helper function.
1310 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
1311 fixup SUBREGs involving SImode and SFmode.
1312 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
1313 numbers for the new peephole2 optimization.
1314 (peephole2 for SFmode unions): New peephole2 to optimize cases in
1315 the GLIBC math library that do AND/IOR/XOR operations on single
1316 precision floating point.
1317 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
1318 target macros to say whether we need to avoid SUBREGs mixing
1320 (TARGET_ALLOW_SF_SUBREG): Likewise.
1321 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
1322 (UNSPEC_SI_FROM_SF): Likewise.
1323 (iorxor): Change spacing.
1324 (and_ior_xor): New iterator for AND, IOR, and XOR.
1325 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
1326 (movdi_from_sf_zero_ext): Likewise.
1327 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
1328 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
1329 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
1330 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
1331 (fms<mode>4): Likewise.
1332 (fnma<mode>4): Likewise.
1333 (fnms<mode>4): Likewise.
1334 (nfma<mode>4): Likewise.
1335 (nfms<mode>4): Likewise.
1337 2017-01-04 Marek Polacek <polacek@redhat.com>
1340 * doc/invoke.texi: Document -Wpointer-compare.
1342 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1344 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
1347 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
1348 descriptions for -gdwarf-5 and emit them as uleb128 instead of
1351 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
1354 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
1355 documentation of the powerpc_popcntb_ok attribute.
1356 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
1357 code to issue warning messages if a requested CPU configuration is
1358 not supported by the binary (assembler and loader) toolchain.
1359 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
1360 made to define a built-in function that has been disabled.
1361 (paired_init_builtins): Add assertion to prevent ICE if attempt is
1362 made to define a built-in function that has been disabled.
1363 (altivec_init_builtins): Add comment explaining why definition
1364 of the DST built-in functions is not preceded by an assertion
1365 check. Add assertions to prevent ICE if attempts are made to
1366 define an altivec predicate or an abs* built-in function that has
1368 (htm_init_builtins): Add comment explaining why definition of the
1369 htm built-in functions is not preceded by an assertion check.
1371 2017-01-04 Jeff Law <law@redhat.com>
1373 PR tree-optimizatin/67955
1374 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
1375 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
1376 the points-to solution does not include pt_null. Use DECL_PT_UID
1379 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
1381 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
1382 Use gen_int_mode instead of gen_lopwart for const_int operands.
1384 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1386 PR tree-optimization/71563
1387 * match.pd: Simplify X << Y into X if Y is known to be 0 or
1388 out of range value - has low bits known to be zero.
1390 2017-01-04 Alan Modra <amodra@gmail.com>
1392 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
1393 * configure: Regenerate.
1394 * config.in: Regenerate.
1396 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1399 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1400 a substring of the message, but strcmp with the whole message. Ifdef
1401 ENABLE_NLS, translate the message first using dgettext.
1403 2017-01-03 Jeff Law <law@redhat.com>
1405 PR tree-optimizatin/78856
1406 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1407 (mark_threaded_blocks): Remove code to truncate thread paths that
1408 cross multiple loop headers. Instead invalidate the cached loop
1409 iteration information and handle case of a thread path walking
1410 into an irreducible region.
1412 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1415 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1416 assertions. Add support for doing the signbit if the IEEE 128-bit
1417 floating point value is in a GPR.
1418 * config/rs6000/rs6000.md (Fsignbit): Delete.
1419 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1420 Update the length attribute if the value is in a GPR.
1421 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1422 the sign or zero extension instruction, since the value is always 0/1.
1423 (signbit<mode>2_dm2): Delete using <Fsignbit>.
1426 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1427 extracting SImode to a GPR register so that we can generate a
1428 store, limit the vector to be in a traditional Altivec register
1429 for the vextuwrx instruction.
1431 2017-01-03 Ian Lance Taylor <iant@google.com>
1433 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1435 2017-01-03 Martin Sebor <msebor@redhat.com>
1437 PR tree-optimization/78696
1438 * gimple-ssa-sprintf.c (format_floating): Correct handling of
1439 precision. Use MPFR for %f for greater fidelity. Correct handling
1441 (pass_sprintf_length::compute_format_length): Set width and precision
1442 specified by asrerisk to void_node for vararg functions.
1443 (try_substitute_return_value): Adjust dump output.
1445 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
1447 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1449 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
1451 * doc/invoke.texi (SPARC options): Document -mlra as the default.
1452 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1453 -mlra/-mno-lra was passed to the compiler.
1455 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
1457 PR rtl-optimization/65618
1458 * emit-rtl.c (try_split): Move initialization of "before" and
1459 "after" to just before the call to emit_insn_after_setloc.
1461 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1463 * doc/md.texi (Standard Names): Remove reference to Java frontend.
1465 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
1467 * dwarf2out.c (gen_enumeration_type_die): When
1468 -gno-strict-dwarf, add a DW_AT_encoding attribute.
1470 2017-01-03 Jakub Jelinek <jakub@redhat.com>
1472 PR tree-optimization/78965
1473 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1474 Change first argument from const call_info & to call_info &. For %n
1475 set info.nowrite to false.
1478 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1479 possibly throwing calls.
1481 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1482 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1483 and fns handling, rather than in a separate case SSA_NAME.
1485 2017-01-02 Jeff Law <law@redhat.com>
1487 * config/darwin-driver.c (darwin_driver_init): Const-correctness
1488 fixes for first_period and second_period variables.
1490 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
1493 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1494 (*insvqi_1): New insn pattern.
1495 (*insvqi_1_mem_rex64): Ditto.
1497 (*insvqi_3): Rename from *insvqi.
1499 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
1501 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1503 * doc/cfg.texi (Edges): Remove reference to Java.
1504 (Maintaining the CFG): Ditto.
1506 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1509 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
1510 transparent aliases.
1512 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1515 * predict.def (PRED_CALL): Update hitrate.
1516 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
1517 * predict.c (tree_estimate_probability_bb): Split CALL predictor
1518 into direct/indirect/polymorphic variants.
1520 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1522 Update copyright years.
1524 * gcc.c (process_command): Update copyright notice dates.
1525 * gcov-dump.c (print_version): Ditto.
1526 * gcov.c (print_version): Ditto.
1527 * gcov-tool.c (print_version): Ditto.
1528 * gengtype.c (create_file): Ditto.
1529 * doc/cpp.texi: Bump @copying's copyright year.
1530 * doc/cppinternals.texi: Ditto.
1531 * doc/gcc.texi: Ditto.
1532 * doc/gccint.texi: Ditto.
1533 * doc/gcov.texi: Ditto.
1534 * doc/install.texi: Ditto.
1535 * doc/invoke.texi: Ditto.
1537 Copyright (C) 2017 Free Software Foundation, Inc.
1539 Copying and distribution of this file, with or without modification,
1540 are permitted in any medium without royalty provided the copyright
1541 notice and this notice are preserved.