🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by John Salmon Tue, 08 Sep 1992 02:43
inline without optimization
#1088
Author: John Salmon
Date: Tue, 08 Sep 1992 02:43
16 lines
1215 bytes
The following is either a bug in gcc or a bug in its documentation.
I suspect the latter.  I'm using gcc2.2.

When a function is defined as 'inline' but optimization is not
selected, the function is NOT inlined.  Presumably this is an aid to
debugging.  It's reasonable behavior, but it is completely undocumented.

I suggest that an appropriate paragraph be placed in the Inline info
node, as this behaviour was a surprise to me, and I spent a while
thinking that inline was completely broken before I figured out what
was wrong.  I won't venture to suggest the text of the paragraph
because I'm not absolutely certain I understand the exact conditions under
which `inline'-declared functions are actually inlined.

Thanks,
John
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads