While checking for non-regression in the gdb.threads part of the testsuite, I noticed one test fails with gcc4 since the argument of the main are removed by the compiler so don't appear when printing backtrace: FAIL: gdb.threads/pthreads.exp: check backtrace from main thread Either we can change the .exp file to avoid checking these arguments, or we can ensure compiler keeps them as proposed hereby. -- Denis Pilat STMicroelectronics