This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]