This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24374] [4.0/4.1 Regression] Sibcalling optimization is happening in main
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2005 06:25:47 -0000
- Subject: [Bug target/24374] [4.0/4.1 Regression] Sibcalling optimization is happening in main
- References: <bug-24374-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mmitchel at gcc dot gnu dot org 2005-10-31 06:25 -------
Kean, I think you need to check TREE_PUBLIC (decl) as well; a "static" main
function isn't the main you're looking for. Note that a "static" main is
permitted by gcc, with a warning, by default.
(It looks like the same bug appears in cfgexpand.c, by the way. I'll open a
new PR for that.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24374