llvm-capstone/flang/test
jeanPerier 6ffea74f7c
[flang] Use BIND name, if any, when consolidating common blocks (#65613)
This patch changes how common blocks are aggregated and named in
lowering in order to:

* fix one obvious issue where BIND(C) and non BIND(C) with the same
Fortran name were "merged"

* go further and deal with a derivative where the BIND(C) C name matches
the assembly name of a Fortran common block. This is a bit unspecified
IMHO, but gfortran, ifort, and nvfortran "merge" the common block
without complaints as a linker would have done. This required getting
rid of all the common block mangling early in FIR (\_QC) instead of
leaving that to the phase that emits LLVM from FIR because BIND(C)
common blocks did not have mangled names. Care has to be taken to deal
with the underscoring option of flang-new.

See added flang/test/Lower/HLFIR/common-block-bindc-conflicts.f90 for an
illustration.
2023-09-08 10:43:55 +02:00
..
Analysis/AliasAnalysis [flang] approximate alias analysis support for hlfir.designate 2023-08-14 09:58:20 +00:00
Driver [Driver] Support GNU ld on Solaris 2023-09-01 21:42:05 +02:00
Evaluate [flang][test] Disable new test where not supported 2023-08-29 10:37:11 -07:00
Examples [flang] Feature list plugin 2023-04-24 23:41:32 -05:00
Fir [flang][hlfir] add an optimized bufferization pass 2023-08-18 09:51:22 +00:00
HLFIR [flang][HLFIR] add more memory effects interfaces 2023-09-06 10:29:57 +00:00
Intrinsics
lib [flang] CUDA Fortran - part 1/5: parsing 2023-05-31 09:48:59 -07:00
Lower [flang] Use BIND name, if any, when consolidating common blocks (#65613) 2023-09-08 10:43:55 +02:00
NonGtestUnit [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
Parser [flang][openacc] Fix unparsing of bind clause on acc routine 2023-08-17 14:02:17 -07:00
Preprocessing [flang] Fix crash from empty -DMACRO= (bug #64837) 2023-08-23 10:20:45 -07:00
Runtime [flang] Single entry point for GET_ENVIRONMENT_VARIABLE 2023-01-31 13:31:36 -03:00
Semantics [Flang] [OpenMP] [Semantics] Add missing semantic check for MAP clause. 2023-09-07 15:42:25 -05:00
Transforms [flang][LoopVersioning] support fir.array_coor 2023-09-04 10:40:40 +00:00
Unit [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
CMakeLists.txt Revert "[flang][driver] Allow main program to be in an archive" 2023-04-28 09:39:27 +01:00
lit.cfg.py [flang] CUDA Fortran - part 1/5: parsing 2023-05-31 09:48:59 -07:00
lit.site.cfg.py.in [flang] Handle Flang examples consistently with LLVM. 2023-03-14 13:08:43 -07:00