This is the mail archive of the gcc-patches@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]

Re: FATAL_EXIT_CODE - why 33?


On Fri, Mar 02, 2001 at 08:36:03AM -0800, Mark Mitchell wrote:
>     That would argue for putting in a `lang_main' hook which is
>     called from `main'.
[...]
>     This approach would argument for renaming main to `gcc_main',
>     and making it callable.

It's more complicated than that -- "main" is special.  If you want
to write your front end in a language other than C, the language
runtime might require that it get control at main, do some setup,
and invoke a language start routine of a different name.

I see that we actually got rid of "lang_init", which was the hook
I'd been thinking of replacing.  So I guess Fergus' patch is fine.


r~


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