aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-03-03 09:06:54 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-03-03 09:06:54 +0100
commitb2f3c0c208f73cf5c433ebb85aacf3284d9e47e6 (patch)
treebd786548320f52a750069e9a29db5e63c73015af
parenta10e9c4e53fc652b79abf838f7f837589d2c84db (diff)
downloadglibc-b2f3c0c208f73cf5c433ebb85aacf3284d9e47e6.zip
glibc-b2f3c0c208f73cf5c433ebb85aacf3284d9e47e6.tar.gz
glibc-b2f3c0c208f73cf5c433ebb85aacf3284d9e47e6.tar.bz2
tzset: Remove __attribute_noinline__ from compute_offset
After commit 42261ad731991df345880b0b509d83b0b9a9b9d8, compute_offset is only called once, so not inlining it increases executable size.
-rw-r--r--ChangeLog4
-rw-r--r--time/tzset.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 56ef827..240b3e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-03-03 Florian Weimer <fweimer@redhat.com>
+
+ * time/tzset.c (compute_offset): Remove __attribute_noinline__.
+
2017-03-02 Florian Weimer <fweimer@redhat.com>
* elf/get-dynamic-info.h: Remove header file inclusion guard.
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;