From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14303 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Holland Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH v2 0/3] Resolve compiler warnings in master Date: Sat, 29 Jun 2019 18:19:03 -0500 Message-ID: <20190629231906.64452-1-samuel@sholland.org> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="250445"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Samuel Holland To: musl@lists.openwall.com Original-X-From: musl-return-14319-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 30 01:19:26 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hhMcw-001341-SW for gllmg-musl@m.gmane.org; Sun, 30 Jun 2019 01:19:26 +0200 Original-Received: (qmail 18153 invoked by uid 550); 29 Jun 2019 23:19:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18113 invoked from network); 29 Jun 2019 23:19:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=myF6YEXgZESlgoNXyS35mZj5u0 67WW/nM20BBEjgdv4=; b=lme7I5sCoL5hRTyAr4K7TRxc41Sth0SOJwkqAIQTib ChqL9kpop+dl+QKc38vXYRXbxMS6J8SfY1qKawImjijVOnnDPf+xS6MnVkCJ1Nor xOjtmRmiaWgW+v9u4BLC9pXsmxPHhoACIytvmcnOAi47OQHiSZb1IRcFP7IsV+tL K0xLZkSgJ7vNaPC2rq1N0JdDSEF2UpTo9paA89qXmZeCG7bgigGn9NknBJZMOw+3 ArvkO3aQsQUNvOlNB7HlI2cm9IKlYjfI/cDZrXT0X3eMzZDLMan0rZVlwSN1ZTEK STR3UYE3xUS41Whgm7D02hgSuEG06S7Yg8adbnSyL7Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=myF6YEXgZESlgoNXy S35mZj5u067WW/nM20BBEjgdv4=; b=wqyddNx8uW/PAIPl5w/H8zi7iimmu/mos 52cAILsIomPOxk+tvmzxWygulbvaPAGzZ+a3wNmAD+i5a38kMz14oUKSJtfsq3TR WcDbwjCb+tWqmyjWpZzeQy+a3MyzRTGwOIC3Bo3WQbu3ZLu+Tm/GNgG93ahkqMp/ 20KUtIUBSisAMoWE9Z47ysP3cdiLOPHyz44Nty2n2MGuQumol2iDDlakE2YN3TjI 6D68zSYxJJQfgagz7rXHVo/z4s10P+QWQE5PYHPmaywAN78c6sILSls2/He5J0Tt YCVAYDUDKpPg19Os7eZBh3rk5bERhK5H7qX8NzqtWq+6CQTVMT6kw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvdefgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefurghmuhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhl lhgrnhgurdhorhhgqeenucfkphepjedtrddufeehrddugeekrdduhedunecurfgrrhgrmh epmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: X-Mailer: git-send-email 2.21.0 Xref: news.gmane.org gmane.linux.lib.musl.general:14303 Archived-At: These three patches resolve some compiler warnings about mismatched attributes, and restrict violations, and a macro redifinition. Fixing the header prototype for ___errno_location does provide the expected optimization improvement: Before: text data bss dec hex filename 675262 2146 11568 688976 a8350 lib/libc.so After: text data bss dec hex filename 674838 2146 11568 688552 a81a8 lib/libc.so Changes since v1: - Move the attribute to the prototype in src/include/errno.h - Add patch 3 Samuel Holland (3): resolve -Wrestrict warnings use the correct attributes for ___errno_location Revert "mips,powerpc: fix TIOCSER_TEMT in termios.h" arch/mips/bits/termios.h | 2 +- arch/mips64/bits/termios.h | 2 +- arch/mipsn32/bits/termios.h | 2 +- arch/powerpc/bits/termios.h | 2 +- arch/powerpc64/bits/termios.h | 2 +- src/aio/lio_listio.c | 6 +++--- src/include/errno.h | 3 +++ src/signal/sigset.c | 8 ++++---- src/unistd/ualarm.c | 6 +++--- 9 files changed, 18 insertions(+), 15 deletions(-) -- 2.21.0