diff options
author | Will Newton <will.newton@linaro.org> | 2014-03-17 10:44:13 +0000 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-03-17 16:05:22 +0000 |
commit | 53f1bed39263541ef7f3d86f9701005524938016 (patch) | |
tree | 253f292b90c02102f9a1d3cd87b1010de081d9c0 | |
parent | 788bba368c2eaf8aa3fd2ca18d269395d6bc8afb (diff) | |
download | glibc-53f1bed39263541ef7f3d86f9701005524938016.tar glibc-53f1bed39263541ef7f3d86f9701005524938016.tar.gz glibc-53f1bed39263541ef7f3d86f9701005524938016.tar.bz2 glibc-53f1bed39263541ef7f3d86f9701005524938016.zip |
Fix HP_SMALL_TIMING_AVAIL -Wundef warnings
ChangeLog:
2014-03-17 Will Newton <will.newton@linaro.org>
* sysdeps/generic/ldsodefs.h: Check whether
HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
than #if.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/generic/ldsodefs.h | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2014-03-17 Will Newton <will.newton@linaro.org> + * sysdeps/generic/ldsodefs.h: Check whether + HP_SMALL_TIMING_AVAIL is defined with #ifdef rather + than #if. + * nptl/sysdeps/pthread/pthread.h: Check __PTHREAD_MUTEX_HAVE_ELISION is defined before testing its value. diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 65cd709fef..d61b9f9984 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -322,7 +322,7 @@ struct rtld_global /* The object to be initialized first. */ EXTERN struct link_map *_dl_initfirst; -#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL +#if HP_TIMING_AVAIL || defined HP_SMALL_TIMING_AVAIL /* Start time on CPU clock. */ EXTERN hp_timing_t _dl_cpuclock_offset; #endif @@ -535,7 +535,7 @@ struct rtld_global_ro /* All search directories defined at startup. */ EXTERN struct r_search_path_elem *_dl_init_all_dirs; -#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL +#if HP_TIMING_AVAIL || defined HP_SMALL_TIMING_AVAIL /* Overhead of a high-precision timing measurement. */ EXTERN hp_timing_t _dl_hp_timing_overhead; #endif |