summaryrefslogtreecommitdiff
path: root/cparser
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-05 08:27:53 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-05 08:27:53 +0000
commit61b43d3e1be5e8aad11cb3036fdb1872f0f363c3 (patch)
tree0e6d566782ffa72fcf36df4082cfe22984694549 /cparser
parent2f4b36709da7eed73bd9d7119c3d91e101cd331f (diff)
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')
-rw-r--r--cparser/Parser.mly1
1 files changed, 1 insertions, 0 deletions
diff --git a/cparser/Parser.mly b/cparser/Parser.mly
index cd515de..4121ee5 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) }