Skip to content

Commit

Permalink
Fix SPEC CPU2006 config file for AT 12.0 (GCC 8)
Browse files Browse the repository at this point in the history
Since GCC 8.1, gfortran issues an error "when an actual argument
contains too few elements for a dummy argument" [1].  This behaviour
breaks the build of 416.gamess, with error messages similar to:

    ecp.fppized.f:402:15:

           CALL ZFN(ZFNLM,NPNP-1,ZLM,LMF,LMX,LMY,LMZ)
                   1
    Error: Actual argument contains too few elements for dummy argument 'zfnlm' (121/125) at (1)

as described more thoroughly in bug report #549 [2].

This patch adds gfortran's '-std=legacy' option (via 'FPORTABILITY') to
the configuration file for SPEC CPU2006 tests, as suggested by the
release notes for GCC 8.1 [1].

[1] https://gcc.gnu.org/gcc-8/changes.html#fortran

[2] #549

Signed-off-by: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
  • Loading branch information
inconstante committed Jul 19, 2018
1 parent 394b5fc commit 8a7e882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fvtr/speccpu2006/at10.0-sniff32.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ strict_rundir_verify=0
CPORTABILITY = -DSPEC_CPU_LINUX_PPC -std=gnu89
EXTRA_CFLAGS = -fno-strict-aliasing

416.gamess=default=default=default:
FPORTABILITY = -std=legacy

462.libquantum=default=default=default:
CPORTABILITY = -DSPEC_CPU_LINUX

Expand Down
3 changes: 3 additions & 0 deletions fvtr/speccpu2006/at10.0-sniff64.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ EXTRA_CFLAGS = -fno-strict-aliasing
403.gcc=default=default=default:
PORTABILITY = -DSPEC_CPU_LP64

416.gamess=default=default=default:
FPORTABILITY = -std=legacy

462.libquantum=default=default=default:
CPORTABILITY = -DSPEC_CPU_LINUX

Expand Down

0 comments on commit 8a7e882

Please sign in to comment.