| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#define CPP_ONLY_OPTIONS "%1 %{m*} %{f*} %{g*:%{!g0:%{g*} \ |
| 25 |
%{!fno-working-directory:-fworking-directory}}} \ |
| 26 |
%{std*&ansi&trigraphs} %{W*&pedantic*} %{w} \ |
| 27 |
%{O*} %{undef}" |
| 28 |
|
| 29 |
|
| 30 |
#define CPP_FORWARD_OPTIONS "%{i*} %{I*} %{M*}" |
| 31 |
|
| 32 |
#define F951_CPP_OPTIONS "%{!nocpp: -cpp=%g" F951_CPP_EXTENSION \ |
| 33 |
" %{E} %(cpp_unique_options) \ |
| 34 |
%{E|M|MM:%(cpp_debug_options) " CPP_ONLY_OPTIONS \ |
| 35 |
" -fsyntax-only};: " CPP_FORWARD_OPTIONS "}" |
| 36 |
|
| 37 |
#ifndef TARGET_F951_OPTIONS |
| 38 |
#define TARGET_F951_OPTIONS |
| 39 |
#endif |
| 40 |
|
| 41 |
#define F951_OPTIONS "%(cc1_options) %{J*} \ |
| 42 |
%{!nostdinc:-fintrinsic-modules-path finclude%s}" \ |
| 43 |
TARGET_F951_OPTIONS \ |
| 44 |
"%{!fsyntax-only:%(invoke_as)}" |
| 45 |
#define F951_SOURCE_FORM "%{!ffree-form:-ffixed-form}" |
| 46 |
|
| 47 |
|
| 48 |
#define F951_CPP_EXTENSION ".fi" |
| 49 |
{".F", "@f77-cpp-input", 0, 0, 0}, |
| 50 |
{".FOR", "@f77-cpp-input", 0, 0, 0}, |
| 51 |
{".FTN", "@f77-cpp-input", 0, 0, 0}, |
| 52 |
{".fpp", "@f77-cpp-input", 0, 0, 0}, |
| 53 |
{".FPP", "@f77-cpp-input", 0, 0, 0}, |
| 54 |
{"@f77-cpp-input", |
| 55 |
"f951 %i " F951_SOURCE_FORM " " \ |
| 56 |
F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0}, |
| 57 |
{".f", "@f77", 0, 0, 0}, |
| 58 |
{".for", "@f77", 0, 0, 0}, |
| 59 |
{".ftn", "@f77", 0, 0, 0}, |
| 60 |
{".fi", "@f77", 0, 0, 0}, |
| 61 |
{"@f77", |
| 62 |
"f951 %i " F951_SOURCE_FORM " \ |
| 63 |
%{E:%{!cpp:%egfortran does not support -E without -cpp}} \ |
| 64 |
%{cpp:" F951_CPP_OPTIONS ";: " CPP_FORWARD_OPTIONS "} \ |
| 65 |
%{!E:" F951_OPTIONS "}", 0, 0, 0}, |
| 66 |
|
| 67 |
#undef F951_CPP_EXTENSION |
| 68 |
#define F951_CPP_EXTENSION ".fii" |
| 69 |
{".F90", "@f95-cpp-input", 0, 0, 0}, |
| 70 |
{".F95", "@f95-cpp-input", 0, 0, 0}, |
| 71 |
{".F03", "@f95-cpp-input", 0, 0, 0}, |
| 72 |
{".F08", "@f95-cpp-input", 0, 0, 0}, |
| 73 |
{"@f95-cpp-input", |
| 74 |
"f951 %i " F951_CPP_OPTIONS " %{!E:" F951_OPTIONS "}", 0, 0, 0}, |
| 75 |
{".f90", "@f95", 0, 0, 0}, |
| 76 |
{".f95", "@f95", 0, 0, 0}, |
| 77 |
{".f03", "@f95", 0, 0, 0}, |
| 78 |
{".f08", "@f95", 0, 0, 0}, |
| 79 |
{".fii", "@f95", 0, 0, 0}, |
| 80 |
{"@f95", |
| 81 |
"f951 %i %{E:%{!cpp:%egfortran does not support -E without -cpp}}\ |
| 82 |
%{cpp:" F951_CPP_OPTIONS ";: " CPP_FORWARD_OPTIONS "} \ |
| 83 |
%{!E:" F951_OPTIONS "}", 0, 0, 0}, |
| 84 |
|
| 85 |
|
| 86 |
#undef CPP_ONLY_OPTIONS |
| 87 |
#undef CPP_FORWARD_OPTIONS |
| 88 |
#undef F951_SOURCE_FORM |
| 89 |
#undef F951_CPP_EXTENSION |
| 90 |
#undef F951_CPP_OPTIONS |
| 91 |
#undef F951_OPTIONS |