Hello, for people who have a gcc that was configured with some non-default --with-arch but who want to build a generic binary, an option like -march=generic would be useful. It seems that the right spelling is -march=x86-64, but I couldn't find that documented in invoke.texi.
Yes, I only learned about it from reading the sources.
I just learned from it by googling! :( If someone cared to explain it, I will add it to the FAQ (I can't send patches ATM, sorry)
-march=x86-64 is in the man page for gcc 8.2 (it was not in the man page for 5.4; I'm not sure which version it first appears).
r258953 | marxin | 2018-03-29 15:02:23 +0200 (Thu, 29 Mar 2018) | 9 lines Documentation tweaks. 2018-03-29 Martin Liska <mliska@suse.cz> PR lto/84995. * doc/invoke.texi: Document how LTO works with debug info. Describe auto-load support of binutils. Mention 'x86-64' as valid option value of -march option.