This is the mail archive of the gcc-patches@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]

Re: Representative returns and location info (Re: [RFC, PATCH] Display inlining context for uninitialized warnings)


> (Let's focus on location info and representative returns in this
> subthread.)
> 
> AFAIU, a return statement may be chosen as a representative return for a
> function.  The representative return's location is set to
> UNKNOWN_LOCATION, because otherwise the results of coverage analysis are
> skewed.  What is the difficulty preventing us from having both the
> location info for the return and faithful coverage?

That's simply impossible since you merge two instructions with different 
locations into a single one.  But the return location should be on the goto.

-- 
Eric Botcazou


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