File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -784,6 +784,14 @@ endif
784
784
ifeq ($(F_COMPILER), FLANG)
785
785
CCOMMON_OPT += -DF_INTERFACE_FLANG
786
786
FCOMMON_OPT += -Mrecursive -Kieee
787
+ ifeq ($(OSNAME), Linux)
788
+ ifeq ($(ARCH), x86_64)
789
+ FLANG_VENDOR := $(shell expr `$(FC) --version|cut -f 1 -d "."|head -1`)
790
+ ifeq ($(FLANG_VENDOR),AOCC)
791
+ FCOMMON_OPT += -fno-unroll-loops
792
+ endif
793
+ endif
794
+ endif
787
795
ifdef BINARY64
788
796
ifdef INTERFACE64
789
797
ifneq ($(INTERFACE64), 0)
@@ -1271,11 +1279,7 @@ endif
1271
1279
1272
1280
override CFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR)
1273
1281
override PFLAGS += $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR) -DPROFILE $(COMMON_PROF)
1274
- ifeq ($(F_COMPILER),FLANG)
1275
- override FFLAGS += $(filter-out -O2 -O3,$(COMMON_OPT)) -O1 $(FCOMMON_OPT)
1276
- else
1277
1282
override FFLAGS += $(COMMON_OPT) $(FCOMMON_OPT)
1278
- endif
1279
1283
override FPFLAGS += $(FCOMMON_OPT) $(COMMON_PROF)
1280
1284
#MAKEOVERRIDES =
1281
1285
You can’t perform that action at this time.
0 commit comments