diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-04-03 08:53:48 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@gcc.gnu.org> | 2012-04-03 08:53:48 +0000 |
commit | 90b2952fa43b86c74d7ad99893f757abf30788f5 (patch) | |
tree | cc5e77909adaab9066b999db0a65b4bc9ed6c0ff /gcc/config/vms | |
parent | 8a1da634352052e0094ae44c31360e3976239542 (diff) | |
download | gcc-90b2952fa43b86c74d7ad99893f757abf30788f5.zip gcc-90b2952fa43b86c74d7ad99893f757abf30788f5.tar.gz gcc-90b2952fa43b86c74d7ad99893f757abf30788f5.tar.bz2 |
vms-c.c (vms_pragma_nomember_alignment): Handle 'byte' alignment.
2012-04-03 Tristan Gingold <gingold@adacore.com>
* config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
'byte' alignment.
(vms_c_common_override_options): Allow parameterless variadic
functions.
From-SVN: r186102
Diffstat (limited to 'gcc/config/vms')
-rw-r--r-- | gcc/config/vms/vms-c.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/vms/vms-c.c b/gcc/config/vms/vms-c.c index 6f8a1cf..09172b2 100644 --- a/gcc/config/vms/vms-c.c +++ b/gcc/config/vms/vms-c.c @@ -120,7 +120,9 @@ vms_pragma_nomember_alignment (cpp_reader *pfile ATTRIBUTE_UNUSED) if (arg[0] == '_' && arg[1] == '_') arg += 2; - if (strcmp (arg, "word") == 0) + if (strcmp (arg, "byte") == 0) + maximum_field_alignment = 1 * BITS_PER_UNIT; + else if (strcmp (arg, "word") == 0) maximum_field_alignment = 2 * BITS_PER_UNIT; else if (strcmp (arg, "longword") == 0) maximum_field_alignment = 4 * BITS_PER_UNIT; @@ -453,6 +455,9 @@ vms_c_register_includes (const char *sysroot, void vms_c_common_override_options (void) { + /* Allow variadic functions without parameters (as declared in starlet). */ + flag_allow_parameterless_variadic_functions = TRUE; + /* Initialize c_default_pointer_mode. */ switch (flag_vms_pointer_size) { |