This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove "keep_aligning" from get_inner_reference
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Biener <richard dot guenther at gmail dot com>, Martin Jambor <mjambor at suse dot cz>, Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 22 Apr 2014 11:25:16 +0200
- Subject: Re: [PATCH] Remove "keep_aligning" from get_inner_reference
- Authentication-results: sourceware.org; auth=none
- References: <20130910193228 dot GE6732 at virgil dot suse> <9263677 dot RUM7yLBKlb at polaris> <DUB129-W742007946565A88A97A64DE4590 at phx dot gbl>
> Sure, and thanks again for your help.
Thanks!
> I was not able to find any difference on the generated code with
> or without that patch.
Yes, my gut feeling is that TYPE_ALIGN_OK is really obsolete now. It is set
in a single place in the compiler (gcc-interface/decl.c:gnat_to_gnu_entity):
/* Tell the middle-end that objects of tagged types are guaranteed to
be properly aligned. This is necessary because conversions to the
class-wide type are translated into conversions to the root type,
which can be less aligned than some of its derived types. */
if (Is_Tagged_Type (gnat_entity)
|| Is_Class_Wide_Equivalent_Type (gnat_entity))
TYPE_ALIGN_OK (gnu_type) = 1;
but we changed the way these conversions are done some time ago.
--
Eric Botcazou