🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1088

inline without optimization

#1088
From: 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
Technical Details
Message-ID: <199209081643.AA13493@haggis.ccsf.caltech.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!haggis.ccsf.caltech.edu!johns

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!haggis.ccsf.caltech.edu!johns
From: johns@haggis.ccsf.caltech.edu (John Salmon)
Subject: inline without optimization
Message-ID: <199209081643.AA13493@haggis.ccsf.caltech.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 8 Sep 1992 02:43:47 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 18