This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix spurious error from switch-conversion on overaligned types
> On 09 Mar 2017, at 16:16, Richard Biener <richard.guenther@gmail.com> wrote:
>
> I think a simpler fix, doing
>
> type = TYPE_MAIN_VARIANT (type);
>
> should work equally well.
Hmm, indeed. Thanks for the super fast review and suggestion.
You meant that we can do that unconditionally (not only for
types with an alignment greater than their size), right ?
Olivier