This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Graphite header order
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Sebastian Pop <sebpop at gmail dot com>, sven dot verdoolaege at gmail dot com
- Cc: Sebastian Pop <s dot pop at samsung dot com>, GCC Development <gcc at gcc dot gnu dot org>, "isl-development at googlegroups dot com" <isl-development at googlegroups dot com>
- Date: Fri, 20 Nov 2015 11:37:42 -0500
- Subject: Re: Graphite header order
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvny=BkUVoJkv8hzkCpQfUeuuOxjBCHLVBuHkgAfYS3FNwwQ at mail dot gmail dot com> <CAFk3UF_BW1i+oJm_f561+XfVPNKZYebk7fDeMdhN8TkbDm7c2Q at mail dot gmail dot com> <20151120162353 dot GY26264MdfPADPa at purples dot kotnet dot org> <CAFk3UF_CeYB-308+62LWJwdXnkPnBGNoa5_b58n47FW4CUU8ag at mail dot gmail dot com>
On Fri, Nov 20, 2015 at 11:31 AM, Sebastian Pop <sebpop@gmail.com> wrote:
> On Fri, Nov 20, 2015 at 10:23 AM, Sven Verdoolaege <skimo-isl@kotnet.org> wrote:
>> On Fri, Nov 20, 2015 at 10:14:47AM -0600, Sebastian Pop wrote:
>>> On Fri, Nov 20, 2015 at 9:31 AM, David Edelsohn <dje.gcc@gmail.com> wrote:
>>> > Sebastian,
>>> >
>>> > I have tried to build GCC with Graphite and ISL on AIX and encountered
>>> > two problems:
>>> >
>>> > (1) isl/ctx.h
>>> >
>>> > typedef enum {
>>> > isl_stat_error = -1,
>>> > isl_stat_ok = 0,
>>> > } isl_stat;
>>> >
>>> > GCC complains about the comma in "isl_stat_ok = 0,". This seems like
>>> > a general bug that should appear on all targets.
>>>
>>> Sven, is there a way to fix this problem in ISL 0.15?
>>
>> Which version of gcc complains about the comma and why does it complain?
>> AFAIU, the final comma is perfectly valid in C99.
>
> On my system, gcc is compiled by g++ -std=gnu++98, then bootstrap uses
> -std=gnu++11.
Sven,
It's a C++ warning that is treated as an error during the GCC build.
This presumably is a problem on all configurations of GCC.
In file included from
/gsa/yktgsa/home/e/d/edelsohn/install/include/isl/list.h:13:0,
from
/gsa/yktgsa/home/e/d/edelsohn/install/include/isl/aff_type.h:4,
from
/gsa/yktgsa/home/e/d/edelsohn/install/include/isl/local_space.h:4,
from
/gsa/yktgsa/home/e/d/edelsohn/install/include/isl/constraint.h:13,
from /nasfarm/edelsohn/src/src/gcc/graphite.c:36:
/gsa/yktgsa/home/e/d/edelsohn/install/include/isl/ctx.h:83:17:
warning: comma at end of enumerator list [-Wpedantic]
isl_stat_ok = 0,
^
Thanks, David