aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-07-16 07:18:53 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-16 07:18:53 -0700
commit55c4ce6885b577e2b29a4de674d4062a6882afe8 (patch)
tree054f639bf7509213926c2e8d1ac139c89da6ce6d
parentc8027cced1d3e7803c440cb13d4294754d8791e2 (diff)
downloadglibc-55c4ce6885b577e2b29a4de674d4062a6882afe8.tar
glibc-55c4ce6885b577e2b29a4de674d4062a6882afe8.tar.gz
glibc-55c4ce6885b577e2b29a4de674d4062a6882afe8.tar.bz2
glibc-55c4ce6885b577e2b29a4de674d4062a6882afe8.zip
Remove warning and little optimization.
The prototype for _dl_higher_prime_number was missing. While at it, the function is now marked with internal_function.
-rw-r--r--ChangeLog4
-rw-r--r--elf/dl-misc.c1
-rw-r--r--sysdeps/generic/ldsodefs.h4
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1bfdd7b56d..48b5d029f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2009-07-16 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/generic/ldsodefs.h: Add prototype for
+ _dl_higher_prime_number.
+ * elf/dl-misc.c (_dl_higher_prime_number): Mark with internal_function.
+
* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Optimize
restoring of ymm registers a bit.
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index 7d4e1a1725..d50537ade7 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -315,6 +315,7 @@ _dl_name_match_p (const char *name, const struct link_map *map)
unsigned long int
+internal_function
_dl_higher_prime_number (unsigned long int n)
{
/* These are primes that are near, but slightly smaller than, a
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 1e1bb4ccd4..30f9d23091 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -335,6 +335,10 @@ struct audit_ifaces
extern int _dl_name_match_p (const char *__name, const struct link_map *__map)
internal_function;
+/* Compute next higher prime number. */
+extern unsigned long int _dl_higher_prime_number (unsigned long int n)
+ internal_function;
+
/* Function used as argument for `_dl_receive_error' function. The
arguments are the error code, error string, and the objname the
error occurred in. */