]> git.ipfire.org Git - thirdparty/gcc.git/commit
doc: Extend musttail attribute docs
authorJakub Jelinek <jakub@redhat.com>
Wed, 2 Apr 2025 10:36:29 +0000 (12:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Apr 2025 10:36:29 +0000 (12:36 +0200)
commita3e790a9c9fbb84c103c1407d9afd4beae10d512
treee0a316406ef8676f2ca80d99a554d0328f974713
parent6621e5a1d1195137a1dd6d917961ab23609a244c
doc: Extend musttail attribute docs

On Wed, Apr 02, 2025 at 10:32:20AM +0200, Richard Biener wrote:
> I wonder if we can amend the documentation to suggest to end lifetime
> of variables explicitly by proper scoping?

In the -Wmaybe-musttail-local-addr attribute description I've already
tried to show that in the example, but if you think something like
the following would make it clearer.

2025-04-02  Jakub Jelinek  <jakub@redhat.com>

* doc/extend.texi (musttail statement attribute): Hint how
to avoid -Wmaybe-musttail-local-addr warnings.
gcc/doc/extend.texi