aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Elab.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Elab.ml')
-rw-r--r--cparser/Elab.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index 668b65d8..6b2db3da 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -523,7 +523,7 @@ let enter_gcc_attr loc a =
| [AInt n] -> if check_alignment loc n then [a] else []
| [AInt n; AInt p] ->
if check_alignment loc n && check_alignment loc p then [a] else []
- | [AInt n; AInt p; AInt q] ->
+ | [AInt n; AInt p; AInt q] when q = 0L || q = 1L ->
if check_alignment loc n && check_alignment loc p then [a] else []
| _ -> error loc "ill-formed 'packed' attribute"; []
end