This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH COMMITTED] tzset: Remove __attribute_noinline__ from compute_offset


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]