From e77d3e706e056bb2cd58ae0a7cf6f97fb893ccae Mon Sep 17 00:00:00 2001 From: Bernhard Schommer Date: Wed, 21 Sep 2016 10:35:50 +0200 Subject: Allow empty alignment attribute. Bug 18004 --- cparser/Elab.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'cparser/Elab.ml') diff --git a/cparser/Elab.ml b/cparser/Elab.ml index 39cb36b1..f82ae176 100644 --- a/cparser/Elab.ml +++ b/cparser/Elab.ml @@ -429,6 +429,7 @@ let extract_alignas loc a = | [AInt n] when is_power_of_two n -> AAlignas (Int64.to_int n) | [AInt n] -> error loc "requested alignment is not a power of 2"; a | [_] -> error loc "requested alignment is not an integer constant"; a + | [] -> a (* Use the default alignment as the gcc does *) | _ -> error loc "'aligned' attribute takes no more than 1 argument"; a end | _ -> a -- cgit