- changed status to wontfix
check for -traditional in FPP's behaviour
Issue #2566
wontfix
Cactus passes Fortran code (at least with extensions .F77 .F and .F90) through the C preprocessor in FPP passing FPPFLAGS.
This cpp must use traditional (pre-ANSI) behaviour, ie be string and not token based to preserve whitespace in Fortran fixed format code and handle concatenation using FOO/**/BAR
correctly.
Getting this wrong by setting eg only FPP in an option list results in strange error messages.
Cactus' configure should check that FPP and FPPFLAGS behave as expected. Eg by processing:
TRAD/**/ITIONAL
which produces:
TRADITIONAL
with --traditional
and
TRAD ITIONAL
without, so one can grep
for the expected string.
Comments (1)
-
- Log in to comment
Actually Cactus itself contains such a check in
src/include/cctk_Types.h
:so really it should support both. Namely if code fails if
FPP
is not traditional then that could should be changed so that it works both with and without traditional.