[all-commits] [llvm/llvm-project] d6a360: [flang] legacy branch target (#75628)
vdonaldson via All-commits
all-commits at lists.llvm.org
Fri Dec 15 11:22:06 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6a3607ff5ebae6575a713cdf12f1a2dda7cc72f
https://github.com/llvm/llvm-project/commit/d6a3607ff5ebae6575a713cdf12f1a2dda7cc72f
Author: vdonaldson <37090318+vdonaldson at users.noreply.github.com>
Date: 2023-12-15 (Fri, 15 Dec 2023)
Changed paths:
M flang/lib/Lower/PFTBuilder.cpp
Log Message:
-----------
[flang] legacy branch target (#75628)
Branching to an endif statement from outside of the if is nonconformant:
subroutine jump(n)
goto 6
if (n == 3) then
goto 7
6 end if
print *, 'pass'
return
7 print *, 'fail'
end
However, this branch was permitted up to f90. Account for this usage
when rewriting if constructs and if statements by suppressing rewriting
if the end statement is labeled.
More information about the All-commits
mailing list