This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Issue with main function expansion and Ada
- From: Mike Stump <mrs at apple dot com>
- To: Nicolas Roche <roche at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 25 Mar 2006 00:42:56 -0800
- Subject: Re: Issue with main function expansion and Ada
- References: <4423DAB1.2080303@adacore.com>
On Mar 24, 2006, at 3:40 AM, Nicolas Roche wrote:
Using DECL_ASSEMBLER_NAME instead of DECL_NAME solves the issue as
the exported name of that function will be "main".
Careful; on some systems name it _main. But on others, you don't
want _main.