================
@@ -386,6 +386,8 @@ void Flang::addCodegenOptions(const ArgList &Args,
options::OPT_fstack_repack_arrays, options::OPT_fno_stack_repack_arrays,
options::OPT_ftime_report, options::OPT_ftime_report_EQ,
options::OPT_funroll_loops, options::OPT_fno_unroll_loops,
+ options::OPT_fimplicit_default_mapper_allocatable_members,
+ options::OPT_fno_implicit_default_mapper_allocatable_members,
----------------
tarunprabhu wrote:
Instead of passing these unconditionally, I would suggest only passing the
"winner" to `-fc1`. This will be the last occurrence of
`-f(no)-implicit-default-mapper-allocatable-members`. This could be done by
adding the following to `addOffloadOptions`.
```
if (!Args.hasFlag(options::OPT_fimplicit_default_mapper_allocatable_members,
options::OPT_fno_implicit_default_mapper_allocatable_members,
/*Default=*/true))
CmdArgs.push_back("-fno-implicit-default-mapper-allocatable-members");
```
https://github.com/llvm/llvm-project/pull/228748
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits