[Toybox] ToyBox ?: gcc extension excision

Kevin Chase kevincha99 at hotmail.com
Mon Apr 9 07:46:29 PDT 2012


I was looking into using toysh on Windows to solve a porting issue and this cropped up with the MS compiler.
I wouldn't be surprised if this is an issue with Unix vendor compilers as well. --Kevin> Date: Mon, 9 Apr 2012 00:06:24 +0300
> From: gf at unixsol.org
> To: rob at landley.net
> CC: kevincha99 at hotmail.com; toybox at lists.landley.net
> Subject: Re: [Toybox] ToyBox ?: gcc extension excision
> 
> On 4/8/12 5:12 AM, Rob Landley wrote:
> > On 04/07/2012 12:25 PM, Kevin Chase wrote:
> >> Hi Rob,
> >>
> >> Just poking toybox lightly, and noticed a gcc extension in the code (x ?
> >> : y for x ? x : y).  I assume you want to support other compilers, so
> >> here's a removal patch.
> >
> > Huh.  I think Georgi built the thing with llvm, I don't remember him
> > having to remove that?  But I'm _still_ not caught up with his patch
> > backlog.  (I spent the past month buying a house, relatives are visiting
> > this week... The usual.)
> >
> > If those are the only two occurrences of the thing I might as well
> > remove it, but does this actually make it build somewhere it didn't
> > before?  (llvm? pcc? I know tinycc already supports this extension...)
> 
> clang (llvm 2.9) compiles this gcc extension without problems, but I don't
> think the extension brings much to keep using it.
> 
> -- 
> Georgi Chorbadzhiyski
> http://georgi.unixsol.org/
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120409/f1ff9355/attachment-0005.htm>


More information about the Toybox mailing list