diff options
author | Martin Sebor <msebor@gcc.gnu.org> | 2018-11-09 10:17:47 -0700 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-11-09 10:17:47 -0700 |
commit | 4c7bd36194e13c45cef93a5d84d0702a0d27de89 (patch) | |
tree | c03d55a7a70661243c37eb7fddc8bd2d673e9754 /gcc/c-family/c-common.h | |
parent | 32999d87d6f422fb6cacea66d2e4ed645e84ebe7 (diff) | |
download | gcc-4c7bd36194e13c45cef93a5d84d0702a0d27de89.zip gcc-4c7bd36194e13c45cef93a5d84d0702a0d27de89.tar.gz gcc-4c7bd36194e13c45cef93a5d84d0702a0d27de89.tar.bz2 |
PR c/87795 - Excessive alignment permitted for functions and labels
gcc/c-family/ChangeLog:
PR c/87795
* c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
gcc/testsuite/ChangeLog:
PR c/87795
* gcc.dg/attr-aligned.c: New test.
From-SVN: r265977
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r-- | gcc/c-family/c-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index a218432..31cc273 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -798,7 +798,7 @@ extern void finish_fname_decls (void); extern const char *fname_as_string (int); extern tree fname_decl (location_t, unsigned, tree); -extern int check_user_alignment (const_tree, bool); +extern int check_user_alignment (const_tree, bool, bool); extern bool check_function_arguments (location_t loc, const_tree, const_tree, int, tree *, vec<location_t> *); extern void check_function_arguments_recurse (void (*) |