I found what I believe to be a bug in the 4.6.2 compiler. If I compile with the flag -Werror=frame-larger-than=1024 flag, it generates error:
arch/mips/bcm963xx/irq.c:553:1: error: the frame size of 16 bytes is larger than 1 bytes [-Werror=frame-larger-than=]
If I remove this flag it compiles properly (I should also note that the -Wframe-larger-than=1024 flag is set on the command line before the -Werror=frame-larger-than=1024 flag, but the second flag seems to override the first).
Could someone confirm if this is indeed a bug, or whether I'm missing something?
My compiler version is: mips-unknown-linux-uclibc-gcc (Buildroot 2011.11) 4.6.2
Thanks John