https://github.com/DanielCChen approved this pull request.
Thanks for working on this. We have quite some Fortran C-interop test cases are
affected by the "duplicate main" error.
https://github.com/llvm/llvm-project/pull/89938
___
cfe-commits mailing
@@ -163,6 +163,40 @@ forward compiler options to the frontend driver,
`flang-new -fc1`.
You can read more on the design of `clangDriver` in Clang's [Driver Design &
Internals](https://clang.llvm.org/docs/DriverInternals.html).
+## Linker Driver
+When used as a linker, Flang's
https://github.com/DanielCChen edited
https://github.com/llvm/llvm-project/pull/75816
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
DanielCChen wrote:
Thanks @banach-space for the pointer!
https://github.com/llvm/llvm-project/pull/73124
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -163,6 +163,40 @@ forward compiler options to the frontend driver,
`flang-new -fc1`.
You can read more on the design of `clangDriver` in Clang's [Driver Design &
Internals](https://clang.llvm.org/docs/DriverInternals.html).
+## Linker Driver
+When used as a linker, Flang's
DanielCChen wrote:
Ok. I see. The Fortran `main` is actually coming out of internal compiler
generated code rather than user code.
It seems users who have Fortran-C-interop code will need to toggle the
`-fno-fortran-main` option ON and OFF depends on who the `main` is.
I think there are some r
DanielCChen wrote:
The test cases actually have C main indeed and call to Fortran procedures as
opposed to what I thought (the other way around). Adding `-fno-fortran-main`
fixed all of them!
May be I missed it when reading through the comments of this PR, why there is a
definition of `main()`
DanielCChen wrote:
Thanks for the initial analysis. I will take a closer look of the failure and
prepare a reproducer and post it here.
https://github.com/llvm/llvm-project/pull/73124
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lis
DanielCChen wrote:
I see. So Fortran and C interoperability of F2003/F2008 is not supported yet in
Flang? Those ~100ish regression test cases we have were passing before this PR
though.
Unfortunately, those test cases are not made public available yet. I think I
can copy the source code of on
DanielCChen wrote:
@mjklemm This PR caused some regressions of C-interop test cases in our local
test run. The test cases typically have a Fortran main (compiled with Flang)
that calls a C function (compiled with clang). The linking is by `flang-new`.
The error looks like:
```
ld.lld: error: d
DanielCChen wrote:
The changes look good to me. I will wait a day to see if other reviewers have
any more comments before approving it.
https://github.com/llvm/llvm-project/pull/73254
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lis
11 matches
Mail list logo