[C++ PATCH] Don't create an INTEGER_CST for aggregates (empty structs)
Jason Merrill
jason@redhat.com
Sun Mar 13 19:25:00 GMT 2005
On 12 Mar 2005 17:39:43 +0100, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> chris jefferson <caj@cs.york.ac.uk> writes:
> | thought you would have done) increase the stack pointer as far as it
> | was done previously, but just make the compiler never write to the
> | place where empty_struct is passed, and never read from it (because of
> | course it never should).
>
> That is another possibility. I was just going to the point of
> eliminating the "wasted" space
You need to allocate the space to conform to the ABI. You don't need to do
anything with it.
Jason
More information about the Libstdc++
mailing list