1 2017-01-11 Jakub Jelinek <jakub@redhat.com>
4 * fold-const.c (maybe_nonzero_address): Return 1 for function
6 (tree_single_nonzero_warnv_p): Don't handle function local objects
10 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
13 2017-01-11 David Malcolm <dmalcolm@redhat.com>
16 * opts.c: Include "spellcheck.h"
17 (struct string_fragment): New struct.
18 (struct edit_distance_traits<const string_fragment &>): New
20 (get_closest_sanitizer_option): New function.
21 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
23 2017-01-11 Jakub Jelinek <jakub@redhat.com>
25 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
27 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
28 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
29 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
30 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
31 for initial die_offset if dwarf_split_debug_info.
32 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
33 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
35 (output_skeleton_debug_sections): Formatting fix. Use
36 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
37 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
39 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
41 * config/arm/cortex-a53.md: Add bypasses for
43 (cortex_a53_r2f): Only use for transfers.
44 (cortex_a53_f2r): Likewise.
45 (cortex_a53_r2f_cvt): Add reservation for conversions.
46 (cortex_a53_f2r_cvt): Likewise.
48 2017-01-11 Tamar Christina <tamar.christina@arm.com>
50 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
51 to all inlined functions, change static to extern.
53 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
56 * config/arm/arm.c (legitimize_pic_address): Handle reference to
58 (arm_assemble_integer): Likewise.
60 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
62 * config.gcc: Use new awk script to check CPU, FPU and architecture
63 parameters for --with-... options.
64 * config/arm/parsecpu.awk: New file
65 * config/arm/arm-cpus.in: New file.
66 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
68 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
70 * config/arm/t-arm: Update dependency rules.
71 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
72 of processing .def files.
73 * config/arm/genopt.sh: Deleted.
74 * config/arm/gentune.sh: Deleted.
75 * config/arm/arm-cores.def: Deleted.
76 * config/arm/arm-arches.def: Deleted.
77 * config/arm/arm-fpus.def: Deleted.
78 * config/arm/arm-tune.md: Regenerated.
79 * config/arm/arm-tables.opt: Regenerated.
80 * config/arm/arm-cpu.h: New generated file.
81 * config/arm/arm-cpu-data.h: New generated file.
82 * config/arm/arm-cpu-cdata.h: New generated file.
84 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
87 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
89 (input_varpool_node): Unpack dynamically_initialized bit.
91 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
93 PR rtl-optimization/79032
94 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
95 the alignment of the adjusted memory reference against that of MODE,
96 instead of the alignment of the original memory reference.
98 2017-01-11 Martin Jambor <mjambor@suse.cz>
100 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
102 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
105 2017-01-11 Richard Biener <rguenther@suse.de>
107 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
108 set range/nonnull info for PHI results. Do not set it on
109 stmts marked for removal.
111 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
113 * expr.c (store_field): In the bitfield case, fetch the return value
114 from the registers before applying a single big-endian adjustment.
115 Always do a final load for a BLKmode value not larger than a word.
117 2017-01-10 David Malcolm <dmalcolm@redhat.com>
120 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
121 that we correctly handle column numbers greater than
122 LINE_MAP_MAX_COLUMN_NUMBER.
124 2017-01-10 Martin Sebor <msebor@redhat.com>
127 * gimple-ssa-sprintf.c (get_destination_size): Call
128 {init,fini}object_sizes.
129 * tree-object-size.c (addr_object_size): Adjust.
130 (pass_through_call): Adjust.
131 (pass_object_sizes::execute): Adjust.
132 * tree-object-size.h (fini_object_sizes): Declare.
134 2017-01-10 Martin Sebor <msebor@redhat.com>
136 PR tree-optimization/78775
137 * builtins.c (get_size_range): Move...
138 * calls.c: ...to here.
139 (alloc_max_size): Accept zero argument.
140 (operand_signed_p): Remove.
141 (maybe_warn_alloc_args_overflow): Call get_size_range.
142 * calls.h (get_size_range): Declare.
144 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
146 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
147 from TI's devices.csv file as of September 2016.
148 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
150 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
152 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
153 * doc/invoke.texi: Likewise.
154 * doc/md.texi: Likewise.
155 * doc/objc.texi: Likewise.
157 2017-01-10 Joshua Conner <joshconner@google.com>
159 * config/arm/fuchsia-elf.h: New file.
160 * config/fuchsia.h: New file.
161 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
162 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
164 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
166 2016-01-10 Richard Biener <rguenther@suse.de>
168 PR tree-optimization/79034
169 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
170 Propagate out degenerate PHIs in the joiner.
172 2017-01-10 Martin Liska <mliska@suse.cz>
174 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
175 (sort_congruence_classes_by_decl_uid): Likewise.
176 (sort_congruence_class_groups_by_decl_uid): Likewise.
177 (sem_item_optimizer::merge_classes): Sort class, groups in these
178 classes and members in the groups by DECL_UID of declarations.
179 This would make merge operations stable.
181 2017-01-10 Martin Liska <mliska@suse.cz>
183 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
184 usage of m_classes_vec.
185 (sem_item_optimizer::~sem_item_optimizer): Likewise.
186 (sem_item_optimizer::get_group_by_hash): Likewise.
187 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
188 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
189 (sem_item_optimizer::verify_classes): Likewise.
190 (sem_item_optimizer::process_cong_reduction): Likewise.
191 (sem_item_optimizer::dump_cong_classes): Likewise.
192 (sem_item_optimizer::merge_classes): Likewise.
193 * ipa-icf.h (congruence_class_hash): Rename from
194 congruence_class_group_hash. Remove declaration of m_classes_vec.
196 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
198 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
199 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
200 * config.gcc: Add avx512vpopcntdqintrin.h.
201 * config/i386/avx512vpopcntdqintrin.h: New.
202 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
203 * config/i386/i386-builtin-types.def: Add new types.
204 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
205 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
206 __builtin_ia32_vpopcountq_v8di_mask): New.
207 * config/i386/i386-c.c (ix86_target_macros_internal): Define
209 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
210 (PTA_AVX512VPOPCNTDQ): Define.
211 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
212 TARGET_AVX512VPOPCNTDQ_P): Define.
213 * config/i386/i386.opt: Add mavx512vpopcntdq.
214 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
215 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
217 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
220 * predict.def (PRED_CALL): Set to 67.
222 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
224 * expr.c (store_field): In the bitfield case, if the value comes from
225 a function call and is of an aggregate type returned in registers, do
226 not modify the field mode; extract the value in all cases if the mode
227 is BLKmode and the size is not larger than a word.
229 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
232 * config/i386/cpuid.h: Fix undefined behavior.
234 2017-01-04 Jeff Law <law@redhat.com>
236 PR tree-optimization/79007
237 PR tree-optimization/67955
238 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
239 conservative for pt.null when flag_non_call_exceptions is on.
241 2017-01-09 Jakub Jelinek <jakub@redhat.com>
245 * params.def (PARAM_INLINE_MIN_SPEEDUP,
246 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
247 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
249 * config/avr/avr.opt (maccumulate-args): Likewise.
250 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
251 * common.opt (freport-bug): Likewise.
252 * cif-code.def (CIF_FINAL_ERROR): Likewise.
253 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
254 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
256 * config/i386/i386.c (function_value_32): Likewise.
257 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
258 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
260 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
261 * common/config/msp430/msp430-common.c (msp430_handle_option):
263 * symtab.c (symtab_node::verify_base): Likewise.
264 * opts.c (set_debug_level): Likewise.
265 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
266 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
267 missing whitespace to translatable strings.
268 * config/avr/avr.md (bswapsi2): Fix typo in comment.
269 * config/sh/superh.h: Likewise.
270 * config/i386/xopintrin.h: Likewise.
271 * config/i386/znver1.md: Likewise.
272 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
273 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
274 * double-int.h (struct double_int): Likewise.
275 * double-int.c (div_and_round_double): Likewise.
276 * wide-int.cc: Likewise.
277 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
278 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
279 * cfgcleanup.c (crossjumps_occured): Renamed to ...
280 (crossjumps_occurred): ... this.
281 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
284 PR tree-optimization/78899
285 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
286 returning bool return struct loop *, NULL for failure and the new
288 (versionable_outer_loop_p): Don't version outer loop if it has
289 dont_vectorized bit set.
290 (tree_if_conversion): When versioning outer loop, ensure
291 tree_if_conversion is performed also on the inner loop of the
292 non-vectorizable outer loop copy.
293 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
294 LOOP_VECTORIZED in inner loop of the scalar outer loop and
295 prevent vectorization of it.
296 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
297 the outer loop vectorization of the non-scalar version is attempted
298 before vectorization of the inner loop in scalar version. If
299 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
300 vectorization of its inner loop.
301 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
302 has 2 inner loops, rename also on edges from bb whose single pred
303 is outer_loop->header. Fix typo in function comment.
305 2017-01-09 Martin Sebor <msebor@redhat.com>
308 * asan.c (asan_emit_stack_protection): Increase local buffer size
309 to avoid snprintf truncation warning.
311 2017-01-09 Andrew Pinski <apinski@cavium.com>
313 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
314 to reference thunderx2t99 for the tuning structure
315 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
317 (thunderx2t99_extra_costs): This.
318 * config/aarch64/aarch64-tune.md: Regenerate.
319 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
320 (vulcan_addrcost_table): This.
321 (vulcan_regmove_cost): Rename to ...
322 (thunderx2t99_regmove_cost): This.
323 (vulcan_vector_cost): Rename to ...
324 (thunderx2t99_vector_cost): this.
325 (vulcan_branch_cost): Rename to ...
326 (thunderx2t99_branch_cost): This.
327 (vulcan_tunings): Rename to ...
328 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
329 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
331 2017-01-09 Martin Jambor <mjambor@suse.cz>
335 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
336 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
337 (propagate_vr_accross_jump_function): Use the above function for all
338 value range computations for pass-through jump functions and type
339 converasion from explicit value range values.
340 (ipcp_propagate_stage): Do not attempt to deduce types of formal
341 parameters from TYPE_ARG_TYPES.
342 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
343 (ipa_write_node_info): Stream type of the actual argument.
344 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
346 2017-01-09 Martin Liska <mliska@suse.cz>
349 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
350 (lookup_compiler): Do not show error message with have_E.
352 2017-01-09 Jakub Jelinek <jakub@redhat.com>
354 PR tree-optimization/78938
355 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
356 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
357 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
358 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
361 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
363 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
366 2017-01-09 Richard Biener <rguenther@suse.de>
368 PR tree-optimization/78997
369 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
370 name condition properly.
372 2017-01-09 Richard Biener <rguenther@suse.de>
375 * dwarf2out.c (is_cxx): New overload with context.
376 (is_naming_typedef_decl): Use it.
378 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
380 * invoke.texi (Option Summary): Correct spacing in option lists
381 and add line breaks to fix over-long lines.
383 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
387 * extend.texi (Common Variable Attributes): Add xref to GCC
388 Internals manual to explain mode attribute keywords.
390 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
393 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
394 and Preprocessor Options.
395 (Options for Linking): Document -pthread here....
396 (RS/6000 and PowerPC Options): ...not here.
397 (Solaris 2 Options): ...or here.
398 * doc/cppopts.texi: Document -pthread.
400 2017-01-08 Martin Sebor <msebor@redhat.com>
403 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
404 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
405 New member functions.
406 (format_directive): Used them.
408 (pass_sprintf_length::handle_gimple_call): Same.
409 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
410 to avoid truncation for any argument.
411 (extract_affine_mul): Same.
412 * tree.c (get_file_function_name): Same.
414 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
417 * predict.def (PRED_INDIR_CALL): Set to 86.
419 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
421 PR preprocessor/54124
422 * doc/cppopts.texi: Reformat -d subtable to list the full name
423 of the options. Add cross-reference to the docs for the general
425 * doc/invoke.texi (Developer Options): Add cross-reference to the
426 preprocessor-specific -d option documentation.
428 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
430 PR preprocessor/13498
431 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
432 redudant material, and reflect new command-line options.
433 (System Headers): Likewise.
435 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
437 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
438 -isystem, and -idirafter. Copy-edit.
439 * doc/cppopts.texi: Copy-edit. Remove contradiction about
440 default for -ftrack-macro-expansion. Delete obsolete and
441 badly-formatted implementation details about -fdebug-cpp output.
442 * doc/cppwarnopts.texi: Copy-edit.
444 2017-01-07 David Malcolm <dmalcolm@redhat.com>
447 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
448 that the transition from a max line width >= 1<<10 to narrower
449 lines works correctly.
451 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
453 * doc/options.texi (PerFunction): New.
454 * opt-functions.awk (switch_flags): Map both Optimization and
455 PerFunction to CL_OPTIMIZATION.
456 * opth-gen.awk: Test for PerFunction flag along with
458 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
459 it only when the latter is present. Skip those that don't in
460 the hash function generator.
461 * common.opt (fvar-tracking): Mark as PerFunction instead of
463 (fvar-tracking-assignments): Likewise.
464 (fvar-tracking-assignments-toggle): Likewise.
465 (fvar-tracking-uninit): Likewise.
467 2017-01-07 Jakub Jelinek <jakub@redhat.com>
470 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
473 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
476 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
477 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
478 TARGET_LONG_JUMP_TABLE_OFFSETS.
479 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
480 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
481 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
482 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
483 * config/m68k/m68k.md (tablejump expander): Likewise.
484 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
485 TARGET_LONG_JUMP_TABLE_OFFSETS.
486 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
487 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
489 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
490 David Holsgrove <david.holsgrove@xilinx.com>
492 * common/config/microblaze/microblaze-common.c
493 (TARGET_EXCEPT_UNWIND_INFO): Remove.
494 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
496 * config/microblaze/microblaze.c (microblaze_must_save_register)
497 (microblaze_expand_epilogue, microblaze_return_addr): Handle
499 (microblaze_eh_return): New function.
500 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
501 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
502 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
503 * config/microblaze/microblaze.md (eh_return): New pattern.
505 2017-01-06 Jakub Jelinek <jakub@redhat.com>
507 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
508 GCC_DIAGNOSTIC_STRINGIFY): Define.
510 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
512 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
514 * config/arm/arm.md (<mcrr>): New.
516 * config/arm/arm.c (arm_arch5te): New.
517 (arm_option_override): Set arm_arch5te.
518 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
520 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
521 (arm_mcrr_qualifiers): ... this. New.
522 (MRRC_QUALIFIERS): Define to...
523 (arm_mrrc_qualifiers): ... this. New.
524 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
526 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
527 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
528 (MRRCI, mrrc, MRRC): New.
529 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
532 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
534 * config/arm/arm.md (<mcr>): New.
536 * config/arm/arm.c (arm_coproc_builtin_available): Add
537 support for mcr, mrc, mcr2 and mrc2.
538 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
539 (arm_mcr_qualifiers): ... this. New.
540 (MRC_QUALIFIERS): Define to ...
541 (arm_mrc_qualifiers): ... this. New.
542 (MCR_QUALIFIERS): Define to ...
543 (arm_mcr_qualifiers): ... this. New.
544 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
546 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
547 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
548 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
551 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
553 * config/arm/arm.md (*ldc): New.
557 * config/arm/arm.c (arm_coproc_builtin_available): Add
558 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
559 (arm_coproc_ldc_stc_legitimate_address): New.
560 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
561 'qualifier_const_pointer'.
562 (LDC_QUALIFIERS): Define to...
563 (arm_ldc_qualifiers): ... this. New.
564 (STC_QUALIFIERS): Define to...
565 (arm_stc_qualifiers): ... this. New.
566 * config/arm/arm-protos.h
567 (arm_coproc_ldc_stc_legitimate_address): New.
568 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
569 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
570 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
571 stc2, stcl, stc2l): New.
572 * config/arm/constraints.md (Uz): New.
573 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
574 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
575 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
578 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
580 * config/arm/arm.md (<cdp>): New.
581 * config/arm/arm.c (neon_const_bounds): Rename this ...
582 (arm_const_bounds): ... this.
583 (arm_coproc_builtin_available): New.
584 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
585 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
586 (CDP_QUALIFIERS): Define to...
587 (arm_cdp_qualifiers): ... this. New.
589 (arm_expand_builtin_args): Add case for 6 arguments.
590 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
591 (arm_const_bounds): ... this.
592 (arm_coproc_builtin_available): New.
593 * config/arm/arm_acle.h (__arm_cdp): New.
595 * config/arm/arm_acle_builtins.def (cdp): New.
597 * config/arm/iterators.md (CDPI,CDP,cdp): New.
598 * config/arm/neon.md: Rename all 'neon_const_bounds' to
600 * config/arm/types.md (coproc): New.
601 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
602 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
603 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
604 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
606 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
608 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
609 (UBINOP_QUALIFIERS): New.
611 (acle_builtin_data): New. Change comment.
612 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
613 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
614 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
615 arm_acle_builtins.def.
616 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
617 (arm_init_acle_builtins): New.
618 (CRC32_BUILTIN): Remove.
619 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
620 crc32cb, crc32ch and crc32cw.
621 (arm_init_crc32_builtins): Remove.
622 (arm_init_builtins): Use arm_init_acle_builtins rather
623 than arm_init_crc32_builtins.
624 (arm_expand_acle_builtin): New.
625 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
626 * config/arm/arm_acle_builtins.def: New.
628 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
630 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
631 (arm_builtin_datum): ... this.
632 (arm_init_neon_builtin): Rename to ...
633 (arm_init_builtin): ... this. Add a new parameters PREFIX
635 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
636 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
638 (arm_init_vfp_builtins): Likewise.
639 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
640 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
641 (arm_expand_neon_args): Rename to ...
642 (arm_expand_builtin_args): ... this. Rename builtin_arg
643 enum values and differentiate between ARG_BUILTIN_MEMORY
644 and ARG_BUILTIN_NEON_MEMORY.
645 (arm_expand_neon_builtin_1): Rename to ...
646 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
647 values, arm_expand_builtin_args and add bool parameter NEON.
648 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
649 (arm_expand_vfp_builtin): Likewise.
650 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
652 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
655 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
656 * predict.c (tree_estimate_probability_bb): Reverse direction of
657 polymorphic call predictor.
659 2017-01-06 David Malcolm <dmalcolm@redhat.com>
661 * passes.c (execute_one_pass): Split out pass-skipping logic into...
662 (determine_pass_name_match): ...this new function and...
663 (should_skip_pass_p): ...this new function.
665 2017-01-06 Nathan Sidwell <nathan@acm.org>
667 * ipa-visibility.c (function_and_variable_visibility): Reformat
668 comments and long lines. Remove extrneous if.
669 * symtab.c (symtab_node::make_decl_local): Fix code format.
670 (symtab_node::set_section_for_node): Fix comment typo.
672 2017-01-06 Martin Liska <mliska@suse.cz>
675 * lra-constraints.c: Rename invariant to lra_invariant.
676 * predict.c (set_even_probabilities): Initialize e to NULL.
678 2017-01-05 Martin Sebor <msebor@redhat.com>
680 PR tree-optimization/78910
681 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
682 (format_integer): Correct off-by-one error in the handling
683 of precision with negative numbers in signed conversions..
685 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
687 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
689 2017-01-05 Jakub Jelinek <jakub@redhat.com>
691 PR tree-optimization/71016
692 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
693 factor_out_conditional_conversion. Formatting fix.
694 (factor_out_conditional_conversion): Add cond_stmt argument.
695 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
696 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
699 2017-01-05 David Malcolm <dmalcolm@redhat.com>
701 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
702 read-rtl-function.o, and selftest-rtl.o.
703 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
704 (selftest::aarch64_test_loading_full_dump): New function.
705 (selftest::aarch64_run_selftests): New function.
706 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
707 selftest::aarch64_run_selftests.
709 (selftest::ix86_test_loading_dump_fragment_1): New function.
710 (selftest::ix86_test_loading_call_insn): New function.
711 (selftest::ix86_test_loading_full_dump): New function.
712 (selftest::ix86_test_loading_unspec): New function.
713 (selftest::ix86_run_selftests): Call the new functions.
714 * emit-rtl.c (maybe_set_max_label_num): New function.
715 * emit-rtl.h (maybe_set_max_label_num): New decl.
716 * function.c (instantiate_decls): Guard call to
717 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
718 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
720 * gensupport.c (gen_reader::gen_reader): Pass "false"
721 for new "compact" param of rtx_reader.
722 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
723 rather than an empty string for NULL strings.
724 * read-md.c: Potentially include config.h rather than bconfig.h.
725 Wrap include of errors.h with #ifdef GENERATOR_FILE.
726 (have_error): New global, copied from errors.c.
727 (md_reader::read_name): Rename to...
728 (md_reader::read_name_1): ...this, adding "out_loc" param,
729 and converting "missing name or number" to returning false, rather
731 (md_reader::read_name): Reimplement in terms of read_name_1.
732 (md_reader::read_name_or_nil): New function.
733 (md_reader::read_string): Handle "(nil)" by returning NULL.
734 (md_reader::md_reader): Add new param "compact".
735 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
736 (md_reader::read_file): New method.
737 * read-md.h (md_reader::md_reader): Add new param "compact".
738 (md_reader::read_file): New method.
739 (md_reader::is_compact): New accessor.
740 (md_reader::read_name): Convert return type from void to file_location.
741 (md_reader::read_name_or_nil): New decl.
742 (md_reader::read_name_1): New decl.
743 (md_reader::m_compact): New field.
744 (noop_reader::noop_reader): Pass "false" for new "compact" param
746 (rtx_reader::rtx_reader): Add new "compact" param.
747 (rtx_reader::read_rtx_operand): Make virtual and convert return
748 type from void to rtx.
749 (rtx_reader::read_until): New decl.
750 (rtx_reader::handle_any_trailing_information): New virtual function.
751 (rtx_reader::postprocess): New virtual function.
752 (rtx_reader::finalize_string): New virtual function.
753 (rtx_reader::m_in_call_function_usage): New field.
754 (rtx_reader::m_reuse_rtx_by_id): New field.
755 * read-rtl-function.c: New file.
756 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
757 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
758 (selftest::verify_three_block_rtl_cfg): New decl.
759 * read-rtl-function.h: New file.
760 * read-rtl.c: Potentially include config.h rather than bconfig.h.
761 For host, include function.h, memmodel.h, and emit-rtl.h.
762 (one_time_initialization): New function.
763 (struct compact_insn_name): New struct.
764 (compact_insn_names): New array.
765 (find_code): Handle insn codes in compact dumps.
766 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
767 (bind_subst_iter_and_attr): Likewise.
768 (add_condition_to_string): Likewise.
769 (add_condition_to_rtx): Likewise.
770 (apply_attribute_uses): Likewise.
771 (add_current_iterators): Likewise.
772 (apply_iterators): Likewise.
773 (initialize_iterators): Guard usage of apply_subst_iterator with
774 #ifdef GENERATOR_FILE.
775 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
776 (md_reader::read_mapping): Likewise.
777 (add_define_attr_for_define_subst): Likewise.
778 (add_define_subst_attr): Likewise.
779 (read_subst_mapping): Likewise.
780 (check_code_iterator): Likewise.
781 (rtx_reader::read_rtx): Likewise. Move one-time initialization
783 (one_time_initialization): New function.
784 (rtx_reader::read_until): New method.
785 (read_flags): New function.
786 (parse_reg_note_name): New function.
787 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
788 Handle reuse_rtx ids.
789 Wrap iterator lookup within #ifdef GENERATOR_FILE.
790 Add parsing support for RTL dumps, mirroring the special-cases in
791 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
792 values, and calling handle_any_trailing_information.
793 (rtx_reader::read_rtx_operand): Convert return type from void
794 to rtx, returning return_rtx. Handle case 'e'. Call
795 finalize_string on XSTR and XTMPL fields.
796 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
797 "(nil)" values were omitted. Call the postprocess vfunc on the
799 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
800 class ctor. Initialize m_in_call_function_usage. Call
801 one_time_initialization.
802 * rtl-tests.c (selftest::test_uncond_jump): Call
803 set_new_first_and_last_insn.
804 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
805 * selftest-rtl.c: New file.
806 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
807 (selftest::get_insn_by_uid): New decl.
808 * selftest-run-tests.c (selftest::run_tests): Call
809 read_rtl_function_c_tests.
810 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
811 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
814 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
816 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
817 operands in a special way. Assert that pos+len <= mode precision.
819 2017-01-05 Jakub Jelinek <jakub@redhat.com>
821 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
822 3 argument Alias with unlimited for the negative form.
823 (fno-vect-cost-model): Removed.
825 2017-01-05 Martin Liska <mliska@suse.cz>
827 * hsa-gen.c (gen_hsa_divmod): New function.
828 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
830 2017-01-05 Martin Liska <mliska@suse.cz>
833 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
836 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
838 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
839 small constant length operands.
841 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
843 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
844 between loop iterations.
846 2017-01-05 Martin Liska <mliska@suse.cz>
849 * gimplify.c (gimplify_decl_expr): Compare to
850 asan_poisoned_variables instread of checking flags.
851 (gimplify_target_expr): Likewise.
852 (gimplify_expr): Likewise.
853 (gimplify_function_tree): Conditionally initialize
854 asan_poisoned_variables.
856 2017-01-04 Jeff Law <law@redhat.com>
858 PR tree-optimizatin/78812
859 * rtl.h (contains_mem_rtx_p): Prototype.
860 * ifcvt.c (containts_mem_rtx_p): Move from here to...
861 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
862 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
863 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
864 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
866 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
868 * input.c (assert_char_at_range): Default-initialize actual_range.
870 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
872 * df-scan.c (df_ref_create_structure): Make regno unsigned,
875 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
877 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
878 insns after final jump in test to emit dummy move.
880 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
882 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
883 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
885 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
887 * multiple_target.c (create_dispatcher_calls): Init e_next.
888 * tree-ssa-loop-split.c (split_loop): Init border.
889 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
892 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
897 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
898 (altivec_register_operand): Do not return true if the operand
899 contains a SUBREG mixing SImode and SFmode.
900 (vsx_register_operand): Likewise.
901 (vsx_reg_sfsubreg_ok): New predicate.
902 (vfloat_operand): Do not return true if the operand contains a
903 SUBREG mixing SImode and SFmode.
904 (vint_operand): Likewise.
905 (vlogical_operand): Likewise.
906 (gpc_reg_operand): Likewise.
907 (int_reg_operand): Likewise.
908 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
909 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
910 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
912 (rs6000_emit_move_si_sf_subreg): New helper function.
913 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
914 fixup SUBREGs involving SImode and SFmode.
915 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
916 numbers for the new peephole2 optimization.
917 (peephole2 for SFmode unions): New peephole2 to optimize cases in
918 the GLIBC math library that do AND/IOR/XOR operations on single
919 precision floating point.
920 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
921 target macros to say whether we need to avoid SUBREGs mixing
923 (TARGET_ALLOW_SF_SUBREG): Likewise.
924 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
925 (UNSPEC_SI_FROM_SF): Likewise.
926 (iorxor): Change spacing.
927 (and_ior_xor): New iterator for AND, IOR, and XOR.
928 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
929 (movdi_from_sf_zero_ext): Likewise.
930 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
931 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
932 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
933 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
934 (fms<mode>4): Likewise.
935 (fnma<mode>4): Likewise.
936 (fnms<mode>4): Likewise.
937 (nfma<mode>4): Likewise.
938 (nfms<mode>4): Likewise.
940 2017-01-04 Marek Polacek <polacek@redhat.com>
943 * doc/invoke.texi: Document -Wpointer-compare.
945 2017-01-04 Jakub Jelinek <jakub@redhat.com>
947 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
950 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
951 descriptions for -gdwarf-5 and emit them as uleb128 instead of
954 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
957 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
958 documentation of the powerpc_popcntb_ok attribute.
959 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
960 code to issue warning messages if a requested CPU configuration is
961 not supported by the binary (assembler and loader) toolchain.
962 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
963 made to define a built-in function that has been disabled.
964 (paired_init_builtins): Add assertion to prevent ICE if attempt is
965 made to define a built-in function that has been disabled.
966 (altivec_init_builtins): Add comment explaining why definition
967 of the DST built-in functions is not preceded by an assertion
968 check. Add assertions to prevent ICE if attempts are made to
969 define an altivec predicate or an abs* built-in function that has
971 (htm_init_builtins): Add comment explaining why definition of the
972 htm built-in functions is not preceded by an assertion check.
974 2017-01-04 Jeff Law <law@redhat.com>
976 PR tree-optimizatin/67955
977 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
978 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
979 the points-to solution does not include pt_null. Use DECL_PT_UID
982 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
984 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
985 Use gen_int_mode instead of gen_lopwart for const_int operands.
987 2017-01-04 Jakub Jelinek <jakub@redhat.com>
989 PR tree-optimization/71563
990 * match.pd: Simplify X << Y into X if Y is known to be 0 or
991 out of range value - has low bits known to be zero.
993 2017-01-04 Alan Modra <amodra@gmail.com>
995 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
996 * configure: Regenerate.
997 * config.in: Regenerate.
999 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1002 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
1003 a substring of the message, but strcmp with the whole message. Ifdef
1004 ENABLE_NLS, translate the message first using dgettext.
1006 2017-01-03 Jeff Law <law@redhat.com>
1008 PR tree-optimizatin/78856
1009 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
1010 (mark_threaded_blocks): Remove code to truncate thread paths that
1011 cross multiple loop headers. Instead invalidate the cached loop
1012 iteration information and handle case of a thread path walking
1013 into an irreducible region.
1015 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1018 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
1019 assertions. Add support for doing the signbit if the IEEE 128-bit
1020 floating point value is in a GPR.
1021 * config/rs6000/rs6000.md (Fsignbit): Delete.
1022 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
1023 Update the length attribute if the value is in a GPR.
1024 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
1025 the sign or zero extension instruction, since the value is always 0/1.
1026 (signbit<mode>2_dm2): Delete using <Fsignbit>.
1029 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
1030 extracting SImode to a GPR register so that we can generate a
1031 store, limit the vector to be in a traditional Altivec register
1032 for the vextuwrx instruction.
1034 2017-01-03 Ian Lance Taylor <iant@google.com>
1036 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
1038 2017-01-03 Martin Sebor <msebor@redhat.com>
1040 PR tree-optimization/78696
1041 * gimple-ssa-sprintf.c (format_floating): Correct handling of
1042 precision. Use MPFR for %f for greater fidelity. Correct handling
1044 (pass_sprintf_length::compute_format_length): Set width and precision
1045 specified by asrerisk to void_node for vararg functions.
1046 (try_substitute_return_value): Adjust dump output.
1048 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
1050 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
1052 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
1054 * doc/invoke.texi (SPARC options): Document -mlra as the default.
1055 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
1056 -mlra/-mno-lra was passed to the compiler.
1058 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
1060 PR rtl-optimization/65618
1061 * emit-rtl.c (try_split): Move initialization of "before" and
1062 "after" to just before the call to emit_insn_after_setloc.
1064 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
1066 * doc/md.texi (Standard Names): Remove reference to Java frontend.
1068 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
1070 * dwarf2out.c (gen_enumeration_type_die): When
1071 -gno-strict-dwarf, add a DW_AT_encoding attribute.
1073 2017-01-03 Jakub Jelinek <jakub@redhat.com>
1075 PR tree-optimization/78965
1076 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1077 Change first argument from const call_info & to call_info &. For %n
1078 set info.nowrite to false.
1081 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
1082 possibly throwing calls.
1084 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
1085 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
1086 and fns handling, rather than in a separate case SSA_NAME.
1088 2017-01-02 Jeff Law <law@redhat.com>
1090 * config/darwin-driver.c (darwin_driver_init): Const-correctness
1091 fixes for first_period and second_period variables.
1093 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
1096 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
1097 (*insvqi_1): New insn pattern.
1098 (*insvqi_1_mem_rex64): Ditto.
1100 (*insvqi_3): Rename from *insvqi.
1102 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
1104 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
1106 * doc/cfg.texi (Edges): Remove reference to Java.
1107 (Maintaining the CFG): Ditto.
1109 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1112 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
1113 transparent aliases.
1115 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
1118 * predict.def (PRED_CALL): Update hitrate.
1119 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
1120 * predict.c (tree_estimate_probability_bb): Split CALL predictor
1121 into direct/indirect/polymorphic variants.
1123 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1125 Update copyright years.
1127 * gcc.c (process_command): Update copyright notice dates.
1128 * gcov-dump.c (print_version): Ditto.
1129 * gcov.c (print_version): Ditto.
1130 * gcov-tool.c (print_version): Ditto.
1131 * gengtype.c (create_file): Ditto.
1132 * doc/cpp.texi: Bump @copying's copyright year.
1133 * doc/cppinternals.texi: Ditto.
1134 * doc/gcc.texi: Ditto.
1135 * doc/gccint.texi: Ditto.
1136 * doc/gcov.texi: Ditto.
1137 * doc/install.texi: Ditto.
1138 * doc/invoke.texi: Ditto.
1140 Copyright (C) 2017 Free Software Foundation, Inc.
1142 Copying and distribution of this file, with or without modification,
1143 are permitted in any medium without royalty provided the copyright
1144 notice and this notice are preserved.