This is the mail archive of the gcc-bugs@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]

[Bug c/61447] _Alignof returns incorrect results for some types/archs


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61447

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |SUSPENDED
   Last reconfirmed|                            |2014-06-09
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
There are more references to _Alignof in the draft that are not in the final
version.  Anyway I think there isn't much to do for this PR right now, so
suspending for now until we have some conclusion about what should happen;
_Alignof (expr) is a GNU extension.  The thing is that in case of EXPR, we
always call c_alignof_expr, but that can't be told that it should produce the
least alignment required for a type of EXPR.  It wouldn't be hard to tweak it,
though.
Or should I close this one?


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