[git commit] inetd: deinline machtime() - gcc gets it wrong

Denys Vlasenko vda.linux at googlemail.com
Sat Apr 24 10:06:03 UTC 2021


commit: https://git.busybox.net/busybox/commit/?id=121b02d6b6c9f276e7f8da560e5996d3e389cd63
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

function                                             old     new   delta
machtime                                               -      24     +24
machtime_stream                                       45      29     -16
machtime_dg                                          114      97     -17
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 24/-33)             Total: -9 bytes

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/inetd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/inetd.c b/networking/inetd.c
index febfb7b73..e5352a555 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1697,7 +1697,7 @@ static void FAST_FUNC chargen_dg(int s, servtab_t *sep)
  * we must add 2208988800 seconds to this figure to make up for
  * some seventy years Bell Labs was asleep.
  */
-static uint32_t machtime(void)
+static NOINLINE uint32_t machtime(void)
 {
 	struct timeval tv;
 


More information about the busybox-cvs mailing list