I am trying to migrate gcc toolchain from c3.4.5-p4 to c3.4.5-p5. CPU used is 8540 and OS is VxWorks.
On migration and running the image, I found that the stack for one of the task is overflowing in a particular function.
The Stack size allocated for this task is 30k bytes. With c.3.4.5-p4, max stack usage is less than 20k bytes but with the changed toolchain, it surges to around 58k bytes. The Stack pointer at the beginning of that function is well within limit.
I compared the dis-assembly of that function generated with the two toolchains and it is different.
Has anyone faced any such issue of stack overflow on migrating the toolchain?