diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2024-01-18 18:28:22 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2024-01-18 18:40:07 +0000 |
commit | dbda6cd58308bf13bf9b367604cb459b1c627344 (patch) | |
tree | b97ae6eff0b8a4f41c03b8578f798578efd3ad70 /gcc/expr.cc | |
parent | d5604febcfb09445eb738dcb8c675a4cb9671519 (diff) | |
download | gcc-dbda6cd58308bf13bf9b367604cb459b1c627344.zip gcc-dbda6cd58308bf13bf9b367604cb459b1c627344.tar.gz gcc-dbda6cd58308bf13bf9b367604cb459b1c627344.tar.bz2 |
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.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions