aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-05 08:27:53 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-11-05 08:27:53 +0000
commit61b43d3e1be5e8aad11cb3036fdb1872f0f363c3 (patch)
tree0e6d566782ffa72fcf36df4082cfe22984694549
parent2f4b36709da7eed73bd9d7119c3d91e101cd331f (diff)
downloadcompcert-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
-rw-r--r--cparser/Parser.mly1
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) }