This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH COMMITTED] tzset: Remove __attribute_noinline__ from compute_offset
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Fri, 03 Mar 2017 09:22:32 +0100
- Subject: [PATCH COMMITTED] tzset: Remove __attribute_noinline__ from compute_offset
- Authentication-results: sourceware.org; auth=none
After commit 42261ad731991df345880b0b509d83b0b9a9b9d8,
compute_offset is only called once, so not inlining it
increases executable size.
2017-03-03 Florian Weimer <fweimer@redhat.com>
* time/tzset.c (compute_offset): Remove __attribute_noinline__.
diff --git a/time/tzset.c b/time/tzset.c
index eb42069..404f1db 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;