[doc,patch] Document that -fwhole-program isn't supported for Fortran

François-Xavier Coudert fxcoudert@gmail.com
Mon Oct 1 16:56:00 GMT 2007


For Fortran, -fwhole-program isn't usable because the Fortran
front-end issues more than one decl per function, thus making the call
graph used in this optimisation wrong. This patch documents that fact
in gcc/doc/invoke.texi (a one-liner) and catches it in the front-end
(issuing an error when gfortran is called with -fwhole-program).

Patch was regtested on x86_64-linux, including make pdf, info and
html. Do I need approval for this one-line patch to the doc? I don't
think so, and intend to commit it in 48 hours unless someone objects.

FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: whole_program.ChangeLog
Type: application/octet-stream
Size: 254 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071001/eba05455/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: whole_program.diff
Type: application/octet-stream
Size: 1024 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071001/eba05455/attachment-0001.obj>


More information about the Fortran mailing list