The attribute __align__ may be used without an argument.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 7 Aug 2008 14:04:05 +0000 (14:04 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 7 Aug 2008 14:04:05 +0000 (14:04 +0000)
[r21046]

parser.c

index ba8db6e..9ca64c1 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1614,6 +1614,12 @@ static decl_modifiers_t parse_gnu_attribute(gnu_attribute_t **attributes)
                                        break;
 
                                case GNU_AK_ALIGNED:
+                                       /* __align__ may be used without an argument */
+                                       if (attribute->have_arguments) {
+                                               parse_gnu_attribute_const_arg(attribute);
+                                       }
+                                       break;
+
                                case GNU_AK_FORMAT_ARG:
                                case GNU_AK_REGPARM:
                                case GNU_AK_TRAP_EXIT: