[Bug fortran/103914] -fcheck=do seems not to work with omp parallel do construct

xiao.liu@compiler-dev.com gcc-bugzilla@gcc.gnu.org
Fri Jan 7 09:58:43 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103914

--- Comment #3 from xiao.liu@compiler-dev.com <xiao.liu@compiler-dev.com> ---
(In reply to xiao.liu@compiler-dev.com from comment #2)
> Thanks a lot.

(In reply to anlauf from comment #1)
> (In reply to xiao.liu@compiler-dev.com from comment #0)
> > I have some questions:
> > why the option "-fcheck=do" do not take effect for "parallel do"?
> 
> Just an observation:
> 
> The code for ordinary do loops is generated in gfc_trans_do(), which also
> adds code for runtime checking.
> 
> The code for OpenMP annotated loops is generated in gfc_trans_omp_do().
> There appears to be no runtime checking implemented for this type of loops.

Thanks a lot.


More information about the Gcc-bugs mailing list