: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: barrowes at alum dot mit.edu
Target Milestone: ---
If I have a file test1.f:
program test2
real x
x=3.0
C#ifdef DDD
C x=2.0
C#endif
print
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #2 from Ben Barrowes ---
Then how does one get a preprocessed/savetemp file from an existing *.f90 file?
In the case of C, preprocessed and temp files have different extensions and are
thus easily identified after compiling. For gfor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #4 from Ben Barrowes ---
It has been a while.
Is there any way to save the temporary preprocessed files in gfortran?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #6 from Ben Barrowes ---
There are many cases where people do not use a capital "F", but still have
preprocessor directives in the code. In these cases, no proprocessed file is
written out right now, AFAIK.
So perhaps as you suggest
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #8 from Ben Barrowes ---
Maybe *.fpp ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #10 from Ben Barrowes ---
The reason the stdout redirection doesn't work for me is because I want to save
these preprocessed files during a "make" session. When I make, thousands of
fotran files are preprocessed and compiled. How do I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #12 from Ben Barrowes ---
I use these intermediate files during the software analysis process, but then
delete them later. They are useful for me to have.
When I am given a makefile, it is often 1000's loc. I am not sure I want to go
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81615
--- Comment #14 from Ben Barrowes ---
Thanks for engaging, and thanks for the suggestion. I might be able to do this
over the winter. Could you give me a hint as to where to look. Which files.