[all-commits] [llvm/llvm-project] 413e71: [flang] Main program symbol no longer conflicts wi...
Eugene Epshteyn via All-commits
all-commits at lists.llvm.org
Thu Jul 17 11:18:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 413e71b700562f914b369c7eab6ad41c18910bdf
https://github.com/llvm/llvm-project/commit/413e71b700562f914b369c7eab6ad41c18910bdf
Author: Eugene Epshteyn <eepshteyn at nvidia.com>
Date: 2025-07-17 (Thu, 17 Jul 2025)
Changed paths:
M flang/docs/Extensions.md
M flang/lib/Semantics/check-omp-structure.cpp
M flang/lib/Semantics/resolve-labels.cpp
M flang/test/Driver/cuda-option.f90
M flang/test/Driver/unparse-use-analyzed.f95
M flang/test/Driver/unparse-with-modules.f90
M flang/test/Integration/debug-common-block-1.f90
M flang/test/Integration/debug-local-var-2.f90
M flang/test/Lower/CUDA/cuda-derived.cuf
M flang/test/Lower/CUDA/cuda-return01.cuf
M flang/test/Lower/CUDA/cuda-return02.cuf
M flang/test/Lower/HLFIR/intrinsic-subroutines.f90
M flang/test/Lower/HLFIR/procedure-pointer-component-structure-constructor.f90
M flang/test/Lower/OpenACC/acc-atomic-read.f90
M flang/test/Lower/OpenACC/acc-atomic-write.f90
M flang/test/Lower/OpenACC/acc-routine04.f90
M flang/test/Lower/OpenMP/atomic-read.f90
M flang/test/Lower/OpenMP/atomic-write.f90
M flang/test/Lower/OpenMP/common-atomic-lowering.f90
M flang/test/Lower/OpenMP/cray-pointers02.f90
M flang/test/Lower/OpenMP/default-clause-byref.f90
M flang/test/Lower/OpenMP/default-clause.f90
M flang/test/Lower/OpenMP/parallel-reduction-allocatable-array.f90
M flang/test/Lower/OpenMP/parallel-reduction-array-lb.f90
M flang/test/Lower/OpenMP/parallel-reduction-array2.f90
M flang/test/Lower/OpenMP/parallel-reduction-byref.f90
M flang/test/Lower/OpenMP/parallel-reduction-pointer-array.f90
M flang/test/Lower/OpenMP/parallel-reduction-rename.f90
M flang/test/Lower/OpenMP/parallel-reduction.f90
M flang/test/Lower/OpenMP/sections.f90
M flang/test/Lower/OpenMP/threadprivate-host-association-2.f90
M flang/test/Lower/OpenMP/threadprivate-host-association-3.f90
M flang/test/Lower/OpenMP/threadprivate-host-association.f90
M flang/test/Lower/OpenMP/wsloop-chunks.f90
M flang/test/Lower/OpenMP/wsloop-collapse.f90
M flang/test/Lower/OpenMP/wsloop-reduction-allocatable-array-minmax.f90
M flang/test/Lower/OpenMP/wsloop-reduction-allocatable.f90
M flang/test/Lower/OpenMP/wsloop-reduction-array-lb.f90
M flang/test/Lower/OpenMP/wsloop-reduction-array-lb2.f90
M flang/test/Lower/OpenMP/wsloop-reduction-array.f90
M flang/test/Lower/OpenMP/wsloop-reduction-array2.f90
M flang/test/Lower/OpenMP/wsloop-reduction-min2.f90
M flang/test/Lower/OpenMP/wsloop-reduction-multiple-clauses.f90
M flang/test/Lower/OpenMP/wsloop-reduction-pointer.f90
M flang/test/Lower/array-character.f90
M flang/test/Lower/array-expression-slice-1.f90
M flang/test/Lower/basic-program.f90
M flang/test/Lower/big-integer-parameter.f90
M flang/test/Lower/derived-type-finalization.f90
M flang/test/Lower/location.f90
M flang/test/Lower/nested-where.f90
M flang/test/Lower/polymorphic.f90
M flang/test/Lower/pre-fir-tree02.f90
M flang/test/Lower/pre-fir-tree03.f90
M flang/test/Lower/pre-fir-tree06.f90
M flang/test/Lower/program-units-fir-mangling.f90
M flang/test/Lower/return-statement.f90
M flang/test/Lower/volatile-openmp1.f90
M flang/test/Lower/volatile-string.f90
M flang/test/Lower/volatile3.f90
M flang/test/Parser/acc-unparse.f90
M flang/test/Semantics/OpenACC/acc-symbols01.f90
M flang/test/Semantics/OpenMP/critical_within_default.f90
M flang/test/Semantics/OpenMP/declare-mapper-symbols.f90
M flang/test/Semantics/OpenMP/declare-reduction-mangled.f90
M flang/test/Semantics/OpenMP/declare-reduction-operators.f90
M flang/test/Semantics/OpenMP/declare-reduction-renamedop.f90
M flang/test/Semantics/OpenMP/declare-reduction.f90
M flang/test/Semantics/OpenMP/declare-target03.f90
M flang/test/Semantics/OpenMP/do-schedule03.f90
M flang/test/Semantics/OpenMP/do01-positivecase.f90
M flang/test/Semantics/OpenMP/do04-positivecase.f90
M flang/test/Semantics/OpenMP/do05-positivecase.f90
M flang/test/Semantics/OpenMP/do06-positivecases.f90
M flang/test/Semantics/OpenMP/do11.f90
M flang/test/Semantics/OpenMP/do12.f90
M flang/test/Semantics/OpenMP/do14.f90
M flang/test/Semantics/OpenMP/do17.f90
M flang/test/Semantics/OpenMP/map-clause-symbols.f90
M flang/test/Semantics/OpenMP/reduction08.f90
M flang/test/Semantics/OpenMP/reduction09.f90
M flang/test/Semantics/OpenMP/reduction11.f90
M flang/test/Semantics/OpenMP/scan2.f90
M flang/test/Semantics/OpenMP/symbol01.f90
M flang/test/Semantics/OpenMP/symbol05.f90
M flang/test/Semantics/OpenMP/symbol07.f90
M flang/test/Semantics/OpenMP/symbol09.f90
M flang/test/Semantics/OpenMP/threadprivate03.f90
M flang/test/Semantics/getsymbols03-a.f90
M flang/test/Semantics/long-name.f90
M flang/test/Semantics/modproc01.f90
M flang/test/Semantics/multi-programs04.f90
M flang/test/Semantics/pointer01.f90
M flang/test/Semantics/procinterface01.f90
M flang/test/Semantics/resolve05.f90
M flang/test/Semantics/resolve125.f90
M flang/test/Semantics/symbol03.f90
M flang/test/Semantics/symbol06.f90
M flang/test/Semantics/symbol07.f90
M flang/test/Semantics/symbol08.f90
M flang/test/Semantics/symbol15.f90
M flang/test/Semantics/symbol16.f90
M flang/test/Semantics/symbol17.f90
M flang/test/Semantics/symbol18.f90
M flang/test/Semantics/symbol20.f90
M flang/test/Semantics/symbol25.f90
M flang/test/Semantics/symbol26.f90
M flang/test/Transforms/DoConcurrent/basic_host.f90
Log Message:
-----------
[flang] Main program symbol no longer conflicts with the other symbols (#149169)
The following code is now accepted:
```
module m
end
program m
use m
end
```
The PROGRAM name doesn't really have an effect on the compilation
result, so it shouldn't result in symbol name conflicts.
This change makes the main program symbol name all uppercase in the
cooked character stream. This makes it distinct from all other symbol
names that are all lowercase in cooked character stream.
Modified the tests that were checking for lower case main program name.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list