This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__((leafify))
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 3 Jun 2003 22:19:31 +0100 (BST)
- Subject: Re: __attribute__((leafify))
- References: <Pine.LNX.4.44.0306032301100.608-100000@goofy>
On Tue, 3 Jun 2003, Richard Guenther wrote:
> So what is this __attribute__((leafify))? Its a way to tell gcc to make
> the marked function a leaf of the cfg, i.e. to inline every call made in
> this function ignoring all inlining limits. A patch for mainline was
> posted at
> http://gcc.gnu.org/ml/gcc-patches/2003-05/msg01662.html
Your patch doesn't have testcases. They should include:
* That correct uses of the attribute are accepted, and incorrect ones
rejected.
* That a proper warning is given (at least with -Winline) if for some
reason the function can't be made into a leaf.
* That the attribute does indeed work. This could be tricky but you
should be able e.g. to check for the names of static functions in the
assembler output, where those functions would only be inlined when the
attribute is given.
--
Joseph S. Myers
jsm28@cam.ac.uk