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: fix spurious error from switch-conversion on overaligned types


On Thu, Mar 9, 2017 at 4:42 PM, Olivier Hainque <hainque@adacore.com> wrote:
>
>> 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 ?

Yes, unconditionally.

Richard.

> Olivier
>


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