This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] [graphite] fix invalid bounds on array refs


On Wed, Dec 2, 2015 at 10:36 PM, Sebastian Paul Pop <s.pop@samsung.com> wrote:
> Do you recommend that we add a gcc_assert that min is always lower than max?

No, min can be one less than max if the array has size zero.

> The change in Graphite code can be reverted then:
>
>>+  /* Fortran has some arrays where high bound is -1 and low is 0.  */
>>+  if (integer_onep (fold_build2 (LT_EXPR, boolean_type_node, high,
>>low)))
>>+    return false;
>
>
> -----Original Message-----
>
> But either that is the case or the frontend has a bug and should be fixed.  So your patch doesn't make any sense.
>
> Richard.
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]