Libgomp magic offset value self-documentation
authorJulian Brown <julian@codesourcery.com>
Thu, 3 Oct 2019 17:48:36 +0000 (17:48 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Thu, 3 Oct 2019 17:48:36 +0000 (17:48 +0000)
commit6c7e076b746e17ab9d49255c4ba9b2d01ff997c8
tree15eadd016ac0f31fca59993208ac90e51181b972
parent5dbe01a1ffe4a3920f81a2b4349d31ec6871b9de
Libgomp magic offset value self-documentation

2019-10-02  Julian Brown  <julian@codesourcery.com>
    Cesar Philippidis  <cesar@codesourcery.com>

libgomp/
* libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
* target.c (FIELD_TGT_EMPTY): Define.
(gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
as switch instead of list of ifs.
(gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.

Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r276519
libgomp/ChangeLog
libgomp/libgomp.h
libgomp/target.c