This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/80497] ICE at -O1 and above on valid code on x86_64-linux-gnu in "tree_to_uhwi"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80497

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Apr 25 17:58:32 2017
New Revision: 247264

URL: https://gcc.gnu.org/viewcvs?rev=247264&root=gcc&view=rev
Log:
PR tree-optimization/80497 - ICE at -O1 and above on valid code on
x86_64-linux-gnu in tree_to_uhwi

gcc/ChangeLog:

        PR tree-optimization/80497
        * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
        constants are representable in HOST_WIDE_INT.
        (parse_directive): Ditto.

gcc/testsuite/ChangeLog:

        PR tree-optimization/80497
        * gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test.


Added:
   
branches/gcc-7-branch/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-17.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimple-ssa-sprintf.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]