This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[libgomp] No references to env.c -> no libgomp construction
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: gcc at gcc dot gnu dot org
- Cc: Alexander Monakov <amonakov at ispras dot ru>
- Date: Tue, 29 Nov 2016 22:31:13 +0100 (CET)
- Subject: [libgomp] No references to env.c -> no libgomp construction
- Authentication-results: sourceware.org; auth=none
Hello,
after a recent change:
commit 44a69dfd2c96110643d05176803c984a080b696b
Author: amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Nov 23 18:36:41 2016 +0000
OpenMP offloading to NVPTX: libgomp changes
* Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
* Makefile.in. Regenerate.
* configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
(LIBGOMP_USE_PTHREADS): ...here; new define.
* configure: Regenerate.
* config.h.in: Likewise.
* config/posix/affinity.c: Move to...
* affinity.c: ...here (new file). Guard use of Pthreads-specific
interface by LIBGOMP_USE_PTHREADS.
* critical.c: Split out GOMP_atomic_{start,end} into...
* atomic.c: ...here (new file).
* env.c: Split out ICV definitions into...
* icv.c: ...here (new file) and...
* icv-device.c: ...here. New file.
the env.c contains now only local symbols (at least for target *-rtems*-*):
nm --defined-only ./arm-rtems4.12/libgomp/env.o
000008d8 t initialize_env
00000000 d kinds.9043
00000000 t parse_boolean
00000880 t parse_int.constprop.4
0000032c t parse_one_place
000001a0 t parse_stacksize
000000c4 t parse_unsigned_long
Thus the libgomp constructor is not linked in into executables.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.