This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61053] [4.9/4.10 Regression] _Alignas(long long) reduces alignment of long long
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 08:22:55 +0000
- Subject: [Bug c/61053] [4.9/4.10 Regression] _Alignas(long long) reduces alignment of long long
- Auto-submitted: auto-generated
- References: <bug-61053-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61053
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jun 4 08:22:22 2014
New Revision: 211214
URL: http://gcc.gnu.org/viewcvs?rev=211214&root=gcc&view=rev
Log:
PR c/61053
c-family/
* c-common.c (min_align_of_type): New function factored out from...
(c_sizeof_or_alignof_type): ...here.
* c-common.h (min_align_of_type): Declare.
c/
* c-decl.c (grokdeclarator): Use min_align_of_type instead of
TYPE_ALIGN_UNIT.
testsuite/
* gcc.dg/pr61053.c: New test.
Added:
branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr61053.c
Modified:
branches/gcc-4_9-branch/gcc/c-family/ChangeLog
branches/gcc-4_9-branch/gcc/c-family/c-common.c
branches/gcc-4_9-branch/gcc/c-family/c-common.h
branches/gcc-4_9-branch/gcc/c/ChangeLog
branches/gcc-4_9-branch/gcc/c/c-decl.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog