[Bug c/11884] Bad address passed to function with > 8 arguments
sdowning at fame dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 11 21:08:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11884
------- Additional Comments From sdowning at fame dot com 2003-08-11 21:08 -------
Subject: Re: Bad address passed to function with > 8 arguments
"falk at debian dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From falk at debian dot org 2003-08-11 20:07 -------
> The differing address doesn't seem like a bug per se to me; gcc
> might spill it, reclaim it, and then re-spill to a different place,
> although that seems unlikely. So is there any observable wrong
> behaviour?
It's definitely a bug. The address of the variable in the caller MUST
be the same in the caller and callee. It IS the same address in the
non-optimized build.
If you dereference the address in gets_ptr, the program core dumps.
More information about the Gcc-bugs
mailing list