aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend/SimplExpr.v
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-02-26 10:41:07 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2012-02-26 10:41:07 +0000
commit2570ddd61b1c98b62c8d97fce862654535696844 (patch)
treee9a652b115045a3b2c4ade69ec3cc3fdad429b54 /cfrontend/SimplExpr.v
parent65cc3738e7436e46f70c0508638a71fbb49c50a8 (diff)
downloadcompcert-kvx-2570ddd61b1c98b62c8d97fce862654535696844.tar.gz
compcert-kvx-2570ddd61b1c98b62c8d97fce862654535696844.zip
- Support for _Alignof(ty) operator from ISO C 2011
and __alignof__(ty), __alignof__(expr) from GCC. - Resurrected __builtin_memcpy_aligned, useful for files generated by Scade KCG 6. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1827 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'cfrontend/SimplExpr.v')
-rw-r--r--cfrontend/SimplExpr.v2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfrontend/SimplExpr.v b/cfrontend/SimplExpr.v
index 7b37692a..3144b65e 100644
--- a/cfrontend/SimplExpr.v
+++ b/cfrontend/SimplExpr.v
@@ -214,6 +214,8 @@ Fixpoint transl_expr (dst: destination) (a: C.expr) : mon (list statement * expr
error (msg "SimplExpr.transl_expr: val")
| C.Esizeof ty' ty =>
ret (finish dst nil (Esizeof ty' ty))
+ | C.Ealignof ty' ty =>
+ ret (finish dst nil (Ealignof ty' ty))
| C.Evalof l ty =>
do (sl1, a1) <- transl_expr For_val l;
do (sl2, a2) <- transl_valof (C.typeof l) a1;