[Buildroot] [PATCH 1/2] gcc: remove option on SJLJ exceptions

Michael S. Zick minimod at morethan.org
Thu Jul 29 15:11:59 UTC 2010


On Thu July 29 2010, Thomas Petazzoni wrote:
> Hello Michael,
> 
> On Thu, 29 Jul 2010 07:18:56 -0500
> "Michael S. Zick" <minimod at morethan.org> wrote:
> 
> > mszick at wolf466:~$ lua
> > Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > > bye = function() return os.exit("String Value") end
> > > bye()
> > stdin:1: bad argument #1 to 'exit' (number expected, got string)
> > stack traceback:
> >         [C]: in function 'exit'
> >         stdin:1: in function 'bye'
> >         stdin:1: in main chunk
> >         [C]: ?
> 
> With the current Buildroot git (i.e, without SJLJ exceptions), I built
> an ARM system with Lua, and made your test under Qemu. I had the exact
> same output, with the exact same stack trace.
> 
> Are more complicated cases likely to make a difference ?
> 

It might make a difference if you compile it with C++ rather than C
Lua is written in "clean C" it will compile with either compiler and
when used as an extension library for C++ usually is compiled with C++

Mike
> Regards,
> 
> Thomas





More information about the buildroot mailing list