From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7165 invoked by alias); 18 Oct 2002 12:36:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7092 invoked by uid 71); 18 Oct 2002 12:36:01 -0000 Resent-Date: 18 Oct 2002 12:36:01 -0000 Resent-Message-ID: <20021018123601.7091.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, pere@hungry.com Received: (qmail 4497 invoked by uid 61); 18 Oct 2002 12:29:14 -0000 Message-Id: <20021018122914.4496.qmail@sources.redhat.com> Date: Fri, 18 Oct 2002 05:36:00 -0000 From: pere@hungry.com Reply-To: pere@hungry.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: bootstrap/8276: Compile fixes for gcc 3.2 on AIX X-SW-Source: 2002-10/txt/msg00713.txt.bz2 List-Id: >Number: 8276 >Category: bootstrap >Synopsis: Compile fixes for gcc 3.2 on AIX >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Oct 18 05:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: pere@hungry.com >Release: gcc-3.2 >Organization: >Environment: >Description: I had to apply the following patches to get GCC 3.2 compiling on AIX 5. With this patch the source compiled out of the box. Please apply in the next version of GCC. diff -ur src-3.2/gcc/dependence.c src-3.2-local/gcc/dependence.c --- src-3.2/gcc/dependence.c 2002-01-22 22:57:22.000000000 +0100 +++ src-3.2-local/gcc/dependence.c 2002-10-14 19:17:15.000000000 +0200 @@ -1143,7 +1143,9 @@ return 0; } +#ifndef abs /* It is defined in on AIX */ #define abs(N) ((N) < 0 ? -(N) : (N)) +#endif /* not abs */ /* Determine the DIRECTION and DISTANCE dependency for subscript SUB of inputs ICOEFFICIENTS and outputs OCOEFFICIENTS of loop LOOP_PTR using diff -ur src-3.2/gcc/config.in src-3.2-local/gcc/config.in --- src-3.2/gcc/config.in 2002-08-14 11:31:10.000000000 +0200 +++ src-3.2-local/gcc/config.in 2002-10-14 15:35:00.000000000 +0200 @@ -33,7 +33,9 @@ #undef HAVE_VFORK_H /* Define as __inline if that's what the C compiler calls it. */ +#ifndef inline /* avoid conflict with include/ansidecl.h */ #undef inline +#endif /* not inline */ /* Define if your C compiler doesn't accept -c and -o together. */ #undef NO_MINUS_C_MINUS_O diff -ur src-3.2/libiberty/config.in src-3.2-local/libiberty/config.in --- src-3.2/libiberty/config.in 2001-11-28 02:37:24.000000000 +0100 +++ src-3.2-local/libiberty/config.in 2002-10-14 17:46:50.000000000 +0200 @@ -13,7 +13,9 @@ #undef HAVE_VFORK_H /* Define as __inline if that's what the C compiler calls it. */ +#ifndef inline /* avoid conflict with include/ansidecl.h */ #undef inline +#endif /* not inline */ /* Define to `int' if doesn't define. */ #undef pid_t >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: