Since GCC version 8.0 at least these two options were replaced: -fdump-class-hierarchy ---> -fdump-lang-class -fdump-translation-unit ---> -fdump-lang-raw When I tried to use -fdump-class-hierarchy on GCC 8.2.1 and 8.3, I got the following error: $ g++ -fdump-class-hierarchy source.cpp cc1plus: error: unrecognized command line option ‘-fdump-class-hierarchy’ In the docs for 8.3 both class-hierarchy and translation-unit are still there. There is no way to figure out from documentation which options are replacements for these options.
Confirmed, let me fix that.
@Maxim: I see -fdump-class-hierarchy[-n] mentioned in PDF manual. Where do you see -fdump-class-hierarchy mentioned in GCC 8.x documentation?
(In reply to Martin Liška from comment #2) > @Maxim: I see -fdump-class-hierarchy[-n] mentioned in PDF manual. Where do > you see -fdump-class-hierarchy mentioned in GCC 8.x documentation? Sorry, I wanted to ask about '-fdump-translation-unit' ?
Author: marxin Date: Thu Mar 14 14:19:33 2019 New Revision: 269684 URL: https://gcc.gnu.org/viewcvs?rev=269684&root=gcc&view=rev Log: Remove dead option from manual (PR other/89712). 2019-03-14 Martin Liska <mliska@suse.cz> PR other/89712 * doc/invoke.texi: Remove -fdump-class-hierarchy option. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/invoke.texi
Fixed on trunk.
(In reply to Martin Liška from comment #2) > @Maxim: I see -fdump-class-hierarchy[-n] mentioned in PDF manual. Where do > you see -fdump-translation-unit mentioned in GCC 8.x documentation? My apologies. Only `-fdump-class-hierarchy` was present in the docs, but `-fdump-translation-unit` doesn't work too since it was replaced. I thought that the change would be mentioned somewhere in the docs, but it's only my assumption. Thanks for quick response and fixing the issue!
Author: marxin Date: Fri Mar 15 08:36:15 2019 New Revision: 269701 URL: https://gcc.gnu.org/viewcvs?rev=269701&root=gcc&view=rev Log: Subject: Backport r269684 2019-03-15 Martin Liska <mliska@suse.cz> PR other/89712 * doc/invoke.texi: Remove -fdump-class-hierarchy option. Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/doc/invoke.texi
Usually we do not remove options, but leave them to be no-op. However, these options are designed for C++ FE developers, so Nathan decided to remove them.