Re: [PATCH]-Change gdb.base/examine-backwards.exp testcase for AIX

Ulrich Weigand
2023-11-06T11:56:25Z

>Kindly let me know what you think. I know that we have some dummy variables
>that is used to negate a similar problem using clang with lto. But if we
>can produce something that works for both AIX GCC and other targets Clang
>with LTO it will be great, and we can create a patch.

I assume the existing dummy assignment
int dummy = Barrier[0] + TestStrings[0] + TestStringsH[0] + TestStringsW[0];
is optimized out on AIX for some reason?

Does it work if you move "dummy" to be global variable,
and/or make the Barrier and TestStrings* variable non-const?

Bye,
Ulrich