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 middle-end/87813] sprintf pass calling evrp at -O0 and setting global ranges which affect strnlen expansion


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

--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> ---
On Mon, 5 Nov 2018, aldyh at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87813
> 
> --- Comment #6 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> (In reply to Martin Sebor from comment #5)
> > The sprintf pass doesn't do any optimization at -O0 but it still runs to
> > diagnose the subset of mistakes that are detectable even without
> > optimization.
> 
> Yes, but my point is that the way things are laid out right now, we are running
> full evrp at -Og and *that* seems like an optimization, because it's affecting
> the IL later on.

Running EVRP at -Og probably isn't so bad, but yes - it takes compile-time
(also at -O0)

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