This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79235] x86 - Can't read stack transferred parameters when using one of the parameters in a nested function
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Jan 2017 09:55:27 +0000
- Subject: [Bug target/79235] x86 - Can't read stack transferred parameters when using one of the parameters in a nested function
- Auto-submitted: auto-generated
- References: <bug-79235-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79235
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
int* pvargs = &on_stack;
int second=pvargs[1];
what do you think you access with pvargs[1]? You can't get at the address
of the stack slot used for argument passing by taking the address of a
parameter.