This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/24374] [4.0/4.1 Regression] Sibcalling optimization is happening in main



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]