aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.cc
diff options
context:
space:
mode:
authorqing zhao <qing.zhao@oracle.com>2024-09-30 18:29:29 +0000
committerQing Zhao <qing.zhao@oracle.com>2024-10-07 16:02:50 +0000
commit9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9 (patch)
tree647e41168fc9f2986c51d9a74f8995201a268e1f /gcc/gcov.cc
parentbc0ca75123b5996773628981a8bab865440fdf3c (diff)
downloadgcc-9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9.zip
gcc-9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9.tar.gz
gcc-9a17e6d03c6ed53e3b2dfd2c3ff9b1066ffa97b9.tar.bz2
c: ICE in build_counted_by_ref [PR116735]
When handling the counted_by attribute, if the corresponding field doesn't exit, in additiion to issue error, we should also remove the already added non-existing "counted_by" attribute from the field_decl. PR c/116735 gcc/c/ChangeLog: * c-decl.cc (verify_counted_by_attribute): Remove the attribute when error. gcc/testsuite/ChangeLog: * gcc.dg/flex-array-counted-by-9.c: New test.
Diffstat (limited to 'gcc/gcov.cc')
0 files changed, 0 insertions, 0 deletions