https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32817
Bug 32817 depends on bug 25708, which changed state.
Bug 25708 Summary: [F95] Module loading is not good at all
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25708
What|Removed |Added
--- Comment #10 from jv244 at cam dot ac dot uk 2010-07-24 17:58 ---
with -fwhole-file being the default this testcase
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32817#c5
gets properly inlined at -O2. Yeah!
I think this can be closed, but probably one would like to add a testcase to
--- Comment #9 from mikael at gcc dot gnu dot org 2010-05-10 18:42 ---
This depends on the double decl problem, which is :
if a module is both defined and used in the same file, we create new symbols
when we load the module, instead of reusing/sharing them.
(In reply to comment #8)
>
--- Comment #8 from mikael at gcc dot gnu dot org 2010-05-10 17:16 ---
(In reply to comment #7)
> With -fwhole-file I now get the same timings either way. I call that fixed.
>
Unless there is one other bug tracking inlining of use-associated functions,
one cannot close this yet.
The co
--- Comment #7 from dfranke at gcc dot gnu dot org 2010-05-09 10:02 ---
With -fwhole-file I now get the same timings either way. I call that fixed.
--
dfranke at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #6 from fxcoudert at gcc dot gnu dot org 2009-05-02 16:42
---
The cause of that is that module procedure are never entered into the global
symbol list (gfc_gsym_root). I think they should be there, under their mangled
name.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2009-05-02 16:26
---
Now, inlining of non-CONTAINED procedures works when -fwhole-file is used (it
will be the default when the remaining bugs are fixed).
However, functions from used modules are still not inlined; a reduced testcase