OSDN Git Service

2004-07-20 Bryce McKinlay <mckinlay@redhat.com>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jul 2004 17:57:58 +0000 (17:57 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jul 2004 17:57:58 +0000 (17:57 +0000)
PR libgcj/16591
* prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if
DISABLE_MAIN_ARGS is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84964 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/prims.cc

index 3735f75..7b3a486 100644 (file)
@@ -1,5 +1,11 @@
 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
 
+       PR libgcj/16591
+       * prims.cc (_Jv_RunMain): Don't call _Jv_SetArgs if DISABLE_MAIN_ARGS
+       is defined.
+
+2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
+
        * java/net/Socket.java (getImpl): Now private. Remove comment.
 
 2004-07-20  Bryce McKinlay  <mckinlay@redhat.com>
index ca8265f..a0ad08e 100644 (file)
@@ -1033,7 +1033,9 @@ void
 _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, 
             bool is_jar)
 {
+#ifndef DISABLE_MAIN_ARGS
   _Jv_SetArgs (argc, argv);
+#endif
 
   java::lang::Runtime *runtime = NULL;