diff options
author | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 08:53:48 +0000 |
---|---|---|
committer | gingold <gingold@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 08:53:48 +0000 |
commit | bc05341c10553db8c7abbe942dc5f6e683450a24 (patch) | |
tree | cc5e77909adaab9066b999db0a65b4bc9ed6c0ff /gcc | |
parent | 9675848734503992c5759b73f079c06f684e63e2 (diff) | |
download | gcc-bc05341c10553db8c7abbe942dc5f6e683450a24.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186102 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/vms/vms-c.c | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72e14f4d859..7c1d1b3bb20 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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. + 2012-04-03 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/52835 diff --git a/gcc/config/vms/vms-c.c b/gcc/config/vms/vms-c.c index 6f8a1cf6138..09172b261ab 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) { |