http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57692

--- Comment #3 from Balaji V. Iyer <bviyer at gmail dot com> ---
[sorry, I accidentally hit the send...let's try this again...]

Hello Dominique & Steve,
    From what I can tell, this looks like a stack overflow issue. When I
try this change below, it seem to work fine. This testcase works as-is in
my SUSE x86_64 machine.

Alternatively, if I change the #define NUMBER to like 10 or 20 from 100, it
seem to work fine without the change below.

Please let me know if either of the two changes is OK and I will submit a
patch and check the change in.

Thanks,

Balaji V. Iyer.


diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
b/gcc/test
index 9cb16e1..ad05030 100644
--- a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
+++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
@@ -6,11 +6,11 @@
 #include <stdio.h>
 #endif

+float array4[NUMBER][NUMBER][NUMBER][NUMBER];
 int main(void)
 {
   int array[NUMBER][NUMBER], array2[NUMBER], array3[NUMBER], x = 0, y;
-  int x_correct, y_correct, ii, jj = 0;
-  float array4[NUMBER][NUMBER][NUMBER][NUMBER];
+  int x_correct, y_correct, ii, jj = 0, kk = 0, ll = 0;
   for (ii = 0; ii < NUMBER; ii++)
     {
       for (jj = 0; jj < NUMBER; jj++)
@@ -20,7 +20,10 @@ int main(void)
          array3[ii]= 3;
        }
     }





On Mon, Jun 24, 2013 at 11:07 PM, Balaji V. Iyer <bvi...@gmail.com> wrote:

> Hello Dominique and Steve,
>
>
>
> On Mon, Jun 24, 2013 at 7:24 PM, dominiq at lps dot ens.fr <
> gcc-bugzi...@gcc.gnu.org> wrote:
>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57692
>>
>> Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
>>
>>            What    |Removed                     |Added
>>
>> ----------------------------------------------------------------------------
>>              Status|UNCONFIRMED                 |NEW
>>    Last reconfirmed|                            |2013-06-24
>>      Ever confirmed|0                           |1
>>
>> --- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>> > I see this on my MIPS targets as well, I think it is on all platforms.
>>
>> I think so, or at least most of them. This is why I did not fill the
>> Target
>> field.
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>>
>
>

Reply via email to