This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Better MAIN_NAME_P for all C-ish front-ends
- To: greg at mcgary dot org
- Subject: Re: PATCH: Better MAIN_NAME_P for all C-ish front-ends
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 23 Aug 2000 23:32:15 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200008240611.XAA06218@kayak.mcgary.org>
Cool. This patch is OK.
And note that all the back-ends that use your new macro look broken --
they are not going to handle
class C {
int main ();
};
correctly in C++, if a cursory examination is correct. Not your
problem -- but suggests that a bit on declarations to say whether or
not they are the magic global `main' function is probably in order...
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com