From 9d80f439131664ba852db64a6d5ac80a4d4e6f2e Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Thu, 11 Jul 2019 08:02:40 +0000 Subject: [PATCH] [Ada] errno.c: remove obsolete support for MaRTE OS 2019-07-11 Arnaud Charlet gcc/ada/ * errno.c: Remove obsolete support for MaRTE OS. From-SVN: r273396 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/errno.c | 15 ++------------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 0b4871c2d26..a38990f3b45 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2019-07-11 Arnaud Charlet + + * errno.c: Remove obsolete support for MaRTE OS. + 2019-07-11 Ed Schonberg * exp_ch4.adb (Expand_N_Type_Conversion): If a predicate check diff --git a/gcc/ada/errno.c b/gcc/ada/errno.c index a64ae876d5b..18f14ea06b3 100644 --- a/gcc/ada/errno.c +++ b/gcc/ada/errno.c @@ -35,21 +35,10 @@ as it may be defined using a macro. */ - +#ifndef _REENTRANT #define _REENTRANT -#define _THREAD_SAFE - -#ifdef MaRTE - -/* MaRTE OS provides its own implementation of errno related functionality. We - want to ensure the use of the MaRTE version for tasking programs (the MaRTE - library will not be linked if no tasking constructs are used), so we use the - weak symbols mechanism to use the MaRTE version whenever is available. */ - -#pragma weak __get_errno -#pragma weak __set_errno - #endif +#define _THREAD_SAFE #include int -- 2.30.2