On 8/17/21 2:51 AM, Richard Biener wrote:
On Tue, Aug 17, 2021 at 3:52 AM Martin Sebor via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
The attached patch continues with the move of warning code from
builtins.c and calls.c into a more suitable home. As before, it
is mostly free of functional changes. The one exception is that
as pleasant a side-effect, moving the attribute access checking
from initialize_argument_information() in calls.c to the new
warning pass also happens to fix PR 101854. This is thanks to
the latter iterating over function arguments explicitly provided
in the program and not having to worry about skipping over
the additional pointer argument synthesized for calls to functions
that return a large struct by value that the former function sneaks
into the argument list.
Tested on x86_64-linux.
OK.
Jit testing exposed a bug due to an uninitialized variable (oddly
tests for no other front end did so). I fixed it and (after
retesting the result) committed r12-2976.
Thanks
Martin