This is the mail archive of the java-prs@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]

[Bug libgcj/16591] New: Missing '#ifndef DISABLE_MAIN_ARGS' in _Jv_RunMain (libjava/prims.cc)


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


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