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

Ulrich Weigand
2023-11-06T13:08:29Z

>> 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?
>
>Yes Ulrich. It works if we make variables non-const. Kindly see the output below.

OK, good.

>So shall we remove this const and create the git patch?

Yes, I think this would be the better solution.

Bye,
Ulrich