diff options
Diffstat (limited to 'runtime/Intrinsic')
-rw-r--r-- | runtime/Intrinsic/Makefile | 2 | ||||
-rw-r--r-- | runtime/Intrinsic/memset.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/Intrinsic/Makefile b/runtime/Intrinsic/Makefile index 721b9772..849bfeee 100644 --- a/runtime/Intrinsic/Makefile +++ b/runtime/Intrinsic/Makefile @@ -17,4 +17,6 @@ BYTECODE_LIBRARY=1 DEBUG_RUNTIME=1 NO_PEDANTIC=1 +C.Flags += -fno-builtin + include $(LEVEL)/Makefile.common diff --git a/runtime/Intrinsic/memset.c b/runtime/Intrinsic/memset.c index ee9ecb87..bef85e6a 100644 --- a/runtime/Intrinsic/memset.c +++ b/runtime/Intrinsic/memset.c @@ -10,7 +10,7 @@ #include <stdlib.h> void *memset(void * dst, int s, size_t count) { - char * a = dst; + volatile char * a = dst; while (count-- > 0) *a++ = s; return dst; |