From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13465 invoked by alias); 15 Dec 2014 02:17:05 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 13448 invoked by uid 89); 15 Dec 2014 02:17:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f181.google.com Received: from mail-ob0-f181.google.com (HELO mail-ob0-f181.google.com) (209.85.214.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 15 Dec 2014 02:16:56 +0000 Received: by mail-ob0-f181.google.com with SMTP id gq1so15674408obb.12 for ; Sun, 14 Dec 2014 18:16:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=3rGrcLEkEEwI8bvEVnsNPSW0GDgg3pav3dvi6Ljbk40=; b=E3Hw9PYQcv+I/lknK7XxoN37prg2gyeHz6pmFj4knWzZylLbvB3pqGlqDDO+YhjwhJ R2Y3ICq8SFALyKWPnQ1CMJRJiqq+7No2Y/o/lCzhiR8nOCey+TWws9G6kXSBC7Yfk4pm cn3Ws/M8hGFplpKjB1yZfY9w4v/SJdUCAAu6ZnrXSnBlow9BpoOsraKLLPq+UTLyqKSk LBGk5+NMizGsFXzfcuhWBGJ5vVI/mglNivYoq6T7ESGfa4GFT+1Ybybh8uzQI5o4WEVf pcy7srGRKUEwM7cdu6P+atNL+xQSTvSECKCul3rNtWiW2BQlVuDw6KMUcaiuedGth0gZ lDhQ== X-Gm-Message-State: ALoCoQkXqChbrUiRYEvsvx+7obqJBHgPeq99hqqXpnISdrGo2+KGjUcUzPld89fQHX2iS5D73BH+ X-Received: by 10.202.13.132 with SMTP id 126mr16535376oin.75.1418609809949; Sun, 14 Dec 2014 18:16:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.180.229 with HTTP; Sun, 14 Dec 2014 18:16:29 -0800 (PST) In-Reply-To: References: From: "Jason T. Masker" Date: Mon, 15 Dec 2014 02:17:00 -0000 Message-ID: Subject: Re: [PATCH 1/2][RESEND] Prevent zconf.gperf from throwing an error on OSX To: Bryan Hundven Cc: crossgcc Content-Type: multipart/mixed; boundary=001a113d162ccc3396050a37d581 X-SW-Source: 2014-12/txt/msg00075.txt.bz2 --001a113d162ccc3396050a37d581 Content-Type: text/plain; charset=UTF-8 Content-length: 1327 On Fri, Dec 5, 2014 at 6:25 AM, Bryan Hundven wrote: > Jason, > > On Thu, Oct 16, 2014 at 9:51 AM, Jason T. Masker wrote: >> Updated zconf.gperf patch to be conditional. >> >> The problem is when compiling with clang/LLVM, so not necessarily >> specific to OS X. Offsetof is part of C99 and defined in stddef.h, but >> is builtin with gcc. This code will check for a definition and try >> including stddef.h if it is not found. As a last resort, offsetof will >> be defined. Apologies for the resend. I did not sign off. >> >> Signed-off-by: Jason Masker >> >> >> diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf >> index c9e690e..d758a2a 100644 >> --- a/kconfig/zconf.gperf >> +++ b/kconfig/zconf.gperf >> @@ -7,6 +7,15 @@ >> %pic >> %struct-type >> >> +%{ >> +# ifndef offsetof >> +# include >> +# ifndef offsetof >> +# define offsetof(st, m) ((size_t)(&((st *)0)->m)) >> +# endif >> +# endif >> +%} >> + >> struct kconf_id; >> >> static struct kconf_id *kconf_id_lookup(register const char *str, >> register unsigned int len); > > Dang, I wanted to apply this but the patch did not apply cleanly. > Would you mind rebasing this patch with latest head and resending? > Then I'll finally get this bad boy applied. > > Thanks, > > -Bryan --001a113d162ccc3396050a37d581 Content-Type: application/octet-stream; name="0001-update-zconf.gperf-to-conditionally-define-offsetof.patch" Content-Disposition: attachment; filename="0001-update-zconf.gperf-to-conditionally-define-offsetof.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i3p7mxxt0 Content-length: 1066 RnJvbSBlNzQzODE0YmNiZTNiY2UxMGU1NTlkMTNmMjFiMGJlOTFlMjk4ODEz IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKYXNvbiBNYXNrZXIg PGphc29uQG1hc2tlci5uZXQ+CkRhdGU6IFN1biwgMTQgRGVjIDIwMTQgMjA6 NTM6MzUgLTA1MDAKU3ViamVjdDogW1BBVENIXSB1cGRhdGUgemNvbmYuZ3Bl cmYgdG8gY29uZGl0aW9uYWxseSBkZWZpbmUgb2Zmc2V0b2YKClNpZ25lZC1v ZmYtYnk6IEphc29uIE1hc2tlciA8amFzb25AbWFza2VyLm5ldD4KLS0tCiBr Y29uZmlnL3pjb25mLmdwZXJmIHwgOSArKysrKysrKysKIDEgZmlsZSBjaGFu Z2VkLCA5IGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9rY29uZmlnL3pj b25mLmdwZXJmIGIva2NvbmZpZy96Y29uZi5ncGVyZgppbmRleCBjOWU2OTBl Li5kNzU4YTJhIDEwMDY0NAotLS0gYS9rY29uZmlnL3pjb25mLmdwZXJmCisr KyBiL2tjb25maWcvemNvbmYuZ3BlcmYKQEAgLTcsNiArNywxNSBAQAogJXBp YwogJXN0cnVjdC10eXBlCiAKKyV7CisjIGlmbmRlZiBvZmZzZXRvZgorIyAg aW5jbHVkZSA8c3RkZGVmLmg+CisjICBpZm5kZWYgb2Zmc2V0b2YKKyMgICBk ZWZpbmUgb2Zmc2V0b2Yoc3QsIG0pICgoc2l6ZV90KSgmKChzdCAqKTApLT5t KSkKKyMgIGVuZGlmCisjIGVuZGlmCislfQorCiBzdHJ1Y3Qga2NvbmZfaWQ7 CiAKIHN0YXRpYyBzdHJ1Y3Qga2NvbmZfaWQgKmtjb25mX2lkX2xvb2t1cChy ZWdpc3RlciBjb25zdCBjaGFyICpzdHIsIHJlZ2lzdGVyIHVuc2lnbmVkIGlu dCBsZW4pOwotLSAKMi4yLjAKCg== --001a113d162ccc3396050a37d581 Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --001a113d162ccc3396050a37d581--