From c2c4ae8d472b3403decb8ce8027ee6dc2e972c08 Mon Sep 17 00:00:00 2001 From: mpolacek Date: Thu, 8 May 2014 18:19:09 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210230 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/c-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/c-family/c-common.h') diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index 57b7dceefdc..d34d2bb2eb9 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -758,6 +758,7 @@ extern tree c_wrap_maybe_const (tree, bool); extern tree c_save_expr (tree); extern tree c_common_truthvalue_conversion (location_t, tree); extern void c_apply_type_quals_to_decl (int, tree); +extern unsigned int min_align_of_type (tree); extern tree c_sizeof_or_alignof_type (location_t, tree, bool, bool, int); extern tree c_alignof_expr (location_t, tree); /* Print an error message for invalid operands to arith operation CODE. -- cgit v1.2.1