From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26164 invoked by alias); 4 Aug 2005 17:28:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26120 invoked by uid 22791); 4 Aug 2005 17:28:24 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 04 Aug 2005 17:28:24 +0000 Received: (qmail 31563 invoked by uid 10); 4 Aug 2005 17:28:21 -0000 Received: (qmail 17815 invoked by uid 500); 4 Aug 2005 17:28:14 -0000 Mail-Followup-To: gcc-help@gcc.gnu.org, jling@bioinformatics.ubc.ca To: John Ling Cc: gcc-help@gcc.gnu.org Subject: Re: operator should be followed by a macro argument name References: <1318.24.82.69.188.1123052930.squirrel@24.82.69.188> <42F108E0.60103@bioinformatics.ubc.ca> From: Ian Lance Taylor Date: Thu, 04 Aug 2005 17:28:00 -0000 In-Reply-To: <42F108E0.60103@bioinformatics.ubc.ca> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-08/txt/msg00072.txt.bz2 John Ling writes: > Line 1070 is as follows: > > 1070: #ifndef __cplusplus > 1071: ((_class(__x) == FP_SNAN) || (_class(__x) == FP_QNAN) ? \ > 1072: #endif > > It looks fine to me. But i could try removing these ifndef/endif lines. > > Is gcc-lib a separate package? I notice it refers to aix4.3.2.0 yet > my aix is 5.2.0.0. Perhaps that could be a reason why its not > working. If its a separate package then maybe i should install that > first. gcc-lib is not a separate package. The files in gcc-libl/TARGET/VERSION/include are created by fixing the header files on the system when gcc is installed. This process needs to happen because many systems have header files which do not by themselves work with gcc. It may be a problem that you have a fixed version of the AIX 4.3.2.0 header files when you are using AIX 5.2.0.0. The simplest way to fix that is to reinstall gcc, assuming you still have the source code. Or to find a binary package for AIX 5.2.0.0. Those lines in the header file look fine. Since the error was > >>/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3/include/math.h:1070: > >>`#' operator should be followed by a macro argument name I see now that gcc thinks that line 1070 is in a macro definition. Is there perhaps a backslash at the end of line 1069, where line 1069 is in a #define? Ian