Commit 9f0fbbab by Anthony Green Committed by Anthony Green

Remove libgcjdata hack. Fix jv-scan usage in dejagnu.

From-SVN: r42812
parent ef88b07d
2001-06-02 Anthony Green <green@redhat.com> 2001-06-02 Anthony Green <green@redhat.com>
* configure: Rebuild. * configure: Rebuild.
* configure.in: Remove data_start hack.
* libgcj.spec.in: Ditto.
* Makefile.in: Rebuild.
* Makefile.am: Ditto.
* libgcjdata.c: Remove.
2001-06-02 Anthony Green <green@redhat.com>
* configure: Rebuild.
* configure.in (LIBFFIINCS, LIBFFI): Introduce. Add * configure.in (LIBFFIINCS, LIBFFI): Introduce. Add
--without-libffi option. Tweak --disable-java-net processing. --without-libffi option. Tweak --disable-java-net processing.
* Makefile.in: Rebuild. * Makefile.in: Rebuild.
......
...@@ -33,11 +33,6 @@ toolexeclib_LTLIBRARIES = libgcj.la $(cond_x_ltlibrary) ...@@ -33,11 +33,6 @@ toolexeclib_LTLIBRARIES = libgcj.la $(cond_x_ltlibrary)
toolexeclib_DATA = libgcj.spec toolexeclib_DATA = libgcj.spec
data_DATA = libgcj.jar data_DATA = libgcj.jar
if NEEDS_DATA_START
toolexeclib_LIBRARIES = libgcjdata.a
libgcjdata_a_SOURCES = libgcjdata.c
endif
## For now, only on native systems. FIXME. ## For now, only on native systems. FIXME.
if NATIVE if NATIVE
bin_PROGRAMS = jv-convert gij bin_PROGRAMS = jv-convert gij
......
...@@ -147,16 +147,6 @@ fi ...@@ -147,16 +147,6 @@ fi
AC_LANG_RESTORE AC_LANG_RESTORE
AC_MSG_RESULT($ac_exception_model_name) AC_MSG_RESULT($ac_exception_model_name)
AC_MSG_CHECKING([for data_start])
LIBDATASTARTSPEC=
NEEDS_DATA_START=
AC_TRY_LINK([extern int data_start;], [return ((int) &data_start);],
[AC_MSG_RESULT(found it)],
[LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
NEEDS_DATA_START=yes
AC_MSG_RESULT(missing)])
AC_SUBST(LIBDATASTARTSPEC)
dnl See if the user wants to disable java.net. This is the mildly dnl See if the user wants to disable java.net. This is the mildly
dnl ugly way that we admit that target-side configuration sucks. dnl ugly way that we admit that target-side configuration sucks.
AC_ARG_ENABLE(java-net, AC_ARG_ENABLE(java-net,
......
...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@ ...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@
HASH_SYNC_SPEC = @HASH_SYNC_SPEC@ HASH_SYNC_SPEC = @HASH_SYNC_SPEC@
INCLTDL = @INCLTDL@ INCLTDL = @INCLTDL@
JC1GCSPEC = @JC1GCSPEC@ JC1GCSPEC = @JC1GCSPEC@
LIBDATASTARTSPEC = @LIBDATASTARTSPEC@
LIBFFI = @LIBFFI@ LIBFFI = @LIBFFI@
LIBFFIINCS = @LIBFFIINCS@ LIBFFIINCS = @LIBFFIINCS@
LIBGCJDEBUG = @LIBGCJDEBUG@ LIBGCJDEBUG = @LIBGCJDEBUG@
......
...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@ ...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@
HASH_SYNC_SPEC = @HASH_SYNC_SPEC@ HASH_SYNC_SPEC = @HASH_SYNC_SPEC@
INCLTDL = @INCLTDL@ INCLTDL = @INCLTDL@
JC1GCSPEC = @JC1GCSPEC@ JC1GCSPEC = @JC1GCSPEC@
LIBDATASTARTSPEC = @LIBDATASTARTSPEC@
LIBFFI = @LIBFFI@ LIBFFI = @LIBFFI@
LIBFFIINCS = @LIBFFIINCS@ LIBFFIINCS = @LIBFFIINCS@
LIBGCJDEBUG = @LIBGCJDEBUG@ LIBGCJDEBUG = @LIBGCJDEBUG@
......
...@@ -7,10 +7,3 @@ ...@@ -7,10 +7,3 @@
*lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(liborig) *lib: -lgcj -lm @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) %(liborig)
*jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ *jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@
#
# On some systems we force in a data_start symbol so that the GC will work
# with shared libraries.
#
%rename startfile startfileorig
*startfile: %(startfileorig) @LIBDATASTARTSPEC@
/* Copyright (C) 1998, 1999 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
details. */
/* Some systems need data_start defined so the GC be built as a shared
library. */
int data_start = 0;
...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@ ...@@ -88,7 +88,6 @@ GCTESTSPEC = @GCTESTSPEC@
HASH_SYNC_SPEC = @HASH_SYNC_SPEC@ HASH_SYNC_SPEC = @HASH_SYNC_SPEC@
INCLTDL = @INCLTDL@ INCLTDL = @INCLTDL@
JC1GCSPEC = @JC1GCSPEC@ JC1GCSPEC = @JC1GCSPEC@
LIBDATASTARTSPEC = @LIBDATASTARTSPEC@
LIBFFI = @LIBFFI@ LIBFFI = @LIBFFI@
LIBFFIINCS = @LIBFFIINCS@ LIBFFIINCS = @LIBFFIINCS@
LIBGCJDEBUG = @LIBGCJDEBUG@ LIBGCJDEBUG = @LIBGCJDEBUG@
......
...@@ -540,18 +540,13 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e ...@@ -540,18 +540,13 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
# Find name to use for --main, and name of all class files. # Find name to use for --main, and name of all class files.
set jvscan [find_jvscan] set jvscan [find_jvscan]
verbose "jvscan is $jvscan" verbose "jvscan is $jvscan"
# We insulate ourselves from the user's locale by forcing the
# encoding on jvscan.
set jvscan "compiler=$jvscan additional_flags=--encoding=UTF-8"
set main_name [string trim \ set main_name [string trim \
[prune_warnings \ [prune_warnings \
[libjava_tcompile $srcfile "" none \ [lindex [local_exec "$jvscan --encoding=UTF-8 $srcfile --print-main" "" "" 300] 1]]]
"$jvscan additional_flags=--print-main"]]]
verbose "main name is $main_name" verbose "main name is $main_name"
set class_out [string trim \ set class_out [string trim \
[prune_warnings \ [prune_warnings \
[libjava_tcompile $srcfile "" none \ [lindex [local_exec "$jvscan --encoding=UTF-8 $srcfile --list-class" "" "" 300] 1]]]
"$jvscan additional_flags=--list-class"]]]
verbose "class list is $class_out" verbose "class list is $class_out"
if {[string match "*parse error*" $main_name] if {[string match "*parse error*" $main_name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment