> Why should GCC unnecessarily create stack frames to avoid > compare-debug testcase failures?
I'm not sure I understand the question... compare-debug failures are failures (-g is not supposed to change the generated code and this XCOFF-specific bug was reported to us) so they need to be fixed. >From there on, as Alan said, there are 2 cases: either AIX needs a frame for debugging or it doesn't. If the latter, then the lines can simply be deleted. If the former, we have to draw a line somewhere; Alan suggests always creating a frame while I suggest creating it only at -O0 and -Og. -- Eric Botcazou