------- Comment #11 from law at redhat dot com  2006-02-17 00:19 -------
Subject: Re:  [4.2 Regression]
        25_algorithms/prev_permutation/1.cc on powerpc{64,}-linux and
powerpc-darwin

On Wed, 2006-02-15 at 15:37 +0000, pinskia at gcc dot gnu dot org wrote:
> 
> ------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-15 15:37 
> -------
> Here is a self contained program without using libstdc++:
> int array[10] = {5, 4, 3, 2, 1, 0};
> int array1[10] = {5, 4, 3, 2, 1, 0};
> int array2[10] = {5, 4, 3, 2, 1, 0};
> #include <cassert>
> 
> void g(int *a)
> {
>   *a = 0;
> }
> 
> void
> test4()
> {
>   g(array+6);
>   for(int i = 0; i < 6; ++i)
>     assert(array[i] == 5 - i);
>   for(int i = 0; i < 6; ++i)
>     {
>     assert(array[i] == 5 - i);
>     assert(array1[i] == 5 - i);
>     assert(array2[i] == 5 - i);
>     }
> }
> 
> int main()
> {
>   test4();
I've just checked in a patch which may (or may not) fix this problem;
can you update your stor-layout.c and see if that change happens to
fix this problem.

Thanks,
jeff


-- 


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

Reply via email to