Very strange. It does sound like a native optimizer bug. If you run with EMCC_DEBUG=1 then you will get the .js files in /tmp/emscripten_temp, that should be enough to figure out what is going on, please file a bug with those.
- Alon On Mon, Jan 26, 2015 at 12:52 AM, Lu Wang <[email protected]> wrote: > Hi, > > Today I found that `-Oz` no longer works for my code, although `-O0` > still works fine. > > The browser always complained about 'unexpected token `else`' or > 'unexpected token `}`', and the reason is that there are empty if clauses > like this: > > if (c|2==1) else i=0; > > or: > > ... { > ... > if((f(a,b)|0) == 1) > } > > which looks really weird. > > I guess it has something to do with the js optimizer in emscripten, and > it may or may not be related to ASYNCIFY. > > I failed to create a minimal test case for this, do you have any idea > about this bug, or could you provide any hint that which files in > emscripten I should take a look at? > > Thanks! > > regards, > - Lu > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
