[flang-commits] [PATCH] D147650: [flang] Nonconformant assigned gotos

vdonaldson via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Apr 5 11:51:54 PDT 2023


vdonaldson created this revision.
vdonaldson added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
vdonaldson requested review of this revision.

Modify code generation for assigned GOTOs to generate a runtime error
for most cases that violate F90 <https://reviews.llvm.org/F90> Clause 8.2.4, rather than treating a
nonconformant GOTO as a nop. For example, generate a runtime error for
a GOTO that attempts to branch to a label for a FORMAT statement.
Relax the requirement that an assigned GOTO with a label list must
branch to a label in the list, and instead allow a branch to any valid
assigned GOTO target in scope.


https://reviews.llvm.org/D147650

Files:
  flang/lib/Lower/Bridge.cpp
  flang/test/Lower/assigned-goto.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147650.511173.patch
Type: text/x-patch
Size: 8883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230405/6d7dd761/attachment-0001.bin>


More information about the flang-commits mailing list