Re: [PATCH] avoid assuming calloc return value is used (PR 93683)

2020-02-11 Thread Jeff Law
On Tue, 2020-02-11 at 16:01 -0700, Martin Sebor wrote: > Along with some special handling of calloc calls, r272717 introduced > the assumption into stmt_kills_ref_p that the value returned from > the call is used. The code triggers an ICE when invoked during DCE > in an attempt to determine whethe

[PATCH] avoid assuming calloc return value is used (PR 93683)

2020-02-11 Thread Martin Sebor
Along with some special handling of calloc calls, r272717 introduced the assumption into stmt_kills_ref_p that the value returned from the call is used. The code triggers an ICE when invoked during DCE in an attempt to determine whether a calloc call can be eliminated. To avoid the ICE the attac