This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++0x] contiguous bitfields race implementation


On 09/02/2011 10:38 AM, Richard Guenther wrote:
On Fri, Sep 2, 2011 at 4:10 PM, Jason Merrill<jason@redhat.com> wrote:
I wonder what would break if C++ just set TYPE_SIZE to the as-base size?

Good question. Probably argument passing, as the as-base size wouldn't get a proper mode assigned form layout_type then(?) for small structs?

Classes for which the as-base size is different are passed by invisible reference, so that wouldn't be an issue.


But layout_decl would get the wrong size for variables and fields of the type, so that won't work.

Perhaps it's time to get serious about the change I talked about in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22488#c42 ...

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]