jackxiao / jslibs

Automatically exported from code.google.com/p/jslibs
0 stars 0 forks source link

Use of goto for error handling causes 'jump to label crosses intialisation' #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compiling jshost fails.

gcc is 4.1.2, make is 3.81

There is lot of erros due to error handling macros (having 'goto bad' in 
them). The compiler output looks like this:

../common/jsHelper.h: In function 'JSBool JsvalToIntVector(JSContext*, 
jsval, int*, size_t, size_t*)':
../common/jsHelper.h:1036: error: jump to label 'bad'
../common/jsHelper.h:1023: error:   from here
../common/jsHelper.h:1024: error:   crosses initialization of 'JSObject* 
arrayObj'

Original issue reported on code.google.com by goo...@ziak.com on 21 Nov 2008 at 5:37

GoogleCodeExporter commented 9 years ago
Ok, I just found issue 74 is very similar to this one.

Unfortunately before the submit I searched for 'goto' yielding no issues, while 
the 
#74 uses 'go to' ... ooops.

Is there currently a way to make this compile by gcc?

Roman

Original comment by goo...@ziak.com on 21 Nov 2008 at 5:49

GoogleCodeExporter commented 9 years ago
On the project's page (after the News section), I try to keep the "SVN revision
status" section up to date.
The current status is:
  stable: 1881
  testing: 2165
  unstable: HEAD
The stable revision match the last released package. The testing is the latest
revision that compiles fine and the unstable is the trunk.

Original comment by sou...@gmail.com on 21 Nov 2008 at 9:27

GoogleCodeExporter commented 9 years ago

Original comment by sou...@gmail.com on 27 Nov 2008 at 9:44