Summary: | Templated functions are not found pure/const | ||
---|---|---|---|
Product: | gcc | Reporter: | Chris Jefferson <chris> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | gcc-bugs, paolo.carlini |
Priority: | P2 | Keywords: | missed-optimization |
Version: | 4.1.0 | ||
Target Milestone: | 4.1.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2005-06-10 15:32:40 |
Description
Chris Jefferson
2005-03-10 18:58:03 UTC
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. Fixed in 4.1.0. |