[flang-commits] [clang] [flang] [Flang] Fix -frelaxed-c-loc-checks being ignored when using the driver (PR #200733)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Jun 1 11:47:02 PDT 2026
tarunprabhu wrote:
> @tarunprabhu I was honestly a little confused about what the Flang.cpp code was doing... I sort of thought visibility from Options.td what driving the forwarding of arguments. I have corrected that misunderstanding after digging into this code and the call chain between `main` and `fc1_main` a little more, but I notice that a lot of this code is just forwarding arguments from flang to fc1. Would you be open to an RFC to add a `AutomaticallyForwarded` or `Forwarded` `OptionFlag` in `clang/Options/Options.td` and have a generic loop that forwards any options with this flag?
I think it may be sufficient to just forward any options that have not been claimed, but let me check what clang does here. I can't remember off the top of my head.
https://github.com/llvm/llvm-project/pull/200733
More information about the flang-commits
mailing list