On Wed, May 29, 2024 at 08:49:01AM +0200, Tobias Burnus wrote: > Jakub Jelinek wrote: > > I mean, if we want to add something, maybe better would an -include like > > option that instead of including a file includes it directly. > > gcc --include-inline '#pragma omp requires unified_shared_memory' ... > > Likewise for Fortran, but there the question is whether it should be in the > use-stmt, import-stmt, implicit-part or declaration-part; I guess having one > --include-inline-use-stmt and --include-inline-declaration would make sense
Maybe name it slightly differently for Fortran and have the where it should be added as one argument, so --whatever=where=what > And, I guess, multiple flags should be permitted, which can then be > processed as separate lines. Obviously. That was the intent with --include-inline= for C as well, after all, -include works that way too. -include a.h -include b.h -include c.h Jakub