This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Follow up : embedded main args


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.


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