public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/33564] New: A static inline function as a parameter of another static inline function is not inlined.
@ 2007-09-26 14:26 michaelferguson at acm dot org
2007-09-26 14:49 ` [Bug c/33564] " rguenth at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: michaelferguson at acm dot org @ 2007-09-26 14:26 UTC (permalink / raw)
To: gcc-bugs
This is a duplicate of bug 1601, which I can't reopen.
This bug is still present on 4.1.2-13 (RedHat, 20070626) and 3.4.6-3 (RedHat
20060404). Looking at the produced assembly, f2 and fun are both produced; the
assembly should only produce fun and inline both f1 and f2. I havn't tested it
on 4.2.1 yet, but I'm reopening it because it was reported as fixed years ago.
I'm compiling the test given below with:
gcc -c -O3 --save-temps inline_test.c
How-To-Repeat (from bug 1601):
static inline int
f1( int (*f)(int y), int q )
{
return( (*f)( q ) );
}
static inline int
f2( int z )
{
return( z ^ 32 );
}
int fun( int x )
{
return( f1( &f2, x ) );
}
--
Summary: A static inline function as a parameter of another
static inline function is not inlined.
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michaelferguson at acm dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33564
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/33564] A static inline function as a parameter of another static inline function is not inlined.
2007-09-26 14:26 [Bug c/33564] New: A static inline function as a parameter of another static inline function is not inlined michaelferguson at acm dot org
@ 2007-09-26 14:49 ` rguenth at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-09-26 14:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-09-26 14:49 -------
Fixed in 4.3.0.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |RESOLVED
Keywords| |missed-optimization
Known to fail| |4.2.2
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33564
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-26 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-26 14:26 [Bug c/33564] New: A static inline function as a parameter of another static inline function is not inlined michaelferguson at acm dot org
2007-09-26 14:49 ` [Bug c/33564] " rguenth 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).