[Patch, Fortran] Remove the Fortran-only flag -fno-whole-file

Tobias Burnus burnus@net-b.de
Fri Jan 4 23:31:00 GMT 2013


This patch "removes" -fno-whole-file. (Actually, it turns it into "Ignore".)


Reasoning:

* -fwhole-file/-fno-whole-file was added in 4.5 to make the transition 
easier; -fwhole-file is the default since 4.6.

* There are many wrong-code issues and probably also some ICEs with 
-fno-whole file.

* The generated code of -fwhole-file is faster as it allows for inlining.

* -fno-whole-file has been deprecated since 4.6 and announced for removal.

* Code cleanup is always nice (diff -w): 17 insertions(+), 80 deletions(-)


Build and regtested on x86-64-gnu-linux.
OK for the trunk?


Tobias

PS: Dominique pointed out that PR 45128 is a -fwhole-file "regression". 
However, it mainly shows that gfortran needs the new array descriptor to 
fix such subpointer issues (and other PRs).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-whole-file.diff
Type: text/x-patch
Size: 12581 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130104/e6b09c8c/attachment.bin>


More information about the Fortran mailing list