From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4922 invoked by alias); 3 Apr 2017 08:29:14 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 3706 invoked by uid 89); 3 Apr 2017 08:29:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Apr 2017 08:29:12 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E0CFC61B8F for ; Mon, 3 Apr 2017 08:29:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E0CFC61B8F Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=vinschen@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E0CFC61B8F Received: from calimero.vinschen.de (ovpn-117-18.ams2.redhat.com [10.36.117.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD3CD5C892 for ; Mon, 3 Apr 2017 08:29:12 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id C0AA5A804A5; Mon, 3 Apr 2017 10:29:10 +0200 (CEST) Date: Mon, 03 Apr 2017 08:29:00 -0000 From: Corinna Vinschen To: newlib@sourceware.org Subject: Re: [PATCH] Use enum __packed in favour of -fshort-enums Message-ID: <20170403082910.GA20833@calimero.vinschen.de> Reply-To: newlib@sourceware.org Mail-Followup-To: newlib@sourceware.org References: <1490950842-13881-1-git-send-email-sebastian.huber@embedded-brains.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <1490950842-13881-1-git-send-email-sebastian.huber@embedded-brains.de> User-Agent: Mutt/1.8.0 (2017-02-23) X-SW-Source: 2017/txt/msg00241.txt.bz2 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 561 On Mar 31 11:00, Sebastian Huber wrote: > Some architectures like ARM encode the short enum option state in the > object file and the linker checks that this option is consistent for all > objects of an executable. In case applications use -fno-short-enums, > then this leads to linker warnings. Use the enum __packed attribute for > the relevent enums to avoid the -fshort-enums compiler option. This > attribute is at least available on GCC, LLVM/clang and the Intel > compiler. Pushed. Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer Red Hat --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJY4gfWAAoJEPU2Bp2uRE+gqpcP/in7Hxon9wSgqcbwQf7758Rb WXczMcmKHkc1SFislY2zuplbU5ryJAw7N/h5SXrqj6kjQ/dNBNLT4vzlaKWEefZu +PEEoqLda/itXuwQasdv3JFAp54u6VKLXdcgbsugNT+8CH3EFrMiNUsa+deQ6bVT 904mG+ntG/QBpheCir2nPpSX5MK5rsOVeq4JRfCMa+s/XjArQjd9maoi/sjj2Au5 UEEAcX6gM1solR9rqELdrjf4xujU5AeIkLV7vzzQZKYeIU6DQ7+b74wrbowCxLzL aWM+CDoo+lJVlZrsGkxtBdp8dAZHVLcMDudAFLuWILmh84vxKBvZTnnGufKTWPeB TPy2nuVZ1CRxXkO+ikfaSvngjwBZnvs8b8dqCrWQW3+JFWtQQnNk5kz94fueqa8Z HQVBPvyorVZT5LkXbms+fNFtus44dOwIda0cL0ugrZ9zKEa9uJCAcEVBXJD02eM3 O3jB8602KxSH5gU3s0z2OHH7kwQyEVBzxel6nBZco0uYzSJckGSoopbjfbsMvuub QgDXJHIfTBpnCks2AkouJTfmTKu/RxAt76+BKpIq4ahoXcUfk14GynEashjnHXta J5X1oUrpq9w8ubOOTwcTns6RNqgmGAhU5R0UIFuFH4/EIkwCxID5+yvtvztULJld ee4BVk/SasOZh5AvmdVh =nJiK -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--