From patchwork Fri Mar 3 08:22:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 734973 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vZMmZ2Yfzz9s7d for ; Fri, 3 Mar 2017 19:29:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="AfJ8JHHw"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= rcl0wzwVQhZ5EwED+nwtye76zWkSFyouU7TK4O2huSuT/V08heGIV9r0JMecYDmZ dNnR+gbMzlJQgRVK5tXixYo0zZktnMn82K8aoM2mlsSPaB2chHjdRRYUGpX4BFtP bADcRrNWBOuojlEKPqh6Wgd+XWAd9lzw+sqX5+4YpjY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=RKNkzW sa5NVNwPW7UnTkZuGJxYg=; b=AfJ8JHHw8TIDCHl3Ndo56AFzoA/zA1N8SZHU39 IV2KeEJVVVVJZbiwB1CKmq3tWZCUspNaa6jHgOa8S0GtdPLEL+2BW43Mepy0qmn3 ZbiEuS9a/Mvo4K69M9TIl1DZyoakS9fgfUCqGaVULOzUfDSQVgFBOD/nlS1CTOkZ picxw= Received: (qmail 17047 invoked by alias); 3 Mar 2017 08:22:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16943 invoked by uid 89); 3 Mar 2017 08:22:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Date: Fri, 03 Mar 2017 09:22:32 +0100 To: libc-alpha@sourceware.org Subject: [PATCH COMMITTED] tzset: Remove __attribute_noinline__ from compute_offset User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20170303082232.AA94542550870@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) After commit 42261ad731991df345880b0b509d83b0b9a9b9d8, compute_offset is only called once, so not inlining it increases executable size. 2017-03-03 Florian Weimer * 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;