This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39242] [4.4 Regression] Inconsistent reject / accept of code
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2009 15:40:16 -0000
- Subject: [Bug c++/39242] [4.4 Regression] Inconsistent reject / accept of code
- References: <bug-39242-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from hubicka at ucw dot cz 2009-02-19 15:40 -------
Subject: Re: [4.4 Regression] Inconsistent reject / accept of code
> /* Check to see whether we know that this template will be
> instantiated in some other file, as with "extern template"
> extension. */
> external_p = (DECL_INTERFACE_KNOWN (d) && DECL_REALLY_EXTERN (d));
> /* In general, we do not instantiate such templates... */
> if (external_p
> /* ... but we instantiate inline functions so that we can inline
> them and ... */
> && ! (TREE_CODE (d) == FUNCTION_DECL
> && DECL_DECLARED_INLINE_P (d))
Hmm, in general it is benefical to instantiate stuff for sake of IPA
optimizers. It would be interesting to know how this affects code
quality...
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39242