[PATCH] Provide inlining context in strict-overflow warnings
Florian Weimer
fweimer@redhat.com
Tue May 13 19:27:00 GMT 2014
Patterns that trigger the optimization and warning can form after
inlining, and it can be rather difficult to figure out what exactly is
causing the warning. The inlining context at least provides additional
hints, enabling developers to substitute the arguments and discover
what, precisely, is happening.
More context is provided with -g than without, but I think this is
acceptable.
I bootstrapped and tested the attached patch on x86_64-redhat-linux-gnu,
with no new regressions.
--
Florian Weimer / Red Hat Product Security Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: overflow-warning-inlining-context.patch
Type: text/x-patch
Size: 1601 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140513/f00b0230/attachment.bin>
More information about the Gcc-patches
mailing list