This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Follow up : embedded main args
- From: Anthony Green <green at redhat dot com>
- To: Peter Blemel <pblemel at hotmail dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Fri, 16 Jul 2004 07:13:01 -0700
- Subject: Re: Follow up : embedded main args
- Organization: Red Hat, Inc.
- References: <BAY2-F425WIW7XACwgV000e9457@hotmail.com>
On Thu, 2004-07-15 at 23:41, Peter Blemel wrote:
> I think I see what the problem is. _Jv_RunMain is missing an ifdef
> DISABLE_MAIN_ARGS to prevent the garbage args from being used. The
> 'garbage' args are blithely are passed to _Jv_SetArgs, while code a few
> lines down is conditionally compiled using DISABLE_MAIN_ARGS ... The
> problem is that _Jv_GarNbArgs assumes that _Jv_argc was initialized to 0 by
> the compiler, when in fact _Jv_SetArgs has scribbled over it.
>
> How do I submit this as a bug?
Good catch. Use http://gcc.gnu.org/bugzilla. A little patch would also
be great.
By the way, if you are able to talk about it, I think many people on
list would be interested in hearing more about what you're doing (target
processor, RTOS, application). I certainly am.
Thanks,
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.