This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix thinko in emutls_finish
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Nov 2008 11:41:58 -0500 (EST)
- Subject: [committed] Fix thinko in emutls_finish
The enclosed change fixes a thinko in emutls_finish. The registration
of common objects needs to be done when targetm.emutls.register_common
is not NULL.
This fixes some libgomp testsuite fails on hppa*-*-hpux*.
Committed as obvious. Tested on hppa2.0w-hp-hpux11.11.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2008-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/38283
* varasm.c (emutls_finish): Fix common registration.
Index: varasm.c
===================================================================
--- varasm.c (revision 142291)
+++ varasm.c (working copy)
@@ -449,7 +449,7 @@
void
emutls_finish (void)
{
- if (!targetm.emutls.register_common)
+ if (targetm.emutls.register_common)
{
tree body = NULL_TREE;