Skip to content

Commit

Permalink
230915.201652.HKT let the fortran compilers be calm with the dll expo…
Browse files Browse the repository at this point in the history
…rtation directives
  • Loading branch information
zaikunzhang committed Sep 15, 2023
1 parent 8b85e68 commit 03baa39
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions fortran/examples/bobyqa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ftest: FC := flang -Wall -Wextra -std=f$(FSTD) -Mstandard

# GNU gfortran: due to `error stop` and `backtrace`, we must either compile wit no `-std` or
# use `-std=f20xy -fall-intrinsics` with xy >= 18.
gtest: FC := gfortran -Wall -Wextra -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics
gtest: FC := gfortran -Wall -Wextra -Wno-attributes -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics

# Intel ifort
itest: FC := ifort -warn all -stand f$(FS)
itest: FC := ifort -warn all -diag-disable:7025,7841 -stand f$(FS)

# NAG nagfor
ntest: FC := nagfor -C -f$(FSTD)
Expand All @@ -72,7 +72,7 @@ RFORT := $(shell find -L /opt/arm -type f -executable -name armflang -print 2> /
rtest: FC := $(RFORT) -Wall -Wextra -std=f$(FSTD) -Mstandard

# Intel ifx
xtest: FC := ifx -warn all -stand f$(FS)
xtest: FC := ifx -warn all -diag-disable:7025,7841 -stand f$(FS)

####################################################################################################
# Compile the binary needed for a compiler-specific test
Expand Down
6 changes: 3 additions & 3 deletions fortran/examples/cobyla/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ftest: FC := flang -Wall -Wextra -std=f$(FSTD) -Mstandard

# GNU gfortran: due to `error stop` and `backtrace`, we must either compile wit no `-std` or
# use `-std=f20xy -fall-intrinsics` with xy >= 18.
gtest: FC := gfortran -Wall -Wextra -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics
gtest: FC := gfortran -Wall -Wextra -Wno-attributes -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics

# Intel ifort
itest: FC := ifort -warn all -stand f$(FS)
itest: FC := ifort -warn all -diag-disable:7025,7841 -stand f$(FS)

# NAG nagfor
ntest: FC := nagfor -C -f$(FSTD)
Expand All @@ -72,7 +72,7 @@ RFORT := $(shell find -L /opt/arm -type f -executable -name armflang -print 2> /
rtest: FC := $(RFORT) -Wall -Wextra -std=f$(FSTD) -Mstandard

# Intel ifx
xtest: FC := ifx -warn all -stand f$(FS)
xtest: FC := ifx -warn all -diag-disable:7025,7841 -stand f$(FS)

####################################################################################################
# Compile the binary needed for a compiler-specific test
Expand Down
6 changes: 3 additions & 3 deletions fortran/examples/lincoa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ftest: FC := flang -Wall -Wextra -std=f$(FSTD) -Mstandard

# GNU gfortran: due to `error stop` and `backtrace`, we must either compile wit no `-std` or
# use `-std=f20xy -fall-intrinsics` with xy >= 18.
gtest: FC := gfortran -Wall -Wextra -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics
gtest: FC := gfortran -Wall -Wextra -Wno-attributes -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics

# Intel ifort
itest: FC := ifort -warn all -stand f$(FS)
itest: FC := ifort -warn all -diag-disable:7025,7841 -stand f$(FS)

# NAG nagfor
ntest: FC := nagfor -C -f$(FSTD)
Expand All @@ -73,7 +73,7 @@ RFORT := $(shell find -L /opt/arm -type f -executable -name armflang -print 2> /
rtest: FC := $(RFORT) -Wall -Wextra -std=f$(FSTD) -Mstandard

# Intel ifx
xtest: FC := ifx -warn all -stand f$(FS)
xtest: FC := ifx -warn all -diag-disable:7025,7841 -stand f$(FS)

####################################################################################################
# Compile the binary needed for a compiler-specific test
Expand Down
6 changes: 3 additions & 3 deletions fortran/examples/newuoa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ftest: FC := flang -Wall -Wextra -std=f$(FSTD) -Mstandard

# GNU gfortran: due to `error stop` and `backtrace`, we must either compile wit no `-std` or
# use `-std=f20xy -fall-intrinsics` with xy >= 18.
gtest: FC := gfortran -Wall -Wextra -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics
gtest: FC := gfortran -Wall -Wextra -Wno-attributes -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics

# Intel ifort
itest: FC := ifort -warn all -stand f$(FS)
itest: FC := ifort -warn all -diag-disable:7025,7841 -stand f$(FS)

# NAG nagfor
ntest: FC := nagfor -C -f$(FSTD)
Expand All @@ -72,7 +72,7 @@ RFORT := $(shell find -L /opt/arm -type f -executable -name armflang -print 2> /
rtest: FC := $(RFORT) -Wall -Wextra -std=f$(FSTD) -Mstandard

# Intel ifx
xtest: FC := ifx -warn all -stand f$(FS)
xtest: FC := ifx -warn all -diag-disable:7025,7841 -stand f$(FS)

####################################################################################################
# Compile the binary needed for a compiler-specific test
Expand Down
6 changes: 3 additions & 3 deletions fortran/examples/uobyqa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ftest: FC := flang -Wall -Wextra -std=f$(FSTD) -Mstandard

# GNU gfortran: due to `error stop` and `backtrace`, we must either compile wit no `-std` or
# use `-std=f20xy -fall-intrinsics` with xy >= 18.
gtest: FC := gfortran -Wall -Wextra -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics
gtest: FC := gfortran -Wall -Wextra -Wno-attributes -Wno-function-elimination -std=f$(FSTD) -fall-intrinsics

# Intel ifort
itest: FC := ifort -warn all -stand f$(FS)
itest: FC := ifort -warn all -diag-disable:7025,7841 -stand f$(FS)

# NAG nagfor
ntest: FC := nagfor -C -f$(FSTD)
Expand All @@ -72,7 +72,7 @@ RFORT := $(shell find -L /opt/arm -type f -executable -name armflang -print 2> /
rtest: FC := $(RFORT) -Wall -Wextra -std=f$(FSTD) -Mstandard

# Intel ifx
xtest: FC := ifx -warn all -stand f$(FS)
xtest: FC := ifx -warn all -diag-disable:7025,7841 -stand f$(FS)

####################################################################################################
# Compile the binary needed for a compiler-specific test
Expand Down
4 changes: 2 additions & 2 deletions fortran/tests/makefiles/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ gtest_i2_r16_d1_tst_c gtest_i4_r16_d1_tst_c gtest_i8_r16_d1_tst_c gtest_i2_r16_d
# protect_parens, realloc_lhs1, recursion, std_intent_in, std_minus0_rounding1, std_mod_proc_name,
# and std_value1.
IFORT := ifort
IFORT := $(IFORT) -diag-disable:7841 # avoid complaints about `attributes dllexport`
IFORT := $(IFORT) -diag-disable:7025,7841 # avoid complaints about `attributes dllexport`
IFORT := $(IFORT) -warn all -debug extended -warn errors -traceback -debug-parameters all #-diag-error-limit 1
# `-auto` causes all local, non-SAVEd variables to be allocated to the run-time stack.
# `-no-heap-arrays`, which is the default for `ifort`, causes the compiler puts automatic arrays
Expand Down Expand Up @@ -645,7 +645,7 @@ stest_i2_r16_d1_tst_c stest_i4_r16_d1_tst_c stest_i8_r16_d1_tst_c stest_i2_r16_d

# Intel ifx
XFORT := ifx
XFORT := $(XFORT) -diag-disable:7841 # avoid complaints about `attributes dllexport`
XFORT := $(XFORT) -diag-disable:7025,7841 # avoid complaints about `attributes dllexport`
XFORT := $(XFORT) -warn all -debug extended -warn errors -traceback -debug-parameters all #-diag-error-limit 1
# `-auto` causes all local, non-SAVEd variables to be allocated to the run-time stack.
# `-no-heap-arrays`, which is the default for `ifort`, causes the compiler puts automatic arrays
Expand Down

0 comments on commit 03baa39

Please sign in to comment.