e51fe8759d
goto and abstracted by the itry, ithrow and icatch macros (among others). The problem with this code is that it doesn't compile on ia64. The compiler is sufficiently confused that it inserts a call to __ia64_save_stack_nonlock(). This is a magic function that saves enough of the stack to allow for non-local gotos, such as would be the case for nested functions. Since it's not a compiler defined function, it needs a runtime implementation. This we have not in a standalone compilation as is the kernel. There's no indication that the compiler is not confused on other platforms. It's likely that saving the stack in those cases is trivial enough that the compiler doesn't need to off-load the complexity to a runtime function. The code is believed to be correctly translated, but has not been tested. The overall structure remained the same, except that it's made explicit. The macros that implement the try/catch construct have been removed to avoid reintroduction of their use. It's not a good idea. In general the rewritten code is slightly more optimal in that it doesn't need as much stack space and generally is smaller in size. Found by: LINT |
||
---|---|---|
.. | ||
netbios.h | ||
smb_conn.c | ||
smb_conn.h | ||
smb_crypt.c | ||
smb_dev.c | ||
smb_dev.h | ||
smb_iod.c | ||
smb_rq.c | ||
smb_rq.h | ||
smb_smb.c | ||
smb_subr.c | ||
smb_subr.h | ||
smb_tran.h | ||
smb_trantcp.c | ||
smb_trantcp.h | ||
smb_usr.c | ||
smb.h |