From 381aa24bf2343199dcb79524690afb811859c389 Mon Sep 17 00:00:00 2001 From: Yi Duan Date: Wed, 29 May 2024 17:31:57 +0800 Subject: [PATCH] fix: add mssing max pc-sp of natives (#636) --- internal/native/avx/f32toa_subr.go | 2 +- internal/native/avx/f64toa_subr.go | 2 +- internal/native/avx/html_escape_subr.go | 2 +- internal/native/avx/i64toa_subr.go | 2 +- internal/native/avx/lspace_subr.go | 2 +- internal/native/avx/quote_subr.go | 2 +- internal/native/avx/recover_test.go | 21 +++++++++++++++++++ internal/native/avx/u64toa_subr.go | 2 +- internal/native/avx/unquote_subr.go | 2 +- .../native/avx/validate_utf8_fast_subr.go | 2 +- internal/native/avx/validate_utf8_subr.go | 2 +- internal/native/avx/vnumber_subr.go | 2 +- internal/native/avx/vsigned_subr.go | 2 +- internal/native/avx/vstring_subr.go | 2 +- internal/native/avx/vunsigned_subr.go | 2 +- internal/native/avx2/f32toa_subr.go | 2 +- internal/native/avx2/f64toa_subr.go | 2 +- internal/native/avx2/html_escape_subr.go | 2 +- internal/native/avx2/i64toa_subr.go | 2 +- internal/native/avx2/lspace_subr.go | 2 +- internal/native/avx2/quote_subr.go | 2 +- internal/native/avx2/recover_test.go | 21 +++++++++++++++++++ internal/native/avx2/u64toa_subr.go | 2 +- internal/native/avx2/validate_utf8_subr.go | 2 +- internal/native/avx2/vnumber_subr.go | 2 +- internal/native/avx2/vsigned_subr.go | 2 +- internal/native/avx2/vstring_subr.go | 2 +- internal/native/avx2/vunsigned_subr.go | 2 +- internal/native/recover_test.tmpl | 21 +++++++++++++++++++ internal/native/sse/f32toa_subr.go | 2 +- internal/native/sse/f64toa_subr.go | 2 +- internal/native/sse/html_escape_subr.go | 2 +- internal/native/sse/i64toa_subr.go | 2 +- internal/native/sse/lspace_subr.go | 2 +- internal/native/sse/quote_subr.go | 2 +- internal/native/sse/recover_test.go | 21 +++++++++++++++++++ internal/native/sse/u64toa_subr.go | 2 +- internal/native/sse/unquote_subr.go | 2 +- .../native/sse/validate_utf8_fast_subr.go | 2 +- internal/native/sse/validate_utf8_subr.go | 2 +- internal/native/sse/vnumber_subr.go | 2 +- internal/native/sse/vsigned_subr.go | 2 +- internal/native/sse/vunsigned_subr.go | 2 +- native/lspace.h | 1 + native/test/xassert.h | 8 +++++++ scripts/build-x86.sh | 2 +- tools/asm2asm | 2 +- 47 files changed, 134 insertions(+), 41 deletions(-) diff --git a/internal/native/avx/f32toa_subr.go b/internal/native/avx/f32toa_subr.go index 6c95bd982..4300c1ef8 100644 --- a/internal/native/avx/f32toa_subr.go +++ b/internal/native/avx/f32toa_subr.go @@ -34,7 +34,7 @@ var ( {3357, 16}, {3359, 8}, {3363, 0}, - {3385, 48}, + {3392, 48}, } ) diff --git a/internal/native/avx/f64toa_subr.go b/internal/native/avx/f64toa_subr.go index 7d49e2da0..d0e53ae96 100644 --- a/internal/native/avx/f64toa_subr.go +++ b/internal/native/avx/f64toa_subr.go @@ -36,7 +36,7 @@ var ( {4625, 16}, {4627, 8}, {4631, 0}, - {4694, 56}, + {4704, 56}, } ) diff --git a/internal/native/avx/html_escape_subr.go b/internal/native/avx/html_escape_subr.go index 0599b11aa..da53f3f7f 100644 --- a/internal/native/avx/html_escape_subr.go +++ b/internal/native/avx/html_escape_subr.go @@ -35,7 +35,7 @@ var ( {1233, 24}, {1235, 16}, {1237, 8}, - {1239, 0}, + {1248, 0}, } ) diff --git a/internal/native/avx/i64toa_subr.go b/internal/native/avx/i64toa_subr.go index aafd71430..f3dd6bc67 100644 --- a/internal/native/avx/i64toa_subr.go +++ b/internal/native/avx/i64toa_subr.go @@ -37,7 +37,7 @@ var ( {1901, 8}, {1902, 0}, {2268, 8}, - {2270, 0}, + {2272, 0}, } ) diff --git a/internal/native/avx/lspace_subr.go b/internal/native/avx/lspace_subr.go index 52d528582..8cf157e46 100644 --- a/internal/native/avx/lspace_subr.go +++ b/internal/native/avx/lspace_subr.go @@ -27,7 +27,7 @@ var ( {103, 8}, {104, 0}, {111, 8}, - {112, 0}, + {113, 0}, } ) diff --git a/internal/native/avx/quote_subr.go b/internal/native/avx/quote_subr.go index e9b6e90d2..5a6e20d3b 100644 --- a/internal/native/avx/quote_subr.go +++ b/internal/native/avx/quote_subr.go @@ -36,7 +36,7 @@ var ( {1660, 16}, {1662, 8}, {1663, 0}, - {1690, 56}, + {1696, 56}, } ) diff --git a/internal/native/avx/recover_test.go b/internal/native/avx/recover_test.go index 9346ff1a2..3a766a68c 100644 --- a/internal/native/avx/recover_test.go +++ b/internal/native/avx/recover_test.go @@ -22,14 +22,18 @@ package avx import ( + `bytes` `os` `runtime` `runtime/debug` + `runtime/pprof` + `strings` `testing` `time` `unsafe` `github.com/bytedance/sonic/internal/native/types` + `github.com/bytedance/sonic/internal/rt` ) var ( @@ -109,6 +113,23 @@ func TestRecover_lspace(t *testing.T) { _ = lspace(nil, 2, 0) } +func TestRecover_lspace2(t *testing.T) { + // generate random space with json + cases := []string{ + strings.Repeat(" ", 1) + "123", + strings.Repeat(" ", 1) + "123", + "123", + } + pprof.StartCPUProfile(bytes.NewBuffer(nil)) + defer pprof.StopCPUProfile() + for i := 0; i < 10000000; i++{ + for _, t := range cases { + sp := (*byte)((*rt.GoString)(unsafe.Pointer(&t)).Ptr) + _ = lspace(sp, len(t), 0) + } + } +} + func TestRecover_quote(t *testing.T) { var dn = 10 var dp = make([]byte, dn) diff --git a/internal/native/avx/u64toa_subr.go b/internal/native/avx/u64toa_subr.go index f89e626c7..851b2af56 100644 --- a/internal/native/avx/u64toa_subr.go +++ b/internal/native/avx/u64toa_subr.go @@ -29,7 +29,7 @@ var ( {756, 8}, {757, 0}, {1221, 8}, - {1223, 0}, + {1232, 0}, } ) diff --git a/internal/native/avx/unquote_subr.go b/internal/native/avx/unquote_subr.go index 47db5a61d..4b7801eb4 100644 --- a/internal/native/avx/unquote_subr.go +++ b/internal/native/avx/unquote_subr.go @@ -36,7 +36,7 @@ var ( {1695, 16}, {1697, 8}, {1698, 0}, - {2270, 88}, + {2272, 88}, } ) diff --git a/internal/native/avx/validate_utf8_fast_subr.go b/internal/native/avx/validate_utf8_fast_subr.go index 8ed55a0e0..d3f838ae7 100644 --- a/internal/native/avx/validate_utf8_fast_subr.go +++ b/internal/native/avx/validate_utf8_fast_subr.go @@ -31,7 +31,7 @@ var ( {527, 24}, {531, 16}, {532, 8}, - {534, 0}, + {536, 0}, } ) diff --git a/internal/native/avx/validate_utf8_subr.go b/internal/native/avx/validate_utf8_subr.go index 0010ffaef..514b8d609 100644 --- a/internal/native/avx/validate_utf8_subr.go +++ b/internal/native/avx/validate_utf8_subr.go @@ -34,7 +34,7 @@ var ( {632, 16}, {634, 8}, {635, 0}, - {666, 48}, + {668, 48}, } ) diff --git a/internal/native/avx/vnumber_subr.go b/internal/native/avx/vnumber_subr.go index b7e2d3473..1ddb9810c 100644 --- a/internal/native/avx/vnumber_subr.go +++ b/internal/native/avx/vnumber_subr.go @@ -36,7 +36,7 @@ var ( {762, 16}, {764, 8}, {768, 0}, - {9045, 112}, + {9048, 112}, } ) diff --git a/internal/native/avx/vsigned_subr.go b/internal/native/avx/vsigned_subr.go index 0cb1239d8..696f5cd02 100644 --- a/internal/native/avx/vsigned_subr.go +++ b/internal/native/avx/vsigned_subr.go @@ -40,7 +40,7 @@ var ( {308, 0}, {316, 16}, {317, 8}, - {319, 0}, + {320, 0}, } ) diff --git a/internal/native/avx/vstring_subr.go b/internal/native/avx/vstring_subr.go index e86d2ce55..55b42e3b7 100644 --- a/internal/native/avx/vstring_subr.go +++ b/internal/native/avx/vstring_subr.go @@ -36,7 +36,7 @@ var ( {2182, 16}, {2184, 8}, {2185, 0}, - {2327, 88}, + {2328, 88}, } ) diff --git a/internal/native/avx/vunsigned_subr.go b/internal/native/avx/vunsigned_subr.go index aa8776020..2ad623581 100644 --- a/internal/native/avx/vunsigned_subr.go +++ b/internal/native/avx/vunsigned_subr.go @@ -33,7 +33,7 @@ var ( {312, 8}, {313, 0}, {320, 8}, - {322, 0}, + {324, 0}, } ) diff --git a/internal/native/avx2/f32toa_subr.go b/internal/native/avx2/f32toa_subr.go index 1081a4952..46d207215 100644 --- a/internal/native/avx2/f32toa_subr.go +++ b/internal/native/avx2/f32toa_subr.go @@ -34,7 +34,7 @@ var ( {3357, 16}, {3359, 8}, {3363, 0}, - {3385, 48}, + {3392, 48}, } ) diff --git a/internal/native/avx2/f64toa_subr.go b/internal/native/avx2/f64toa_subr.go index ee33b5f88..9a6044d16 100644 --- a/internal/native/avx2/f64toa_subr.go +++ b/internal/native/avx2/f64toa_subr.go @@ -36,7 +36,7 @@ var ( {4625, 16}, {4627, 8}, {4631, 0}, - {4694, 56}, + {4704, 56}, } ) diff --git a/internal/native/avx2/html_escape_subr.go b/internal/native/avx2/html_escape_subr.go index d5afc3054..4f71ef44b 100644 --- a/internal/native/avx2/html_escape_subr.go +++ b/internal/native/avx2/html_escape_subr.go @@ -35,7 +35,7 @@ var ( {2054, 24}, {2056, 16}, {2058, 8}, - {2063, 0}, + {2064, 0}, } ) diff --git a/internal/native/avx2/i64toa_subr.go b/internal/native/avx2/i64toa_subr.go index fb12932d9..6e99dfb24 100644 --- a/internal/native/avx2/i64toa_subr.go +++ b/internal/native/avx2/i64toa_subr.go @@ -37,7 +37,7 @@ var ( {1907, 8}, {1908, 0}, {2276, 8}, - {2278, 0}, + {2288, 0}, } ) diff --git a/internal/native/avx2/lspace_subr.go b/internal/native/avx2/lspace_subr.go index 8de4801a1..2bc42949b 100644 --- a/internal/native/avx2/lspace_subr.go +++ b/internal/native/avx2/lspace_subr.go @@ -27,7 +27,7 @@ var ( {204, 8}, {208, 0}, {215, 8}, - {219, 0}, + {220, 0}, } ) diff --git a/internal/native/avx2/quote_subr.go b/internal/native/avx2/quote_subr.go index f57232d4f..ccfe4f1cf 100644 --- a/internal/native/avx2/quote_subr.go +++ b/internal/native/avx2/quote_subr.go @@ -36,7 +36,7 @@ var ( {2698, 16}, {2700, 8}, {2704, 0}, - {2731, 56}, + {2736, 56}, } ) diff --git a/internal/native/avx2/recover_test.go b/internal/native/avx2/recover_test.go index e1900701e..2e6a556ae 100644 --- a/internal/native/avx2/recover_test.go +++ b/internal/native/avx2/recover_test.go @@ -22,14 +22,18 @@ package avx2 import ( + `bytes` `os` `runtime` `runtime/debug` + `runtime/pprof` + `strings` `testing` `time` `unsafe` `github.com/bytedance/sonic/internal/native/types` + `github.com/bytedance/sonic/internal/rt` ) var ( @@ -109,6 +113,23 @@ func TestRecover_lspace(t *testing.T) { _ = lspace(nil, 2, 0) } +func TestRecover_lspace2(t *testing.T) { + // generate random space with json + cases := []string{ + strings.Repeat(" ", 1) + "123", + strings.Repeat(" ", 1) + "123", + "123", + } + pprof.StartCPUProfile(bytes.NewBuffer(nil)) + defer pprof.StopCPUProfile() + for i := 0; i < 10000000; i++{ + for _, t := range cases { + sp := (*byte)((*rt.GoString)(unsafe.Pointer(&t)).Ptr) + _ = lspace(sp, len(t), 0) + } + } +} + func TestRecover_quote(t *testing.T) { var dn = 10 var dp = make([]byte, dn) diff --git a/internal/native/avx2/u64toa_subr.go b/internal/native/avx2/u64toa_subr.go index f5349509e..2a1e5fe46 100644 --- a/internal/native/avx2/u64toa_subr.go +++ b/internal/native/avx2/u64toa_subr.go @@ -29,7 +29,7 @@ var ( {758, 8}, {759, 0}, {1225, 8}, - {1227, 0}, + {1232, 0}, } ) diff --git a/internal/native/avx2/validate_utf8_subr.go b/internal/native/avx2/validate_utf8_subr.go index 906966912..362ca8329 100644 --- a/internal/native/avx2/validate_utf8_subr.go +++ b/internal/native/avx2/validate_utf8_subr.go @@ -34,7 +34,7 @@ var ( {632, 16}, {634, 8}, {635, 0}, - {666, 48}, + {668, 48}, } ) diff --git a/internal/native/avx2/vnumber_subr.go b/internal/native/avx2/vnumber_subr.go index 59dbae413..106edfe3d 100644 --- a/internal/native/avx2/vnumber_subr.go +++ b/internal/native/avx2/vnumber_subr.go @@ -36,7 +36,7 @@ var ( {762, 16}, {764, 8}, {768, 0}, - {9585, 112}, + {9588, 112}, } ) diff --git a/internal/native/avx2/vsigned_subr.go b/internal/native/avx2/vsigned_subr.go index 650d79459..115c6e406 100644 --- a/internal/native/avx2/vsigned_subr.go +++ b/internal/native/avx2/vsigned_subr.go @@ -40,7 +40,7 @@ var ( {308, 0}, {316, 16}, {317, 8}, - {319, 0}, + {320, 0}, } ) diff --git a/internal/native/avx2/vstring_subr.go b/internal/native/avx2/vstring_subr.go index a92835c8a..8a754cf0f 100644 --- a/internal/native/avx2/vstring_subr.go +++ b/internal/native/avx2/vstring_subr.go @@ -36,7 +36,7 @@ var ( {1910, 16}, {1912, 8}, {1916, 0}, - {2055, 88}, + {2056, 88}, } ) diff --git a/internal/native/avx2/vunsigned_subr.go b/internal/native/avx2/vunsigned_subr.go index 7c870d97b..25cd697fd 100644 --- a/internal/native/avx2/vunsigned_subr.go +++ b/internal/native/avx2/vunsigned_subr.go @@ -33,7 +33,7 @@ var ( {312, 8}, {313, 0}, {320, 8}, - {322, 0}, + {324, 0}, } ) diff --git a/internal/native/recover_test.tmpl b/internal/native/recover_test.tmpl index ae1040133..9022dd024 100644 --- a/internal/native/recover_test.tmpl +++ b/internal/native/recover_test.tmpl @@ -22,14 +22,18 @@ package {{PACKAGE}} import ( + `bytes` `os` `runtime` `runtime/debug` + `runtime/pprof` + `strings` `testing` `time` `unsafe` `github.com/bytedance/sonic/internal/native/types` + `github.com/bytedance/sonic/internal/rt` ) var ( @@ -109,6 +113,23 @@ func TestRecover_lspace(t *testing.T) { _ = lspace(nil, 2, 0) } +func TestRecover_lspace2(t *testing.T) { + // generate random space with json + cases := []string{ + strings.Repeat(" ", 1) + "123", + strings.Repeat(" ", 1) + "123", + "123", + } + pprof.StartCPUProfile(bytes.NewBuffer(nil)) + defer pprof.StopCPUProfile() + for i := 0; i < 10000000; i++{ + for _, t := range cases { + sp := (*byte)((*rt.GoString)(unsafe.Pointer(&t)).Ptr) + _ = lspace(sp, len(t), 0) + } + } +} + func TestRecover_quote(t *testing.T) { var dn = 10 var dp = make([]byte, dn) diff --git a/internal/native/sse/f32toa_subr.go b/internal/native/sse/f32toa_subr.go index ab181b41e..973b4738b 100644 --- a/internal/native/sse/f32toa_subr.go +++ b/internal/native/sse/f32toa_subr.go @@ -34,7 +34,7 @@ var ( {3293, 16}, {3295, 8}, {3296, 0}, - {3318, 48}, + {3328, 48}, } ) diff --git a/internal/native/sse/f64toa_subr.go b/internal/native/sse/f64toa_subr.go index e04b0b0f7..55c44cb2b 100644 --- a/internal/native/sse/f64toa_subr.go +++ b/internal/native/sse/f64toa_subr.go @@ -36,7 +36,7 @@ var ( {4593, 16}, {4595, 8}, {4596, 0}, - {4659, 56}, + {4672, 56}, } ) diff --git a/internal/native/sse/html_escape_subr.go b/internal/native/sse/html_escape_subr.go index a4abdbd6a..04215ed17 100644 --- a/internal/native/sse/html_escape_subr.go +++ b/internal/native/sse/html_escape_subr.go @@ -35,7 +35,7 @@ var ( {1265, 24}, {1267, 16}, {1269, 8}, - {1271, 0}, + {1280, 0}, } ) diff --git a/internal/native/sse/i64toa_subr.go b/internal/native/sse/i64toa_subr.go index 375cc2e9d..12e222df3 100644 --- a/internal/native/sse/i64toa_subr.go +++ b/internal/native/sse/i64toa_subr.go @@ -37,7 +37,7 @@ var ( {1945, 8}, {1946, 0}, {2324, 8}, - {2326, 0}, + {2336, 0}, } ) diff --git a/internal/native/sse/lspace_subr.go b/internal/native/sse/lspace_subr.go index eccbc9e15..f894f66fb 100644 --- a/internal/native/sse/lspace_subr.go +++ b/internal/native/sse/lspace_subr.go @@ -27,7 +27,7 @@ var ( {103, 8}, {104, 0}, {111, 8}, - {112, 0}, + {113, 0}, } ) diff --git a/internal/native/sse/quote_subr.go b/internal/native/sse/quote_subr.go index 4f83751a5..85f8e6b6c 100644 --- a/internal/native/sse/quote_subr.go +++ b/internal/native/sse/quote_subr.go @@ -36,7 +36,7 @@ var ( {1692, 16}, {1694, 8}, {1695, 0}, - {1722, 64}, + {1728, 64}, } ) diff --git a/internal/native/sse/recover_test.go b/internal/native/sse/recover_test.go index 7141dfba3..c3358f439 100644 --- a/internal/native/sse/recover_test.go +++ b/internal/native/sse/recover_test.go @@ -22,14 +22,18 @@ package sse import ( + `bytes` `os` `runtime` `runtime/debug` + `runtime/pprof` + `strings` `testing` `time` `unsafe` `github.com/bytedance/sonic/internal/native/types` + `github.com/bytedance/sonic/internal/rt` ) var ( @@ -109,6 +113,23 @@ func TestRecover_lspace(t *testing.T) { _ = lspace(nil, 2, 0) } +func TestRecover_lspace2(t *testing.T) { + // generate random space with json + cases := []string{ + strings.Repeat(" ", 1) + "123", + strings.Repeat(" ", 1) + "123", + "123", + } + pprof.StartCPUProfile(bytes.NewBuffer(nil)) + defer pprof.StopCPUProfile() + for i := 0; i < 10000000; i++{ + for _, t := range cases { + sp := (*byte)((*rt.GoString)(unsafe.Pointer(&t)).Ptr) + _ = lspace(sp, len(t), 0) + } + } +} + func TestRecover_quote(t *testing.T) { var dn = 10 var dp = make([]byte, dn) diff --git a/internal/native/sse/u64toa_subr.go b/internal/native/sse/u64toa_subr.go index 8e67f8199..c3b2e0ab9 100644 --- a/internal/native/sse/u64toa_subr.go +++ b/internal/native/sse/u64toa_subr.go @@ -29,7 +29,7 @@ var ( {772, 8}, {773, 0}, {1249, 8}, - {1251, 0}, + {1264, 0}, } ) diff --git a/internal/native/sse/unquote_subr.go b/internal/native/sse/unquote_subr.go index fbcebc2f6..7f4a5e431 100644 --- a/internal/native/sse/unquote_subr.go +++ b/internal/native/sse/unquote_subr.go @@ -36,7 +36,7 @@ var ( {1695, 16}, {1697, 8}, {1698, 0}, - {2270, 88}, + {2272, 88}, } ) diff --git a/internal/native/sse/validate_utf8_fast_subr.go b/internal/native/sse/validate_utf8_fast_subr.go index 15b54a7ee..c310f6d02 100644 --- a/internal/native/sse/validate_utf8_fast_subr.go +++ b/internal/native/sse/validate_utf8_fast_subr.go @@ -31,7 +31,7 @@ var ( {527, 24}, {531, 16}, {532, 8}, - {534, 0}, + {536, 0}, } ) diff --git a/internal/native/sse/validate_utf8_subr.go b/internal/native/sse/validate_utf8_subr.go index 100a086f5..b2dfbcb1d 100644 --- a/internal/native/sse/validate_utf8_subr.go +++ b/internal/native/sse/validate_utf8_subr.go @@ -34,7 +34,7 @@ var ( {632, 16}, {634, 8}, {635, 0}, - {666, 48}, + {668, 48}, } ) diff --git a/internal/native/sse/vnumber_subr.go b/internal/native/sse/vnumber_subr.go index 0b7524720..8c656f8e3 100644 --- a/internal/native/sse/vnumber_subr.go +++ b/internal/native/sse/vnumber_subr.go @@ -36,7 +36,7 @@ var ( {778, 16}, {780, 8}, {781, 0}, - {8949, 112}, + {8952, 112}, } ) diff --git a/internal/native/sse/vsigned_subr.go b/internal/native/sse/vsigned_subr.go index df428adc1..45cabbc4a 100644 --- a/internal/native/sse/vsigned_subr.go +++ b/internal/native/sse/vsigned_subr.go @@ -40,7 +40,7 @@ var ( {324, 0}, {332, 16}, {333, 8}, - {335, 0}, + {336, 0}, } ) diff --git a/internal/native/sse/vunsigned_subr.go b/internal/native/sse/vunsigned_subr.go index 99fe65b48..0d82245c3 100644 --- a/internal/native/sse/vunsigned_subr.go +++ b/internal/native/sse/vunsigned_subr.go @@ -33,7 +33,7 @@ var ( {312, 8}, {313, 0}, {320, 8}, - {322, 0}, + {324, 0}, } ) diff --git a/native/lspace.h b/native/lspace.h index becdb3c77..7133b67b6 100644 --- a/native/lspace.h +++ b/native/lspace.h @@ -17,6 +17,7 @@ #pragma once #include "native.h" +#include "test/xassert.h" static always_inline size_t lspace_1(const char *sp, size_t nb, size_t p) { const char * ss = sp; diff --git a/native/test/xassert.h b/native/test/xassert.h index 7399f3041..5cb83d182 100644 --- a/native/test/xassert.h +++ b/native/test/xassert.h @@ -17,6 +17,14 @@ #ifndef XASSERT_H #define XASSERT_H +#ifndef PANIC + static always_inline void xpanic() {} +#else + static always_inline void xpanic() { + int *ptr = NULL; + volatile int value = *ptr; + } +#endif #ifndef DEBUG #define xassert(expr) ((void)0) diff --git a/scripts/build-x86.sh b/scripts/build-x86.sh index 89deeabb6..69d13d35d 100644 --- a/scripts/build-x86.sh +++ b/scripts/build-x86.sh @@ -40,7 +40,7 @@ for arc in "${CPU_ARCS[@]}"; do asm_file="$tmp_dir/${base_name}.s" # Compile the source file into an assembly file - echo "$CC ${CLAGS[$i]} -m -target x86_64-apple-macos11 -mno-red-zone -mstack-alignment=0 -fno-asynchronous-unwind-tables -fno-builtin -fno-exceptions -fno-rtti -fno-stack-protector -nostdlib -O3 -Wall -Werror -S -o $asm_file $src_file" + echo "$CC ${CLAGS[$i]} -target x86_64-apple-macos11 -mno-red-zone -mstack-alignment=0 -fno-asynchronous-unwind-tables -fno-builtin -fno-exceptions -fno-rtti -fno-stack-protector -nostdlib -O3 -Wall -Werror -S -o $asm_file $src_file" $CC ${CLAGS[$i]} -target x86_64-apple-macos11 -mno-red-zone -fno-asynchronous-unwind-tables -fno-builtin -fno-exceptions -fno-rtti -fno-stack-protector -nostdlib -O3 -Wall -Werror -S -o $asm_file $src_file # Execute asm2asm tool diff --git a/tools/asm2asm b/tools/asm2asm index ff3a7abca..dc6e1ef7e 160000 --- a/tools/asm2asm +++ b/tools/asm2asm @@ -1 +1 @@ -Subproject commit ff3a7abcac9d0bd5c1e74d8bf5b6abec4140e435 +Subproject commit dc6e1ef7e7a666d8fd134224de392f4b4752270a