Re: build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread Andreas Schwab
Ian Campbell writes: > I noticed this with a defconfig build: > CC arch/powerpc/kernel/ptrace.o > arch/powerpc/kernel/ptrace.c: In function 'arch_ptrace': > arch/powerpc/kernel/ptrace.c:1502:5: error: array subscript is above > array bounds [-Werror=array-bounds] > arch/po

RE: build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread David Laight
> Subject: build failure with gcc 4.6.0 "array subscript is > above array bounds" ... > That corresponds to: > tmp = ((unsigned long *)child->thread.fpr) > [TS_FPRWIDTH * (index - PT_FPR0)]; > > child->thread.fpr is "double fpr[32][

build failure with gcc 4.6.0 "array subscript is above array bounds"

2011-08-18 Thread Ian Campbell
I noticed this with a defconfig build: CC arch/powerpc/kernel/ptrace.o arch/powerpc/kernel/ptrace.c: In function 'arch_ptrace': arch/powerpc/kernel/ptrace.c:1502:5: error: array subscript is above array bounds [-Werror=array-bounds] arch/powerpc/kernel/ptrace.c:1530:5: error