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: RFA: PATCH to finalize_record_size to avoid ABI changes from -Wpacked (c++/41788)


On Fri, Apr 9, 2010 at 4:59 PM, Jason Merrill <jason@redhat.com> wrote:
> Bug 41788 pointed out that -Wpacked changed the layout of a class by
> unsetting TYPE_PACKED when it seemed unnecessary. ?For 4.5 I fixed that bug
> by making it clear that the flag is actually necessary for that testcase,
> but in general it seems wrong for the compiler to change layout based on a
> warning flag. ?So this patch changes finalize_record_size to only give the
> warning, not actually unset the flag.
>
> Tested x86_64-unknown-linux-gnu. ?OK for trunk?
>

Ok.

Thanks,
RIchard.


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