diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-10-13 18:21:32 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2013-10-13 18:21:32 +0200 |
commit | ad0d71b531e7d06b96e1b3675ba99845f43f766d (patch) | |
tree | 17541ff65910eb69bb15a9689634fda36c44df38 /gcc/ada/thread.c | |
parent | cf895a0159fe915e00213fa700fbe8a1bc838b7a (diff) | |
download | gcc-ad0d71b531e7d06b96e1b3675ba99845f43f766d.zip gcc-ad0d71b531e7d06b96e1b3675ba99845f43f766d.tar.gz gcc-ad0d71b531e7d06b96e1b3675ba99845f43f766d.tar.bz2 |
[multiple changes]
2013-10-13 Thomas Quinot <quinot@adacore.com>
* scos.ads: Minor documentation clarification.
2013-10-13 Thomas Quinot <quinot@adacore.com>
* s-oscons-tmplt.c (CLOCK_RT_Ada): Set to CLOCK_MONOTONIC when
building on AIX 5.3 or later, and to CLOCK_REALTIME on older
versions of AIX.
* init.c (pthread_condattr_setclock): Remove now useless weak symbol.
* thread.c(__gnat_pthread_condattr_setup): Remove bogus AIX 5.2
compatibility shim.
* s-osinte-aix.ads(clock_id_t): Fix C mapping (this is a 64-bit
type).
(clock_gettime): Import from C runtime library.
* s-osinte-aix.adb (clock_gettime): Remove bogus emulation body,
this routine is provided by the system in current supported
versions of AIX.
2013-10-13 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb: Minor reformatting.
2013-10-13 Ed Schonberg <schonberg@adacore.com>
* freeze.adb (Freeze_Entity): For a function whose return type
is incomplete, do not replace the type with the full view if the
type is a limited view. In that case the full view appears in a
different unit, and the back-end will retrieve it at the proper
elaboration point.
2013-10-13 Yannick Moy <moy@adacore.com>
* exp_spark.adb (Expand_SPARK_Call): Do not introduce temporaries for
actuals.
From-SVN: r203503
Diffstat (limited to 'gcc/ada/thread.c')
-rw-r--r-- | gcc/ada/thread.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gcc/ada/thread.c b/gcc/ada/thread.c index 237cfaf..31309e0 100644 --- a/gcc/ada/thread.c +++ b/gcc/ada/thread.c @@ -40,27 +40,8 @@ # include <pthread.h> # include <time.h> -#ifndef _AIXVERSION_530 -/* We use the same runtime library for AIX 5.2 and 5.3, but pthread_condattr_ - * setclock exists only on the latter, so for the former provide a dummy - * implementation (declared below, weak symbol defined in init.c). - * - * Note: this means that under AIX 5.2 we'll be using CLOCK_MONOTONIC - * timestamps from clock_gettime() as arguments to pthread_cond_timedwait, - * which expects a CLOCK_REALTIME value, which is technically wrong, but - * inocuous in practice on that particular platform since both clocks happen - * to use close epochs. - */ - -extern int pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t cl); -#endif - int __gnat_pthread_condattr_setup(pthread_condattr_t *attr) { -/* - * If using a clock other than CLOCK_REALTIME for the Ada Monotonic_Clock, - * the corresponding clock id must be set for condition variables. - */ return pthread_condattr_setclock (attr, CLOCK_RT_Ada); } |