Changes between Version 7 and Version 8 of doc/app/recommended_compiler_options
- Timestamp:
- Sep 8, 2020 8:06:43 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/app/recommended_compiler_options
v7 v8 85 85 == '''GNU Fortran for debugging:''' 86 86 87 {{{gfortran -O0 - Wall -Wextra -pedantic -fcheck=all -fbacktrace}}}87 {{{gfortran -O0 -ffpe-trap=invalid,zero,overflow -Wall -Wextra -pedantic -fcheck=all -fbacktrace}}} 88 88 89 89 ||='''Option''' =||='''meaning''' =|| 90 90 |----------- 91 91 ||-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. || 92 93 ||-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. || 93 94 ||-Wextra ||Enables some warning options for usages of language features which may be problematic. This currently includes -Wcompare-reals and -Wunused-parameter. || 94 95 ||-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. || 96 97 ||-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. || 97 98