From: Florian Weimer Date: Fri, 3 Mar 2017 08:06:54 +0000 (+0100) Subject: tzset: Remove __attribute_noinline__ from compute_offset X-Git-Tag: glibc-2.26~744 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2f3c0c208f73cf5c433ebb85aacf3284d9e47e6;p=thirdparty%2Fglibc.git tzset: Remove __attribute_noinline__ from compute_offset After commit 42261ad731991df345880b0b509d83b0b9a9b9d8, compute_offset is only called once, so not inlining it increases executable size. --- diff --git a/ChangeLog b/ChangeLog index 56ef82760da..240b3e81aa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-03-03 Florian Weimer + + * time/tzset.c (compute_offset): Remove __attribute_noinline__. + 2017-03-02 Florian Weimer * elf/get-dynamic-info.h: Remove header file inclusion guard. diff --git a/time/tzset.c b/time/tzset.c index eb420699c42..404f1db3709 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -168,7 +168,6 @@ update_vars (void) static unsigned int -__attribute_noinline__ compute_offset (unsigned int ss, unsigned int mm, unsigned int hh) { return min (ss, 59) + min (mm, 59) * 60 + min (hh, 24) * 60 * 60;