From patchwork Sat Jan 12 13:16:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0J/QsNCy0LXQuyDQmtGA0Y7QutC+0LI=?= X-Patchwork-Id: 31042 Received: (qmail 40755 invoked by alias); 12 Jan 2019 13:16:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 40740 invoked by uid 89); 12 Jan 2019 13:16:41 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, FROM_EXCESS_BASE64, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=compiler's, simulation, H*c:alternative, H*F:D*ru X-HELO: mail-it1-f181.google.com Received: from mail-it1-f181.google.com (HELO mail-it1-f181.google.com) (209.85.166.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 12 Jan 2019 13:16:39 +0000 Received: by mail-it1-f181.google.com with SMTP id w18so6972802ite.1 for ; Sat, 12 Jan 2019 05:16:39 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?0J/QsNCy0LXQuyDQmtGA0Y7QutC+0LI=?= Date: Sat, 12 Jan 2019 16:16:29 +0300 Message-ID: Subject: [PATCH] Define 'EXTERN' for simulation internals To: gdb-patches@sourceware.org Define 'EXTERN' for simulation internals If inlining is not supported by compiler, sim-arange.h uses EXTERN keyword which is not defined yet. Therefore, we define it as 'extern' qualifier. sim/common/Changelog: 2019-01-12 Pavel I. Kryukov * sim-inline.h: define EXTERN macro diff --git a/sim/common/sim-inline.h b/sim/common/sim-inline.h index e9fb5c7..b215252 100644 --- a/sim/common/sim-inline.h +++ b/sim/common/sim-inline.h @@ -324,6 +324,9 @@ #define EXTERN_INLINE extern INLINE2 #endif +#ifndef EXTERN +#define EXTERN extern +#endif /* Your compiler's no-return reserved word */