Eliminate 'address of local variable returned' static analyzer warning
authorIvan Maidanski <ivmai@mail.ru>
Wed, 5 Oct 2016 08:32:00 +0000 (11:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 5 Oct 2016 08:32:00 +0000 (11:32 +0300)
commit8a72b0059569406bfc9dd9811f6ef48206ccc75a
tree3947dd3f83f81e3c14e5a980984f3d0c0661e84c
parent43c543923af72ad495f8c44eaab25ceebe379c4f
Eliminate 'address of local variable returned' static analyzer warning

* mark_rts.c [__GNUC__ >= 4] (GC_approx_sp): Use
__builtin_frame_address(0) instead of &sp (but still write the value to
the volatile local variable to force stack to grow if necessary).
* tools/setjmp_t.c [__GNUC__ >= 4] (nested_sp): Return
__builtin_frame_address(0) instead of sp.
mark_rts.c
tools/setjmp_t.c