diff options
author | Richard Henderson <rth@redhat.com> | 2003-12-05 11:13:04 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-12-05 11:13:04 -0800 |
commit | 5849d27c78186fafec6b265c67806d643bb67c88 (patch) | |
tree | 8fbccab74dd7a72e479d8deb49f89cc34e915882 /gcc/config | |
parent | 5c626c91474a653e1c3cf9e35b7e7609b2118a67 (diff) | |
download | gcc-5849d27c78186fafec6b265c67806d643bb67c88.zip gcc-5849d27c78186fafec6b265c67806d643bb67c88.tar.gz gcc-5849d27c78186fafec6b265c67806d643bb67c88.tar.bz2 |
alpha.c (alpha_build_builtin_va_list): Add dummy field to suppress -Wpadded warnings.
* config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
field to suppress -Wpadded warnings.
From-SVN: r74342
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index c540d5a..525ae3e 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -6083,7 +6083,7 @@ function_value (tree valtype, tree func ATTRIBUTE_UNUSED, static tree alpha_build_builtin_va_list (void) { - tree base, ofs, record, type_decl; + tree base, ofs, space, record, type_decl; if (TARGET_ABI_OPEN_VMS || TARGET_ABI_UNICOSMK) return ptr_type_node; @@ -6095,9 +6095,16 @@ alpha_build_builtin_va_list (void) /* C++? SET_IS_AGGR_TYPE (record, 1); */ + /* Dummy field to prevent alignment warnings. */ + space = build_decl (FIELD_DECL, NULL_TREE, integer_type_node); + DECL_FIELD_CONTEXT (space) = record; + DECL_ARTIFICIAL (space) = 1; + DECL_IGNORED_P (space) = 1; + ofs = build_decl (FIELD_DECL, get_identifier ("__offset"), integer_type_node); DECL_FIELD_CONTEXT (ofs) = record; + TREE_CHAIN (ofs) = space; base = build_decl (FIELD_DECL, get_identifier ("__base"), ptr_type_node); |