This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran] Different FUNC_DECLS with the same DECL_NAME - MAIN__ and named PROGRAM main functions [was Re: gcc-4.5-20090528 is now available]
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Dave Korn <dave dot korn dot cygwin at googlemail dot com>, Angelo Graziosi <angelo dot graziosi at alice dot it>, Fortran <fortran at gcc dot gnu dot org>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Sat, 30 May 2009 22:23:03 +0100
- Subject: Re: [fortran] Different FUNC_DECLS with the same DECL_NAME - MAIN__ and named PROGRAM main functions [was Re: gcc-4.5-20090528 is now available]
- References: <4A20F778.9010705@alice.it> <4A214191.1050206@gmail.com> <4A2143EA.2050904@gmail.com> <4A214B46.7040405@gmail.com> <4A216AA3.1070000@gmail.com> <4A2173B7.6040206@net-b.de> <4A217895.9060708@gmail.com> <4A217D12.9000801@gmail.com> <4A2180C2.2010500@gmail.com> <4A2183EF.20004@net-b.de>
Tobias Burnus wrote:
> I have another idea: Just handle "PROGRAM main" specially by using the
> name "MAIN__". It should be still quite readable in the middle-end
> diagnostics. Furthermore, it matches the assembler name and using "b
> main" one still get something useful - and it is less confusing for
> everyone (middle end, users of -fdump-tree-original etc.) if there is
> only a single "main".
Okeydokey. I'm running this through the fortran+gomp testsuite. No
problems so far.
cheers,
DaveK