]> git.ipfire.org Git - thirdparty/gcc.git/commit
Restore documentation for const/volatile functions [PR107942]
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 18 Jan 2024 18:28:22 +0000 (18:28 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 18 Jan 2024 18:40:07 +0000 (18:40 +0000)
commitdbda6cd58308bf13bf9b367604cb459b1c627344
treeb97ae6eff0b8a4f41c03b8578f798578efd3ad70
parentd5604febcfb09445eb738dcb8c675a4cb9671519
Restore documentation for const/volatile functions [PR107942]

In r5-7698-g8648c55f3b703a I accidentally removed the documentation of
GCC's special interpretation of const/volatile qualifiers on functions
from the function attributes section, thinking this was just a
bit-rotten leftover from old versions of GCC.  PR107942 points out
that this functionality is still present even though the docs are now gone.

I decided this material didn't really belong in the function
attributes discussion, but a new subsection in the general list of GCC
extensions to the C language.  And I agree with the comment in the
issue that we shouldn't really recommend this usage any more.

gcc/ChangeLog
PR c/107942
* doc/extend.texi (C Extensions): Add new section to menu.
(Function Attributes):  Move dangling index entries to....
(Const and Volatile Functions): New section.
gcc/doc/extend.texi