From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 2F47B384B077; Thu, 5 May 2022 12:17:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F47B384B077 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/fold-GCC_VERSION-for-old)] Remove non-ANSI C path in ansidecl.h. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/fold-GCC_VERSION-for-old X-Git-Oldrev: 2d70db3c2ae18943bc3a77a8bc6059fbeaf3b266 X-Git-Newrev: 79b7dd219b6b0e2b8c9890ae03aab2d299ab9829 Message-Id: <20220505121754.2F47B384B077@sourceware.org> Date: Thu, 5 May 2022 12:17:54 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 12:17:54 -0000 https://gcc.gnu.org/g:79b7dd219b6b0e2b8c9890ae03aab2d299ab9829 commit 79b7dd219b6b0e2b8c9890ae03aab2d299ab9829 Author: Martin Liska Date: Tue Feb 1 13:10:19 2022 +0100 Remove non-ANSI C path in ansidecl.h. include/ChangeLog: * ansidecl.h (PTR): Remove Not ANCI C part. Diff: --- include/ansidecl.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/include/ansidecl.h b/include/ansidecl.h index 4275c9b9cbd..f42c6afc7e9 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -89,21 +89,7 @@ So instead we use the macro below and test it against specific values. */ # endif #endif -#else /* Not ANSI C. */ - -#define PTR char * - -/* some systems define these in header files for non-ansi mode */ -#undef const -#undef volatile -#undef signed -#undef inline -#define const -#define volatile -#define signed -#define inline - -#endif /* ANSI C. */ +#endif /* Define macros for some gcc attributes. This permits us to use the macros freely, and know that they will come into play for the