This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sat, 25 Sep 2010 14:31:31 +0200 Tobias Burnus<burnus@net-b.de> wrote:Fortran 2008 offers an intrinsic function called "compiler_options", which returns "a processor-dependent value which describes the options that controlled the translation phase of program execution." (Cf. PR 40569I don't know if it is the best way of doing it [...] but the naive way of doing that probably could be to store the program arguments in yet another globals, e.g. extern int toplevel_argc; extern char** toplevel_argv;
I am not sure to understand the intend of the standard. In particular, even if I transpose to C, I cannot understand the value of having a __builtin (or perhaps a CPP predefined macro) giving the equivalent inside C programs. Why does a standard want such things?
Do you have an idea of what competitor fortran compilers are doing with the compiler_options intrinsic? compiler_options intrinsic?
But then, you need a patch both for gfortran and for f951.I think most users would prefer to have the options to the driver ("gfortran") rather than the one to the compiler ("f951").
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |