aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2022-05-24 10:22:37 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2022-05-24 10:22:37 -0400
commit2c5c64566329181b0a234ae9015491c7a727f323 (patch)
tree62c4fbf09003d63ccdd01cc7c41e86826b86d343 /gcc
parente8a25550dac458a2afd8d456540e94e060fa2384 (diff)
downloadgcc-2c5c64566329181b0a234ae9015491c7a727f323.zip
gcc-2c5c64566329181b0a234ae9015491c7a727f323.tar.gz
gcc-2c5c64566329181b0a234ae9015491c7a727f323.tar.bz2
libiberty: remove FINAL and OVERRIDE from ansidecl.h
libiberty's ansidecl.h provides macros FINAL and OVERRIDE to allow virtual functions to be labelled with the C++11 "final" and "override" specifiers, but with empty implementations on pre-C++11 C++ compilers. We've used the macros in many places in GCC, but as of as of GCC 11 onwards GCC has required a C++11 compiler, such as GCC 4.8 or later. On the assumption that any such compiler correctly implements "final" and "override", I've simplified GCC's codebase by replacing all uses of the FINAL and OVERRIDE macros in GCC's source tree with the lower-case specifiers (via commits r13-690-gff171cb13df671 and r13-716-g8473ef7be60443) The macros are reportedly not used anywhere in binutils-gdb. This patch completes this transition for GCC by eliminating the macros from ansidecl.h. include/ChangeLog: * ansidecl.h: Drop macros OVERRIDE and FINAL. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions