public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20340] New: __always_inline__ fails on templetized function for no reason
@ 2005-03-06 9:41 yuri at tsoft dot com
2005-03-06 10:45 ` [Bug c++/20340] " yuri at tsoft dot com
2005-03-06 15:10 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: yuri at tsoft dot com @ 2005-03-06 9:41 UTC (permalink / raw)
To: gcc-bugs
Compiling code below (g++ -O5 -c) fails with the error message below.
This is the major source of performance loss since it leaves silly functions
like this called zillions of times w/out inlining.
Any workaround ?
Yuri
---- code ----
template<typename T> __attribute__ ((__always_inline__)) T f(const T j) { return
(j); }
int x(int j) {
int r;
r = f(j);
return (r);
}
---- error message ----
i.C:2: sorry, unimplemented: inlining failed in call to 'T f(T) [with T = int]':
function not inlinable
i.C:6: sorry, unimplemented: called from here
--
Summary: __always_inline__ fails on templetized function for no
reason
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: yuri at tsoft dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20340
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/20340] __always_inline__ fails on templetized function for no reason
2005-03-06 9:41 [Bug c++/20340] New: __always_inline__ fails on templetized function for no reason yuri at tsoft dot com
@ 2005-03-06 10:45 ` yuri at tsoft dot com
2005-03-06 15:10 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: yuri at tsoft dot com @ 2005-03-06 10:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From yuri at tsoft dot com 2005-03-06 10:45 -------
actually this one is fixed in 4.0, problem though is that 4.0 isn't usable yet
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20340
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/20340] __always_inline__ fails on templetized function for no reason
2005-03-06 9:41 [Bug c++/20340] New: __always_inline__ fails on templetized function for no reason yuri at tsoft dot com
2005-03-06 10:45 ` [Bug c++/20340] " yuri at tsoft dot com
@ 2005-03-06 15:10 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-06 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-06 15:10 -------
*** This bug has been marked as a duplicate of 14950 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20340
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-06 15:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-06 9:41 [Bug c++/20340] New: __always_inline__ fails on templetized function for no reason yuri at tsoft dot com
2005-03-06 10:45 ` [Bug c++/20340] " yuri at tsoft dot com
2005-03-06 15:10 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).