This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] avoid infinite recursion in maybe_warn_alloc_args_overflow (pr 78775)
- From: Jeff Law <law at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 5 Jan 2017 11:03:14 -0700
- Subject: Re: [PATCH] avoid infinite recursion in maybe_warn_alloc_args_overflow (pr 78775)
- Authentication-results: sourceware.org; auth=none
- References: <a0841e6f-f3dc-e8e9-f439-5f11c69c285b@gmail.com>
On 12/12/2016 06:36 PM, Martin Sebor wrote:
The attached patch avoids infinite recursion when traversing phi
nodes in maybe_warn_alloc_args_overflow by using a bitmap to keep
track of those already visited and breaking out.
Thanks
Martin
gcc-78775.diff
PR tree-optimization/78775 - ICE in maybe_warn_alloc_args_overflow
gcc/ChangeLog:
PR tree-optimization/78775
* calls.c (operand_signed_p): Add overload and avoid getting into
infinite recursion when traversing phi nodes.
gcc/testsuite/ChangeLog:
PR tree-optimization/78775
* gcc.dg/pr78775.c: New test.
So Richi asked for removal of the VR_ANTI_RANGE handling, which would
imply removal of operand_signed_p.
What are the implications if we do that?
Jeff