aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorQing Zhao <qing.zhao@oracle.com>2024-09-03 19:28:23 +0000
committerQing Zhao <qing.zhao@oracle.com>2024-09-03 22:35:21 +0000
commitf9642ffe7814396f31203f4366f78a43a01a215c (patch)
tree34978640bfac8c1cb13c73c06fe0210276094ae1 /gcc/expr.cc
parent3775f71c8909b3531fe002138814fa2504ec2e8b (diff)
downloadgcc-f9642ffe7814396f31203f4366f78a43a01a215c.zip
gcc-f9642ffe7814396f31203f4366f78a43a01a215c.tar.gz
gcc-f9642ffe7814396f31203f4366f78a43a01a215c.tar.bz2
Explicitly document that the "counted_by" attribute is only supported in C.
The "counted_by" attribute currently is only supported in C, mention this explicitly in documentation and also issue warnings when see "counted_by" attribute in C++ with -Wattributes. gcc/c-family/ChangeLog: * c-attribs.cc (handle_counted_by_attribute): Is ignored and issues warning with -Wattributes in C++ for now. gcc/ChangeLog: * doc/extend.texi: Explicitly mentions counted_by is available only in C for now. gcc/testsuite/ChangeLog: * g++.dg/ext/flex-array-counted-by.C: New test. * g++.dg/ext/flex-array-counted-by-2.C: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions