aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-09-25 21:31:57 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-09-25 21:31:57 +0200
commitc420bc8d3b87d71c38209b5ab8bca22875466362 (patch)
tree0b8e76fc0421b1642571eb27a53acb94f246bf73 /cfrontend
parent5ca4b192499ee4829aee1256a3bebf2318c68108 (diff)
downloadcompcert-kvx-c420bc8d3b87d71c38209b5ab8bca22875466362.tar.gz
compcert-kvx-c420bc8d3b87d71c38209b5ab8bca22875466362.zip
__builtin_expect defined as its first argument
Diffstat (limited to 'cfrontend')
-rw-r--r--cfrontend/C2C.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/cfrontend/C2C.ml b/cfrontend/C2C.ml
index dc25b516..421c4b07 100644
--- a/cfrontend/C2C.ml
+++ b/cfrontend/C2C.ml
@@ -157,9 +157,10 @@ let ais_annot_functions =
let builtins_generic = {
builtin_typedefs = [];
builtin_functions =
- ais_annot_functions
- @
+ ais_annot_functions @
[
+ "__builtin_expect",
+ (TInt(ILong, []), [TInt(ILong, []); TInt(ILong, [])], false);
(* Integer arithmetic *)
"__builtin_bswap64",
(TInt(IULongLong, []), [TInt(IULongLong, [])], false);