[GSoC]Fortran – run-time argument checking
Gwen Fu
gwen3293940943@gmail.com
Wed Mar 26 13:55:38 GMT 2025
Gwen Fu <gwen3293940943@gmail.com> 于 2025年3月25日周二 下午8:34写道:
> I found out that "-fcheck=*" is an option for runtime checking, but the
> relevant options are commented out.
> OPT_fcheck_ = 1070, /* -fcheck= */
> /* OPT_fcheck_assert = 1071, */ /* -fcheck=assert */
> /* OPT_fcheck_bounds = 1072, */ /* -fcheck=bounds */
> /* OPT_fcheck_in = 1073, */ /* -fcheck=in */
> /* OPT_fcheck_invariant = 1074, */ /* -fcheck=invariant */
> /* OPT_fcheck_out = 1075, */ /* -fcheck=out */
> /* OPT_fcheck_switch = 1076, */ /* -fcheck=switch */
> OPT_fcheckaction_ = 1077, /* -fcheckaction= */
> OPT_fchecking = 1078, /* -fchecking */
>
> And I tried :
> $ gfortran -o fibonacci fabonaqi.f90 -fcheck=in
> f951: Warning: command-line option ‘-fpreconditions’ is valid for D but
> not for Fortran
> $ gfortran --help=check
> cc1: warning: unrecognized argument to ‘--help=’ option: ‘check’
> So what's wrong with these ?
>
More information about the Gcc
mailing list