Skip to content
Snippets Groups Projects
Commit 4a8c1a65 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 16/03/2023: GCC: workaround bug 109157 with -fbounds-check

(cherry picked from commit 174d4eda)
parent 1e032efa
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,9 @@ OPT = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK) ...@@ -54,6 +54,9 @@ OPT = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
OPT0 = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK) OPT0 = $(OPT_BASE) $(OPT_PERF0) $(OPT_CHECK)
OPT_NOCB = $(OPT_BASE) $(OPT_PERF0) OPT_NOCB = $(OPT_BASE) $(OPT_PERF0)
CFLAGS += -g -O0 CFLAGS += -g -O0
#-fbounds-check is bugged for GCC 11 and 12 (up to at least 12.2) in some special cases (GCC bug 109157)
OBJS_NOBOUNDSCHECK = spll_mode_write_diachro.o
$(OBJS_NOBOUNDSCHECK) : OPT = $(OPT_BASE) $(OPT_PERF0) -finit-real=nan
endif endif
ifeq "$(OPTLEVEL)" "OPENACCDEFONLY" ifeq "$(OPTLEVEL)" "OPENACCDEFONLY"
CPPFLAGS += -DMNH_OPENACC -D_FAKEOPENACC CPPFLAGS += -DMNH_OPENACC -D_FAKEOPENACC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment