This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23090] [4.0/4.1 Regression] gcc.c-torture/execute/20050713-1.c -Os fails
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2005 22:37:30 -0000
- Subject: [Bug middle-end/23090] [4.0/4.1 Regression] gcc.c-torture/execute/20050713-1.c -Os fails
- References: <20050727052722.23090.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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