[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-24 Thread Yuanfang Chen via cfe-commits
https://github.com/yuanfang-chen closed https://github.com/llvm/llvm-project/pull/68896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-23 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/68896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-20 Thread Yuanfang Chen via cfe-commits
yuanfang-chen wrote: > You are adding a support for these new flags in `flang-new`, which is > implemented in terms of `clangDriver` - this scenario (i.e. the two projects > being out of sync) would be very unlikely at the moment (perhaps even > impossible). And even if that was desired, you'd

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-20 Thread Yuanfang Chen via cfe-commits
https://github.com/yuanfang-chen updated https://github.com/llvm/llvm-project/pull/68896 >From db72a97acc7fd5a517b5ccd525fcf8a7b714fa29 Mon Sep 17 00:00:00 2001 From: Yuanfang Chen Date: Sat, 21 Oct 2023 01:18:47 + Subject: [PATCH] [flang][driver] support -dumpversion and -dumpmachine Matc

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-18 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: > > Could this be implemented without any updates to Clang (beyond Options.td)? > > The options could work by changing options.td only. However, > `CLANG_VERSION_STRING` and `FLANG_VERSION_STRING` could be different. This is > to handle that. You are adding a support for t

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-17 Thread Yuanfang Chen via cfe-commits
yuanfang-chen wrote: > Could this be implemented without any updates to Clang (beyond Options.td)? The options could work by changing options.td only. However, `CLANG_VERSION_STRING` and `FLANG_VERSION_STRING` could be different. This is to handle that. https://github.com/llvm/llvm-project/p

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-17 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space commented: Could this be implemented without any updates to Clang (beyond Options.td)? https://github.com/llvm/llvm-project/pull/68896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-17 Thread Andrzej Warzyński via cfe-commits
@@ -2081,7 +2082,7 @@ bool Driver::HandleImmediateArgs(const Compilation &C) { if (C.getArgs().hasArg(options::OPT_dumpversion)) { // Since -dumpversion is only implemented for pedantic GCC compatibility, we // return an answer which matches our definition of __VERSI

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-17 Thread Andrzej Warzyński via cfe-commits
https://github.com/banach-space edited https://github.com/llvm/llvm-project/pull/68896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Yuanfang Chen (yuanfang-chen) Changes Match GCC driver. GCC has -cc1/-fc1 support too, but this patch does not address that. --- Full diff: https://github.com/llvm/llvm-project/pull/68896.diff 7 Files Affected: - (modified) clan

[clang] [flang][driver] support -dumpversion and -dumpmachine (PR #68896)

2023-10-12 Thread Yuanfang Chen via cfe-commits
https://github.com/yuanfang-chen created https://github.com/llvm/llvm-project/pull/68896 Match GCC driver. GCC has -cc1/-fc1 support too, but this patch does not address that. >From b248b63c74853cfd57809ffc32f437c517a926ef Mon Sep 17 00:00:00 2001 From: Yuanfang Chen Date: Thu, 12 Oct 2023 07