mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
libtool-version: Catch up by incrementing current.
* libtool-version: Catch up by incrementing current.
* configure.host: Disable use of GCJ_PROPERTIES for mips-tx39.
* configure, include/config.h.in: Rebuilt.
* acconfig.h (DISABLE_GETENV_PROPERTIES): Undefine.
* configure.in: Added --disable-getenv-properties and new define
`DISABLE_GETENV_PROPERTIES'.
* prims.cc (PROCESS_GCJ_PROPERTIES): Define.
(next_property_key): New function.
(next_property_value): New function.
(process_gcj_properties): New function.
(JvRunMain): Call process_gcj_properties.
(_JvRunMain): Ditto.
* java/lang/natSystem.cc (init_properties): Set properties defined
in GCJ_PROPERTIES. Also add 1.2 style versioning properties.
* include/java-props.h: New file.
* java/lang/natSystem.cc (init_properties): Add new properties to
conform with Java Product Versioning Specification.
From-SVN: r30007
This commit is contained in:
committed by
Anthony Green
parent
7901f53f77
commit
ffccc6bee2
@@ -40,6 +40,7 @@ details. */
|
||||
|
||||
#include <gcj/cni.h>
|
||||
#include <jvm.h>
|
||||
#include <java-props.h>
|
||||
#include <java/lang/System.h>
|
||||
#include <java/lang/Class.h>
|
||||
#include <java/lang/ArrayStoreException.h>
|
||||
@@ -52,6 +53,7 @@ details. */
|
||||
#define SystemClass _CL_Q34java4lang6System
|
||||
extern java::lang::Class SystemClass;
|
||||
|
||||
extern property_pair *_Jv_Environment_Properties;
|
||||
|
||||
|
||||
#if defined (ECOS)
|
||||
@@ -274,10 +276,23 @@ java::lang::System::init_properties (void)
|
||||
// A convenience define.
|
||||
#define SET(Prop,Val) \
|
||||
properties->put(JvNewStringLatin1 (Prop), JvNewStringLatin1 (Val))
|
||||
|
||||
// A mixture of the Java Product Versioning Specification
|
||||
// (introduced in 1.2), and earlier versioning properties.
|
||||
SET ("java.version", VERSION);
|
||||
SET ("java.vendor", "Cygnus Solutions");
|
||||
SET ("java.vendor.url", "http://sourceware.cygnus.com/java/");
|
||||
SET ("java.class.version", GCJVERSION);
|
||||
SET ("java.vm.specification.version", "1.1");
|
||||
SET ("java.vm.specification.name", "Java(tm) Virtual Machine Specification");
|
||||
SET ("java.vm.specification.vendor", "Sun Microsystems Inc.");
|
||||
SET ("java.vm.version", GCJVERSION);
|
||||
SET ("java.vm.vendor", "Cygnus Solutions");
|
||||
SET ("java.vm.name", "libgcj");
|
||||
SET ("java.specification.version", "1.1");
|
||||
SET ("java.specification.name", "Java(tm) Language Specification");
|
||||
SET ("java.specification.vendor", "Sun Microsystems Inc.");
|
||||
|
||||
// FIXME: how to set these given location-independence?
|
||||
// SET ("java.home", "FIXME");
|
||||
// SET ("java.class.path", "FIXME");
|
||||
@@ -363,4 +378,17 @@ java::lang::System::init_properties (void)
|
||||
if (buffer != NULL)
|
||||
free (buffer);
|
||||
#endif
|
||||
|
||||
// Set the system properties from the user's environment.
|
||||
if (_Jv_Environment_Properties)
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
while (_Jv_Environment_Properties[i].key)
|
||||
{
|
||||
SET (_Jv_Environment_Properties[i].key,
|
||||
_Jv_Environment_Properties[i].value);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user