Skip to content

Commit 7583810

Browse files
committed
Remove _Float16 hack from VSTlib, no longer needed with CompCert 3.15
1 parent 9091d31 commit 7583810

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

lib/CoqMakefile.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CFLAGS=-I$(INCLUDE)
44
CC=gcc
55

66
proof/math_extern.v: $(SRC)/math_extern.c
7-
clightgen -flongdouble -normalize -DCOMPCERT $< -o $@
7+
clightgen -flongdouble -normalize $< -o $@
88

99
proof/malloc_extern.v: $(SRC)/malloc_extern.c
1010
clightgen -normalize $< -o $@
@@ -23,7 +23,7 @@ test/incr.v: test/incr.c
2323
test/incr_main.v: test/incr_main.c
2424
clightgen -I$(INCLUDE) -normalize $<
2525
test/testmath.v: test/testmath.c
26-
clightgen -I$(INCLUDE) -normalize -DCOMPCERT $<
26+
clightgen -I$(INCLUDE) -normalize $<
2727

2828
tests: test/incr
2929

lib/proof/src/math_extern.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#ifdef COMPCERT
2-
/* still Starting with CompCert 3.15 (and VST 2.15), don't need this hack
3-
any more, but still here for VSTlib compatibility with older versions
4-
of CompCert/VST */
5-
typedef float _Float16; /* _Float16 is a MacOS thing that CompCert doesn't support */
6-
#endif
71
#include <math.h>
82

93
/* Note regard 'long double':

lib/test/testmath.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
#ifdef COMPCERT
2-
/* still Starting with CompCert 3.15 (and VST 2.15), don't need this hack
3-
any more, but still here for VSTlib compatibility with older versions
4-
of CompCert/VST */
5-
typedef float _Float16; /* _Float16 is a MacOS thing that CompCert doesn't support */
6-
#endif
71
#include <math.h>
82

93
double f(double t) {

0 commit comments

Comments
 (0)