aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-08-27 15:21:52 +0100
committerRon Yorston <rmy@pobox.com>2021-08-27 15:21:52 +0100
commit6a42f73dcac55a6b5dde810ad60cee7c120a2db7 (patch)
tree93930344db5ba82880fbb6930618faa7168e7da3
parentf2bb8e8d62379d4e740fc39dce7dbe820487a6a9 (diff)
downloadbusybox-w32-6a42f73dcac55a6b5dde810ad60cee7c120a2db7.tar.gz
busybox-w32-6a42f73dcac55a6b5dde810ad60cee7c120a2db7.tar.bz2
busybox-w32-6a42f73dcac55a6b5dde810ad60cee7c120a2db7.zip
win32: code shrink
Turn off the 'if-conversion' optimisation for err_win_to_posix(). My tests actually have this being slightly faster than with the optimisation enabled, though within the variation of the measurement. Saves 288 bytes.
-rw-r--r--win32/mingw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index e3424ff07..40714296f 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -46,6 +46,7 @@ unsigned int _CRT_fmode = _O_BINARY;
46 46
47smallint bb_got_signal; 47smallint bb_got_signal;
48 48
49#pragma GCC optimize ("no-if-conversion")
49int err_win_to_posix(void) 50int err_win_to_posix(void)
50{ 51{
51 int error = ENOSYS; 52 int error = ENOSYS;
@@ -160,6 +161,7 @@ int err_win_to_posix(void)
160 } 161 }
161 return error; 162 return error;
162} 163}
164#pragma GCC reset_options
163 165
164#undef strerror 166#undef strerror
165char *mingw_strerror(int errnum) 167char *mingw_strerror(int errnum)