|
| 1 | +From d7082f6a79868c9140d1c3cb6cbf5f8d41848a55 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Aurelien Larcher < [email protected]> |
| 3 | +Date: Thu, 19 Aug 2021 22:49:29 +0200 |
| 4 | +Subject: [PATCH] cw: use generic x86_64 flag |
| 5 | + |
| 6 | +--- |
| 7 | + usr/src/tools/cw/cw.c | 5 +++-- |
| 8 | + 1 file changed, 3 insertions(+), 2 deletions(-) |
| 9 | + |
| 10 | +diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c |
| 11 | +index 594da6fc70..08294482fb 100644 |
| 12 | +--- a/usr/src/tools/cw/cw.c |
| 13 | ++++ b/usr/src/tools/cw/cw.c |
| 14 | +@@ -339,7 +339,7 @@ typedef struct xarch_table { |
| 15 | + static const xarch_table_t xtbl[] = { |
| 16 | + #if defined(__x86) |
| 17 | + { "generic", SS11, {NULL} }, |
| 18 | +- { "generic64", (SS11|M64), { "-m64", "-mtune=opteron" } }, |
| 19 | ++ { "generic64", (SS11|M64), { "-m64", "-march=x86-64 -mtune=generic" } }, |
| 20 | + { "amd64", (SS11|M64), { "-m64", "-mtune=opteron" } }, |
| 21 | + { "386", SS11, { "-march=i386" } }, |
| 22 | + { "pentium_pro", SS11, { "-march=pentiumpro" } }, |
| 23 | +@@ -864,7 +864,8 @@ do_gcc(cw_ictx_t *ctx) |
| 24 | + if (strcmp(arg, "-m64") == 0) { |
| 25 | + newae(ctx->i_ae, "-m64"); |
| 26 | + #if defined(__x86) |
| 27 | +- newae(ctx->i_ae, "-mtune=opteron"); |
| 28 | ++ newae(ctx->i_ae, "-march=x86-64"); |
| 29 | ++ newae(ctx->i_ae, "-mtune=generic"); |
| 30 | + #endif |
| 31 | + mflag |= M64; |
| 32 | + break; |
| 33 | +-- |
| 34 | +2.33.0 |
| 35 | + |
0 commit comments