Addedd --freestanding to prevent compiler calling memcpy

This commit is contained in:
Georg Hager
2019-03-14 09:35:56 +01:00
parent 95e917f2c5
commit 13f1b03e9b
4 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -fopenmp
endif
CFLAGS = -Ofast -std=c99 -pthread $(OPENMP)
CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP)
LFLAGS = -pthread $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =

View File

@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -fopenmp
endif
CFLAGS = -Ofast -std=c99 -pthread $(OPENMP)
CFLAGS = -Ofast -ffreestanding -std=c99 -pthread $(OPENMP)
LFLAGS = -pthread $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =

View File

@@ -5,7 +5,7 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -qopenmp
endif
CFLAGS = -Ofast -xhost -std=c99 -pthread $(OPENMP)
CFLAGS = -qopt-report -Ofast -xHost -std=c99 -ffreestanding -pthread $(OPENMP)
LFLAGS = -pthread $(OPENMP)
DEFINES = -D_GNU_SOURCE
INCLUDES =

View File

@@ -36,7 +36,7 @@ double copy(
double S, E;
S = getTimeStamp();
#pragma omp parallel for
#pragma omp parallel for
for (int i=0; i<N; i++) {
a[i] = b[i];
}