public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18569] New: Call to inline function failed
@ 2004-11-19 20:26 gcc-bugzilla at gcc dot gnu dot org
2004-11-19 20:37 ` [Bug c/18569] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-11-19 20:26 UTC (permalink / raw)
To: gcc-bugs
The following code snippet just does not compile (it did in GCC
3.3.3)
Environment:
System: Linux spartacus 2.6.9 #1 Fri Nov 5 17:15:13 CET 2004 i686 pentium3 i386 GNU/Linux
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.4.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
How-To-Repeat:
21:20 spartacus:~ > cat ts.c
#define INLINE inline __attribute__((always_inline))
static INLINE void blah(void);
int main(void) {
blah();
return 0;
}
static INLINE void blah(void) {
return;
}
21:21 spartacus:~ > gcc ts.c -Wall
ts.c: In function \rain':
ts.c:3: sorry, unimplemented: inlining failed in call to 'blah': function
body not available
ts.c:6: sorry, unimplemented: called from here
------- Additional Comments From jengelh at linux01 dot gwdg dot de 2004-11-19 20:25 -------
Fix:
This can be worked around by placing the function body of blah()
before any call to it.
--
Summary: Call to inline function failed
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jengelh at linux01 dot gwdg dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18569
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/18569] Call to inline function failed
2004-11-19 20:26 [Bug c/18569] New: Call to inline function failed gcc-bugzilla at gcc dot gnu dot org
@ 2004-11-19 20:37 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-19 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-19 20:37 -------
Invalid as the body is really not available at this point as we are not at unit at a time mode when
compiling with -O0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18569
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-19 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-19 20:26 [Bug c/18569] New: Call to inline function failed gcc-bugzilla at gcc dot gnu dot org
2004-11-19 20:37 ` [Bug c/18569] " 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).