Customized Function Options
-convert <big_endian|little_endian|swap|native>
This option makes Flang compatible with the big endian and small endian of Intel Fortran (ifort).
-fp-detect-exceptions
It enables the NaN detection for a Fortran application. For details, see BiSheng Compiler Optimization and Programming Guide.
-fGNU-compatibility
It enables the compatibility between BiSheng compiler and the GNU compiler, including but not limited to degrading the severity of alarms for BiSheng compiler failing to identify GNU functional options to warning.
-fIntel-compatibility
It enables the compatibility between BiSheng compiler and the Intel compiler, including but not limited to degrading the severity of alarms for BiSheng compiler failing to identify Intel functional options to warning.
-fGNU-warning-compatibility
After this option is enabled, in C and C++ scenarios, -Werror does not upgrade a warning to an error in scenarios where BiSheng compiler performs stricter syntax check than the GNU compiler.
-fGNU-error-compatibility
After this option is enabled, the error reported by BiSheng compiler is degraded to a warning in scenarios where BiSheng compiler performs stricter syntax check than the GNU compiler.
-fallow-argument-kind-mismatch
Input parameter type mismatches are allowed in Fortran code.
-ffixed-line-length-x
In the Fortran language standards, the maximum line width of Fortran code in the fixed format is extended to a value specified by x (it can be any number or none). When x is set to 0 or none, any line width is supported.
-ffree-line-length-x
In the Fortran language standards, the maximum line width of Fortran code in the free format is extended to any line width. The value of x can be 0 or none.
-Wunsequenced-function
BiSheng compiler can generate alarms for undefined behavior of function calls in expressions.
-z odr-detect
BiSheng compiler can generate alarms for the undefined behavior of weak symbols that violate the ODR. Only the target files generated by LLVM compilation can be checked. By default, other types of target files are not checked.
-z odr-detect -z odr-detect-for-nonllvm-compiled
BiSheng compiler can generate alarms for undefined behaviors of weak symbols that violate the ODR and check target files compiled by non-LLVM compilers.
-fimplicit-none
By default, the implicit none function in the Fortran code is enabled. All variables need to be explicitly declared.
-fconversion=warning/error
It checks whether the Fortran code contains the value assignment operation for type conversion, including the conversion between type and kind.