------- Comment #1 from dfranke at gcc dot gnu dot org  2008-03-28 23:19 -------
Implementation of this request should be trivial. IIRC just add the paths as
arguments to -I options in lang-spec.h.


> That way one could also cpp-preprocess files included via "INCLUDE" 
> rather than via "#include".

I'm not happy with this idea. If a file should be preprocessed, the
preprocessor should explicitly be told to do so. I.e. by passing the -cpp flag
together with the main file, or by including files using '#include'. The
INCLUDE-statement is defined by standard Fortran and Fortran (in general) has
no concept of preprocessing. Hence, files included by the INCLUDE-statement
should not be preprocessed, even if the main file is. That is: preprocess
main-file, preprocess '#include'd files, include INCLUDE files after
prepreocessing took place, but without preprocessing the INCLUDEd file itself.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35707

Reply via email to