diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-04-11 16:14:42 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-04-11 16:14:42 +0200 |
commit | adc23369a9cdbae235916bf44560b8469dd4831f (patch) | |
tree | e8510681b9eaa6a4e663ce29a87e2a504b4839c1 /runtime | |
parent | fa27e482f043116bb39ff4d410f12f0b09a18f3b (diff) | |
download | compcert-kvx-adc23369a9cdbae235916bf44560b8469dd4831f.tar.gz compcert-kvx-adc23369a9cdbae235916bf44560b8469dd4831f.zip |
cleaner: put all the special types, defines etc. in one header file
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Makefile | 3 | ||||
-rw-r--r-- | runtime/include/ccomp_k1c_fixes.h | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/runtime/Makefile b/runtime/Makefile index 6be85728..174a0a41 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -41,6 +41,9 @@ LIB=libcompcert.a INCLUDES=include/float.h include/stdarg.h include/stdbool.h \ include/stddef.h include/varargs.h include/stdalign.h \ include/stdnoreturn.h +ifeq ($(ARCH),mppa_k1c) +INCLUDES += include/ccomp_k1c_fixes.h +endif VPATH=$(ARCH) diff --git a/runtime/include/ccomp_k1c_fixes.h b/runtime/include/ccomp_k1c_fixes.h new file mode 100644 index 00000000..679ab1ac --- /dev/null +++ b/runtime/include/ccomp_k1c_fixes.h @@ -0,0 +1,11 @@ +#ifndef __CCOMP_KIC_FIXES_H +#define __CCOMP_KIC_FIXES_H + +#undef __GNUC__ +#define __thread + +struct __int128_ccomp { long __int128_ccomp_low; long __int128_ccomp_high; }; + +#define __int128 struct __int128_ccomp + +#endif |