This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/16591] New: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc)
- From: "pblemel at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 16 Jul 2004 15:44:35 -0000
- Subject: [Bug libgcj/16591] New: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC 3.3.1-2 libjava/prims.cc @ line 963 calls _Jv_SetArgs even if DISABLE_MAIN_ARGS has been defined
in the configuration. This is problematic in my case because argv/argc are known to be invalid.
To fix this problem enclose the call to _Jv_SetArgs inside an #ifndef DISABLE_MAIN_ARGS block
#ifndef DISABLE_MAIN_ARGS
_Jv_SetArgs(argc, argv);
#endif
--
Summary: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain
(libjava/prims.cc)
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pblemel at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC host triplet: i686-pc-cygwin
GCC target triplet: powerpc-motorola-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16591