How inlined are inlined functions?
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Fri Dec 3 11:10:00 GMT 1999
On Dec 3, 1999, Mark Mitchell <mark@codesourcery.com> wrote:
> (In fact, we can now inline some functions [...] that contain
> setjmp.)
Isn't this dangerous? Assume I have worked hard to volatilize just
the minimal set of variables of a function to make sure it's
setjmp()-safe. But then, it happens to be inlined (assume -O3, i.e.,
the function is not explicitly declared inline), but the caller
variables are not properly volatilized. Wouldn't it break? Shouldn't
such functions only be inlined when they're explicitly declared
inline?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them
More information about the Gcc
mailing list