]> granicus.if.org Git - gc/commit
Place no_sanitize address/memory attributes in a GCC-compliant way
authorIvan Maidanski <ivmai@mail.ru>
Mon, 20 Nov 2017 21:10:08 +0000 (00:10 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 15 Dec 2017 21:09:03 +0000 (00:09 +0300)
commited2cd19aba2b1f6d8801c796eba8082d7fe26609
tree0673b4c943848db3d2741fabdd2dcbb65a2a4ff1
parentf1221a4699f8a8031d4ebb6298225bc944495372
Place no_sanitize address/memory attributes in a GCC-compliant way
(Cherry-pick commit 2914cbff from 'master' branch.)

Now the attributes precede the function prototypes (the format is:
<attribute> void f(void) <body>).

* mark.c (GC_mark_from, GC_push_all_eager): Move
GC_ATTR_NO_SANITIZE_ADDR, GC_ATTR_NO_SANITIZE_MEMORY attributes to the
beginning of the function prototype.
* mach_dep.c (GC_with_callee_saves_pushed): Likewise.
* mark.c [WRAP_MARK_SOME && PARALLEL_MARK] (GC_push_conditional_eager):
Likewise.
mach_dep.c
mark.c