This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20411] Templated functions are not found pure/const
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2005 19:21:49 -0000
- Subject: [Bug middle-end/20411] Templated functions are not found pure/const
- References: <20050310185803.20411.chris@bubblescope.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-10 19:21 -------
Note there are two problems here, foo2/foo in the orginal example are found to pure/const function so
they are optimizated away which is different than inlining.
This all fixed on the tree profiling branch where we actually find the templates functions are pure/const
also.
Note at -Os we do turn on -finline-functions and inline small functions.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2005-03-10 19:21:48
date| |
Summary|Templated functions no |Templated functions are not
|inlined at -O2 |found pure/const
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20411