------- Additional Comments From dje at gcc dot gnu dot org 2005-07-27 22:37 ------- Optimizing with -O2 does not create a sibcall, but optimizing with -Os (enabling string instructions) does. The patch to detect overlap with the argument area is not recognizing the insn stream with the string instruction as similarly dangerous. One can perform tailcall optimization on this type of function, but one needs to insert a barrier that the argument area is clobbered.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23090