Follow up : embedded main args

Anthony Green green@redhat.com
Sat Jul 17 08:47:00 GMT 2004


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.



More information about the Java-patches mailing list