Give GCC more control flow information, so it can be sure that
authorJim Blandy <jimb@red-bean.com>
Wed, 18 Dec 1996 21:39:44 +0000 (21:39 +0000)
committerJim Blandy <jimb@red-bean.com>
Wed, 18 Dec 1996 21:39:44 +0000 (21:39 +0000)
commit3323ad081e607467dccf7c68d9c33e8f99a8fd85
tree0bdeeb66eb193661bfb58f9b82af973c96e012ea
parent1b306e162338208673289a3275bcebb8f8a6c048
Give GCC more control flow information, so it can be sure that
variables aren't used uninitialized.
* error.h (scm_error, scm_syserror, scm_syserror_msg,
scm_sysmissing, scm_num_overflow, scm_out_of_range,
scm_wrong_num_args, scm_wrong_type_arg, scm_memory_error,
scm_misc_error): Tell GCC that these functions never return.
* struct.c (scm_struct_ref, scm_struct_set_x): If we can't figure
out the field type, call abort if SCM_ASSERT returns, to placate
the optimizer.
* stacks.c (scm_make_stack, scm_last_stack_frame): abort if
scm_wta ever returns.  We can't handle this case anyway, and this
gives the optimizer more information.
* unif.c (scm_uniform_vector_ref, scm_array_set_x): Abort if
scm_wta ever returns.
libguile/error.h
libguile/stacks.c