This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/56334] __attribute__((aligned)) documentation is misleading
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Feb 2013 01:09:56 +0000
- Subject: [Bug other/56334] __attribute__((aligned)) documentation is misleading
- Auto-submitted: auto-generated
- References: <bug-56334-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56334
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|__attribute__((aligned)) |__attribute__((aligned))
|documentation is outdated |documentation is misleading
|and misleading. |
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-15 01:09:56 UTC ---
(In reply to comment #0)
> (1) As of the closure of bug 33721, we generate code to align variables at
> runtime when the linker cannot guarantee a given alignment at link time.
No, 33721 is about stack variables and not static allocated variables which
still is limited by the linker.
> (2) The statement "See your linker documentation for further information" is
> entirely unhelpful, because the GNU ld documentation makes no mention of
> alignment limitations (or, for that matter, of aligning variables at all).
That is because it is limited not by the GNU ld but rather the file formats
that are in use for the target (or non GNU linkers). So I think the
documentation is still correct in what is says, it just needs to cleared up
slightly and also talked about stack allocated variable which have no linker
issue involved.