Go to file
kamil 847996952c Introduce _UC_MACHINE_FP() as a macro
_UC_MACHINE_FP() is a helper macro to extract from mcontext a frame pointer.

Don't rely on this interface as a compiler might strip frame pointer or
optimize it making this interface unreliable.


For hppa assume a small frame context, for larger frames FP might be located
in a different register (4 instead of 3).

For ia64 there is no strict frame pointer, and registers might rotate.
Reuse 79 following:

  ./gcc/config/ia64/ia64.h:#define HARD_FRAME_POINTER_REGNUM  LOC_REG (79)

Once ia64 will mature, this should be revisited.

A macro can encapsulate a real function for extracting Frame Pointer on
more complex CPUs / ABIs.


For the remaining CPUs, reuse standard register as defined in appropriate ABI.

The direct users of this macro are LLVM and GCC with Sanitizers.

Proposed on tech-userlevel@.

Sponsored by <The NetBSD Foundation>
2018-02-15 15:53:56 +00:00
bin Typos. 2018-02-08 09:05:16 +00:00
common Complete previous by complteley removing the _DIAGASSERT from memmove - 2018-02-12 11:14:15 +00:00
compat fix a comment. 2018-02-06 10:00:00 +00:00
crypto Provide SHAR384 flavors: The OpenSSL SHA512_Final implementation is re-used 2018-02-13 22:35:47 +00:00
dist/pf fix two issues found by GCC 6.4: 2018-02-04 08:44:36 +00:00
distrib obsolete some GCC 4.8 files. 2018-02-13 10:02:12 +00:00
doc note GCC 6.4 import. 2018-02-12 10:37:50 +00:00
etc updates for GCC 6.4: add gcc-6 specific headers, combine some 2018-02-03 21:27:45 +00:00
external Fix broken dig and host commands 2018-02-14 12:47:43 +00:00
extsrc
games Typos. 2018-02-08 09:05:16 +00:00
include fix typo 2018-02-06 20:22:41 +00:00
lib Fix __siglongjmp14(). 2018-02-12 22:31:04 +00:00
libexec Wrap PowerPC #pragma goop in #if __GNUC_PREREQ__(6,0). 2018-02-11 18:58:44 +00:00
regress Don't test call gates, they are not supported anymore. 2017-08-30 15:46:19 +00:00
rescue Extra flags for static PIE 2017-10-08 15:02:33 +00:00
sbin Revert functional changes in previous, at expense of strict KNF conformance. 2018-02-14 17:43:09 +00:00
share Add CSDL 2018-02-12 20:43:17 +00:00
sys Introduce _UC_MACHINE_FP() as a macro 2018-02-15 15:53:56 +00:00
tests Fix ping_opts_gateway and ping_opts_recordroute 2018-02-09 03:53:07 +00:00
tools also fetch GCOV_DUMP_OBJS. 2018-02-06 07:04:01 +00:00
usr.bin Avoid unused variable warning 2018-02-13 19:37:30 +00:00
usr.sbin Sort some lists. Use EXIT STATUS instead of RETURN VALUES. 2018-02-14 10:13:25 +00:00
build.sh Remove port-acorn26 2018-01-24 09:04:40 +00:00
BUILDING regen 2017-12-29 03:05:13 +00:00
Makefile Include somewhat misleadingly named do-x11 into BUILDTARGETS even with 2017-12-06 19:34:00 +00:00
Makefile.inc
UPDATING note that openssl and GCC may upset your builds. 2018-02-13 04:36:00 +00:00