aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/Makefile
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-08-25 14:55:22 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2017-08-25 14:55:22 +0200
commit4affb2b02e486681b39add0dbaf4f873a91885c8 (patch)
tree06b045ee98934b00c341071758c9b905ecad057f /runtime/Makefile
parent95ed4ea7df3e4b05d623afb9cb65f0eb2653361b (diff)
downloadcompcert-kvx-4affb2b02e486681b39add0dbaf4f873a91885c8.tar.gz
compcert-kvx-4affb2b02e486681b39add0dbaf4f873a91885c8.zip
Prefixed runtime functions.
The runtime functions are prefixed with compcert in order to avoid potential clashes with runtime/builtin functions of other compilers. Bug 22062
Diffstat (limited to 'runtime/Makefile')
-rw-r--r--runtime/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/Makefile b/runtime/Makefile
index 213779a4..27ad6e8c 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -55,13 +55,13 @@ $(LIB): $(OBJS)
$(CASMRUNTIME) -DMODEL_$(MODEL) -DABI_$(ABI) -DENDIANNESS_$(ENDIANNESS) -DSYS_$(SYSTEM) -o $@ $^
# If no asm implementation available, compile the portable C implementation
-# with CompCert. Since CompCert rejects the "__i64_" identifiers, the C
+# with CompCert. Since CompCert rejects the "__compcert_i64_" identifiers, the C
# implementation uses "i64_" identifiers, and we rename them in the
# generated assembly
%.o: c/%.c c/i64.h ../ccomp
../ccomp -O2 -S -o $*.s -I./c c/$*.c
- sed -i -e 's/i64_/__i64_/g' $*.s
+ sed -i -e 's/i64_/__compcert_i64_/g' $*.s
$(CASMRUNTIME) -o $*.o $*.s
@rm -f $*.s