This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [C++ PATCH] Don't create an INTEGER_CST for aggregates (emptystructs)
- From: Jason Merrill <jason at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: chris jefferson <caj at cs dot york dot ac dot uk>, Paolo Carlini <pcarlini at suse dot de>, Andrew Pinski <pinskia at physics dot uc dot edu>, GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 13 Mar 2005 14:25:34 -0500
- Subject: Re: [C++ PATCH] Don't create an INTEGER_CST for aggregates (emptystructs)
- References: <9a23c41857b1b1161e9d02c278ba5592@physics.uc.edu><42308EA6.1010408@suse.de><85c98d4cd9d0e7435f8517e9a69ac136@physics.uc.edu><m3ll8ty00m.fsf@uniton.integrable-solutions.net><4232B7B4.4040207@suse.de><m364zxgnvm.fsf@uniton.integrable-solutions.net><4232D742.5000007@cs.york.ac.uk><m3zmx8akds.fsf@uniton.integrable-solutions.net>
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