[RFC] PR libfortran/34669
Steven Bosscher
stevenb.gcc@gmail.com
Mon Jan 7 00:07:00 GMT 2008
Hi,
For this bug report, the problem is that gfortran sends the output of
-fdump-parse-tree to the assembler when compiling with -pipe. In the
case of the bug report, this breaks mk-kinds-h.sh and other
libgfortran configuration scripts.
The bottom line is that -pipe and -fdump-parse-tree are just not
compatible at the moment. We can accept that (no user should use
-fdump-parse-tree anyway) and work around the incompatibility in the
libgfortran scripts. Or we can "fix" the compiler to not stream the
-fdump-parse-tree output to stdout, so it isn't piped to the assembler
with -pipe.
I have attached two patches as proposed solutions for the bug report.
The patch for the front end to send -fdump-parse-tree output to stderr
probably breaks the libgfortran shell scripts even without -pipe,
because the scripts expect the output in stdout. I only just realized
this while typing this email ;-)
Anyway, you get the idea. Which one is your preferred approach?
Gr.
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgfortran_pipe.diff
Type: text/x-diff
Size: 2792 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080107/592ddaf2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgfortran_pipe_alt.diff
Type: text/x-diff
Size: 4926 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080107/592ddaf2/attachment-0001.bin>
More information about the Fortran
mailing list