[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away
rguenther at suse dot de
gcc-bugzilla@gcc.gnu.org
Sun May 16 11:04:00 GMT 2010
------- Comment #8 from rguenther at suse dot de 2010-05-16 11:04 -------
Subject: Re: -fwhole-file -fwhole-program: Wrong decls
cause too much to be optimized away
On Sun, 16 May 2010, dominiq at lps dot ens dot fr wrote:
> ------- Comment #7 from dominiq at lps dot ens dot fr 2010-05-16 11:00 -------
> > -fwhole-program enables -fwhole-file.
>
> Yes, but -fwhole-file does not enable -fwhole-program. All the polyhedron tests
> pass with -fwhole-file (and say -O3 -ffast-math), but the test in comment #4
> fails with -whole-file.
-fwhole-file cannot enable -fwhole-program. -fwhole-program says
to the optimizers that they do see the whole program - all callers
to functions defined in the current TU have to be visible (and
have correct callgraph edges, thus -fwhole-file).
You cant' compare -fwhole-file numbers to -fwhole-program numbers.
-fwhole-file is a correctness option, w/o it the Frontend generates
an invalid representation for the middle-end.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873
More information about the Gcc-bugs
mailing list