Changes between Version 7 and Version 8 of doc/app/recommended_compiler_options


Ignore:
Timestamp:
Sep 8, 2020 8:06:43 AM (5 years ago)
Author:
raasch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/app/recommended_compiler_options

    v7 v8  
    8585== '''GNU Fortran for debugging:'''
    8686
    87 {{{gfortran -O0 -Wall -Wextra -pedantic -fcheck=all -fbacktrace}}}
     87{{{gfortran -O0 -ffpe-trap=invalid,zero,overflow -Wall -Wextra -pedantic -fcheck=all -fbacktrace}}}
    8888
    8989||='''Option''' =||='''meaning''' =||
    9090|-----------
    9191||-O0          ||Reduce compilation time and make debugging produce the expected results.  ||
     92||-ffpe-trap=  ||Specifies a list of IEEE exceptions when a Floating Point Execption (FPE) should be raised. ''invalid'': invalid floating point operation, such as SQRT(-1.0), ''zero'': division by zero, ''overflow'': overflow in a floating point operation. ||
    9293||-Wall        ||Enables commonly used warning options pertaining to usage that we recommend avoiding and that we believe are easy to avoid. This currently includes -Waliasing, -Wampersand, -Wsurprising, -Wintrinsics-std, -Wno-tabs, -Wintrinsic-shadow and -Wline-truncation.  ||
    9394||-Wextra      ||Enables some warning options for usages of language features which may be problematic. This currently includes -Wcompare-reals and -Wunused-parameter.  ||
    9495||-pedantic    ||Issue warnings for uses of extensions to Fortran 95.  ||
    95 ||-fcheck=all  ||Enable all run-time test of -fcheck.  ||
     96||-fcheck=all  ||Enable all run-time tests of -fcheck.  ||
    9697||-fbacktrace  ||Specify that, when a runtime error is encountered or a deadly signal is emitted (segmentation fault, illegal instruction, bus error or floating-point exception), the Fortran runtime library should output a backtrace of the error.  ||
    9798