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
> 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][
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