public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix missing err declaration in __pthread_initialize_minimal_internal
@ 2015-05-22 17:18 Steve Ellcey
  2015-05-24 15:07 ` Carlos O'Donell
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Ellcey @ 2015-05-22 17:18 UTC (permalink / raw)
  To: GNU C Library; +Cc: Roland McGrath

Roland's patch (https://sourceware.org/ml/libc-alpha/2015-05/msg00464.html)
to set tid field to a unique value removed the declaration of err
[INTERNAL_SYSCALL_DECL (err);] from __pthread_initialize_minimal_internal,
but there are other uses of err in other INTERNAL_SYSCALL's in
__pthread_initialize_minimal_internal so this broke the build glibc build
for MIPS (and presumably other platforms).

Here is a patch to put the declaration back.  I think the only question
is exactly where this declaration should go.   I initially put it right
in front of the first INTERNAL_SYSCALL call but I noticed that that is inside
of an ifdef and there are other INTERNAL_SYSCALL uses (with err) that
are in different ifdef's so I moved the declaration outside of any ifdef's.
This fixed my build problem.  OK to checkin?

Steve Ellcey
sellcey@imgtec.com



2015-05-22  Steve Ellcey  <sellcey@imgtec.com>

	* nptl/nptl-init.c (__pthread_initialize_minimal_internal):
	Add declaration of err that was removed in earlier patch.



diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 5b8d931..3bfb478 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -326,6 +326,7 @@ __pthread_initialize_minimal_internal (void)
   pd->robust_prev = &pd->robust_head;
 #endif
   pd->robust_head.list = &pd->robust_head;
+  INTERNAL_SYSCALL_DECL (err);
 #ifdef __NR_set_robust_list
   pd->robust_head.futex_offset = (offsetof (pthread_mutex_t, __data.__lock)
 				  - offsetof (pthread_mutex_t,


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-26 17:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 17:18 [PATCH] Fix missing err declaration in __pthread_initialize_minimal_internal Steve Ellcey
2015-05-24 15:07 ` Carlos O'Donell
2015-05-25 11:46   ` Khem Raj
2015-05-26 17:18   ` Steve Ellcey
2015-05-26 18:25     ` Carlos O'Donell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).