This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid bugs like PR68273 to trigger
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Biener <rguenther at suse dot de>
- Date: Sun, 14 Feb 2016 23:58:50 +0100
- Subject: Re: [PATCH] Avoid bugs like PR68273 to trigger
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1602081100180 dot 31122 at t29 dot fhfr dot qr> <1675709 dot AB1kZZn0xz at polaris> <20160214214459 dot GV3017 at tucnak dot redhat dot com>
> No, it is a major deficiency in the backends.
Back-ends were obviously written with the natural alignment of types in mind
and were not prepared for overaligned non-aggregate types. Fixing MIPS will
not fix the other dozen and one can wonder, as was already mentioned by a few
other people, whether the proper fix is not in the middle-end instead, because
adding a dozen of TYPE_MAIN_VARIANT (...) in a dozen of back-ends is IMO not a
good example of robust engineering.
--
Eric Botcazou