Bug 57112 - -march=x86-64 not documented
Summary: -march=x86-64 not documented
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.9.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks:
 
Reported: 2013-04-29 12:44 UTC by Marc Glisse
Modified: 2018-07-31 07:20 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-linux-gnu
Build:
Known to work: 8.2.0
Known to fail:
Last reconfirmed: 2015-10-06 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Glisse 2013-04-29 12:44:31 UTC
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.
Comment 1 Jonathan Wakely 2013-04-29 12:59:28 UTC
Yes, I only learned about it from reading the sources.
Comment 2 Manuel López-Ibáñez 2015-10-06 19:16:23 UTC
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)
Comment 3 Paul Brannan 2018-07-31 07:07:39 UTC
-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).
Comment 4 Marc Glisse 2018-07-31 07:20:09 UTC
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.