This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/60336] va_start corrupts 6-th argument in case of empty type used before the format string
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Feb 2014 22:35:53 +0000
- Subject: [Bug target/60336] va_start corrupts 6-th argument in case of empty type used before the format string
- Auto-submitted: auto-generated
- References: <bug-60336-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60336
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |target
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #2)
> Should g++ put pass the empty struct on stack?
It is a target bug if it is passing on the stack. Note in C++, the size of the
struct is 1 while in C, the size is 0.