From 107e4ffc85bc999eba703ac2c83d0e9a82b6165d Mon Sep 17 00:00:00 2001 From: Aurelien Larcher Date: Thu, 26 Mar 2020 11:52:13 +0100 Subject: [PATCH 1/2] TESTING illumos-gate: use -mtune=generic --- .../0003-cw-use-generic-x86_64-flag.patch | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 components/openindiana/illumos-gate/patches/0003-cw-use-generic-x86_64-flag.patch diff --git a/components/openindiana/illumos-gate/patches/0003-cw-use-generic-x86_64-flag.patch b/components/openindiana/illumos-gate/patches/0003-cw-use-generic-x86_64-flag.patch new file mode 100644 index 00000000000..4feb295ddf0 --- /dev/null +++ b/components/openindiana/illumos-gate/patches/0003-cw-use-generic-x86_64-flag.patch @@ -0,0 +1,35 @@ +From d7082f6a79868c9140d1c3cb6cbf5f8d41848a55 Mon Sep 17 00:00:00 2001 +From: Aurelien Larcher +Date: Thu, 19 Aug 2021 22:49:29 +0200 +Subject: [PATCH] cw: use generic x86_64 flag + +--- + usr/src/tools/cw/cw.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/usr/src/tools/cw/cw.c b/usr/src/tools/cw/cw.c +index 594da6fc70..08294482fb 100644 +--- a/usr/src/tools/cw/cw.c ++++ b/usr/src/tools/cw/cw.c +@@ -339,7 +339,7 @@ typedef struct xarch_table { + static const xarch_table_t xtbl[] = { + #if defined(__x86) + { "generic", SS11, {NULL} }, +- { "generic64", (SS11|M64), { "-m64", "-mtune=opteron" } }, ++ { "generic64", (SS11|M64), { "-m64", "-march=x86-64 -mtune=generic" } }, + { "amd64", (SS11|M64), { "-m64", "-mtune=opteron" } }, + { "386", SS11, { "-march=i386" } }, + { "pentium_pro", SS11, { "-march=pentiumpro" } }, +@@ -864,7 +864,8 @@ do_gcc(cw_ictx_t *ctx) + if (strcmp(arg, "-m64") == 0) { + newae(ctx->i_ae, "-m64"); + #if defined(__x86) +- newae(ctx->i_ae, "-mtune=opteron"); ++ newae(ctx->i_ae, "-march=x86-64"); ++ newae(ctx->i_ae, "-mtune=generic"); + #endif + mflag |= M64; + break; +-- +2.33.0 + From 51087ade214a5cfb381e45c47570a513e3a2f789 Mon Sep 17 00:00:00 2001 From: Aurelien Larcher Date: Fri, 20 Aug 2021 11:40:17 +0200 Subject: [PATCH 2/2] Bump branch update number --- make-rules/ips-buildinfo.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-rules/ips-buildinfo.mk b/make-rules/ips-buildinfo.mk index c286645a547..287806759ed 100644 --- a/make-rules/ips-buildinfo.mk +++ b/make-rules/ips-buildinfo.mk @@ -41,7 +41,7 @@ RELEASE_MINOR ?= 0 # # Release update number: 0, 1, 2, etc. # -UPDATENUM ?= 1 +UPDATENUM ?= 2 # # Component revision. Should be specified in the component's Makefile