public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16591] New: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc)
@ 2004-07-16 15:44 pblemel at hotmail dot com
  2004-07-16 18:20 ` [Bug libgcj/16591] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pblemel at hotmail dot com @ 2004-07-16 15:44 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-07-20 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-16 15:44 [Bug libgcj/16591] New: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc) pblemel at hotmail dot com
2004-07-16 18:20 ` [Bug libgcj/16591] " pinskia at gcc dot gnu dot org
2004-07-20 17:58 ` cvs-commit at gcc dot gnu dot org
2004-07-20 17:59 ` mckinlay at redhat dot com
2004-07-20 18:01 ` mckinlay at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).