From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: stubdom vtpm build failure in staging Date: Thu, 29 Jan 2015 10:46:32 +0000 Message-ID: <1422528392.30641.24.camel@citrix.com> References: <20150128150850.GA4285@aepfle.de> <1422458693.5187.19.camel@citrix.com> <945CA011AD5F084CBEA3E851C0AB28890E87F6C4@SHSMSX101.ccr.corp.intel.com> <20150129082706.GB1410@aepfle.de> <945CA011AD5F084CBEA3E851C0AB28890E87F775@SHSMSX101.ccr.corp.intel.com> <20150129093649.GA20318@aepfle.de> <20150129102736.GA1106@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150129102736.GA1106@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering , Ian Jackson Cc: "Xu, Quan" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2015-01-29 at 11:27 +0100, Olaf Hering wrote: > On Thu, Jan 29, Olaf Hering wrote: > > > Looks like old gcc can not handle two typedefs? > > Yes, this fails already: > > typedef unsigned char BYTE; > typedef unsigned char BYTE; > void f(int *v) { *v *= *v; } > > t.c:2:23: error: redefinition of typedef 'BYTE' > t.c:1:23: note: previous declaration of 'BYTE' was here This compiles for me on Debian with gcc 4.7.2-5. I'm honestly not sure what the C standard says about duplicate but identical typedefs -- Ian? Ian.