This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83198] [7 regression] ICE in format_floating, at gimple-ssa-sprintf.c:1900
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Dec 2017 22:15:17 +0000
- Subject: [Bug tree-optimization/83198] [7 regression] ICE in format_floating, at gimple-ssa-sprintf.c:1900
- Auto-submitted: auto-generated
- References: <bug-83198-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83198
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 22:14:41 2017
New Revision: 255728
URL: https://gcc.gnu.org/viewcvs?rev=255728&root=gcc&view=rev
Log:
Backported from mainline
2017-12-14 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/83198
* gimple-ssa-sprintf.c (format_floating): Set type solely based on
dir.modifier, regardless of TREE_TYPE (arg). Assume non-REAL_CST
value if arg is a REAL_CST with incompatible type.
* gcc.dg/pr83198.c: New test.
* gcc.dg/tree-ssa/pr83198.c: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83198.c
branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/pr83198.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/gimple-ssa-sprintf.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog