diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-11-05 08:27:53 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-11-05 08:27:53 +0000 |
commit | 61b43d3e1be5e8aad11cb3036fdb1872f0f363c3 (patch) | |
tree | 0e6d566782ffa72fcf36df4082cfe22984694549 /cparser/Parser.mly | |
parent | 2f4b36709da7eed73bd9d7119c3d91e101cd331f (diff) | |
download | compcert-61b43d3e1be5e8aad11cb3036fdb1872f0f363c3.tar.gz compcert-61b43d3e1be5e8aad11cb3036fdb1872f0f363c3.zip |
Make it possible to use the "__packed__" keyword as an attribute name
(same as for "const").
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2361 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cparser/Parser.mly')
-rw-r--r-- | cparser/Parser.mly | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Parser.mly b/cparser/Parser.mly index cd515ded..4121ee52 100644 --- a/cparser/Parser.mly +++ b/cparser/Parser.mly @@ -1312,6 +1312,7 @@ primary_attr: * attribute lists, is translated * to aconst *)*/ | CONST { VARIABLE "aconst" } +| PACKED { VARIABLE "__packed__" } | IDENT COLON CST_INT { VARIABLE (fst $1 ^ ":" ^ fst $3) } |