From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23204 invoked by alias); 18 Jul 2002 11:44:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23197 invoked from network); 18 Jul 2002 11:44:29 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 18 Jul 2002 11:44:29 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id A63AE59D355 for ; Thu, 18 Jul 2002 13:44:28 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g6IBiSg21840 for ; Thu, 18 Jul 2002 13:44:28 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3D36AA1B.1000103@suse.cz> Date: Thu, 18 Jul 2002 05:11:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: GDB Patches Subject: [RFA] __restrict_arr Content-Type: multipart/mixed; boundary="------------020500040807020608020106" X-SW-Source: 2002-07/txt/msg00383.txt.bz2 This is a multi-part message in MIME format. --------------020500040807020608020106 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 329 Hi all, in GCC 3.1 the symbol __restrict_arr is already defined and doesn't need to be redegined in include/xregex2.h. So I wrapped it into a condition. It prevents compiler from complaining. Any objections or can I commit it? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------020500040807020608020106 Content-Type: text/plain; name="rarr-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rarr-1.diff" Content-length: 777 2002-07-17 Michal Ludvig * include/xregex2.h: Wrap __restrict_arr between #ifndef/#endif. Index: include/xregex2.h =================================================================== RCS file: /cvs/src/src/include/xregex2.h,v retrieving revision 1.2 diff -u -p -r1.2 xregex2.h --- include/xregex2.h 19 Jul 2001 00:04:11 -0000 1.2 +++ include/xregex2.h 18 Jul 2002 11:31:36 -0000 @@ -532,7 +532,9 @@ extern int re_exec _RE_ARGS ((const char /* For now unconditionally define __restrict_arr to expand to nothing. Ideally we would have a test for the compiler which allows defining it to restrict. */ +#ifndef __restrict_arr #define __restrict_arr +#endif /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *__restrict __preg, --------------020500040807020608020106--