From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24915 invoked by alias); 30 Jun 2014 09:33:45 -0000 Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org Received: (qmail 24720 invoked by uid 89); 30 Jun 2014 09:33:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 30 Jun 2014 09:33:36 +0000 Received: from [192.168.0.131] (vie-188-118-252-235.dsl.sil.at [188.118.252.235]) by ainaz.pair.com (Postfix) with ESMTPSA id 872093F41A; Mon, 30 Jun 2014 05:33:33 -0400 (EDT) Date: Mon, 30 Jun 2014 09:33:00 -0000 From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org Subject: [wwwdocs,Java] Remove separate java/build-snapshot.html Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2014-q2/txt/msg00021.txt.bz2 When we integrated GCJ/libgcj, it looks like we did not proceed doing that fully as it came to the web pages, and sadly nobody else has been looking after them for a while. 2014-06-30 Gerald Pfeifer * build-snapshot.html: Remove. * gcj2.html: Remove link to build-snapshot.html and GCC homepage. * libgcj2.html: Replace link to build-snapshot.html by our main installation instructions. Omit redundant instructions. Applied. Gerald Index: gcj2.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/java/gcj2.html,v retrieving revision 1.10 diff -u -r1.10 gcj2.html --- gcj2.html 29 Dec 2012 17:29:24 -0000 1.10 +++ gcj2.html 30 Jun 2014 09:18:02 -0000 @@ -13,8 +13,7 @@

We've written a front end to the GCC compiler which can natively compile both Javatm source and bytecode files. The compiler can also generate class files. This new -front end is integrated into the GCC project.

+front end is integrated into GCC.

What you get

@@ -60,11 +59,7 @@

In order to make full executables, you'll need to link the output of gcj with the appropriate runtime code. See the libgcj page for details on the runtime. - Note that you'll want to configure GCC to build libjava; see - configuration and build instructions - for GCJ.

- + href="libgcj2.html">the libgcj page for details on the runtime.

There are also more detailed instructions on compiling Java programs.

Index: libgcj2.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/java/libgcj2.html,v retrieving revision 1.10 diff -u -r1.10 libgcj2.html --- libgcj2.html 17 Apr 2003 13:05:51 -0000 1.10 +++ libgcj2.html 30 Jun 2014 09:18:02 -0000 @@ -31,32 +31,8 @@

How to build it

-

Just follow the directions for - building GCJ.

- -

There are a few options you might consider passing to - ``configure'':

- -
-
--enable-java-gc=TYPE
-
Enables the garbage collector. The default type is - ``boehm'', for the Boehm conservative GC.
- -
--enable-fast-character
-
libgcj includes two implementations of java.lang.Character. - The default implementation is small, but slow. This option will - enable the faster, larger code.
- -
--enable-threads=TYPE
-
libgcj includes a retargetable thread layer. The value of - this option must be the same as the value used when building - gcj itself. - By default, no threads will be used (this is a crummy default, - but we just follow GCC here). - The only supported values are ``none'' (for no threads) and - ``posix'' (for POSIX threads).
- -
+

Just follow our installation + instructions.

Index: build-snapshot.html =================================================================== RCS file: build-snapshot.html diff -N build-snapshot.html --- build-snapshot.html 28 Jun 2014 11:59:44 -0000 1.19 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,129 +0,0 @@ - - - -How to build GCJ/LIBGCJ from snapshots or checkouts - - - - -

How to build and run libgcj/gcj snapshots or checkouts

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-1. Get a GCC snapshot or check out the sources.
-
-
-
-2. Make a compile directory
-
-  $ mkdir compile
-
-
-
-3. Move the snapshot into the compile dir, e.g.
-
-  $ cd compile
-  $ mv ../gcc-20001211.tar.gz .
-  $ gunzip *.gz
-  $ tar xfv *.tar
-  $ ln -s gcc-20001211 gcc
-
-
-
-4. Tell the build system you want to build libgcj
-
-  Have a look at the toplevel configure.in (gcc/configure.in) and
-  make sure that the variable `noconfigdirs' isn't assigned to
-  something (like target-libjava or ${libgcj}.)
-
- Also, check for platform-specific assignments of `noconfigdirs' with - ${libgcj}; if ${libgcj} is listed for your platform, remove it before - configuring. -
-
-5. Compile and install gcc/gcj/libgcj
-
-  $ cd compile
-  $ mkdir objdir
-  $ cd objdir
-  $ ../gcc/configure --enable-threads=posix --prefix=/home/joerg/gcc \
-    --enable-shared --enable-languages=c++,java \
-    --with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld
-  $ make bootstrap
-  $ make
-  $ make install
-
-The Boehm GC is the collector picked up by default.
-
-If you compile under GNU/Linux you could omit the last two options. Under
-Solaris you'll need them. If you omit '--prefix' the compiled source
-will be installed under /usr/local. For more information about
-installing gcc and/or configuration options see:
-
-  https://gcc.gnu.org/install/
-
-
-
-
-6. Adjust your environment
-
-Reflect your choice of --prefix value to your environment. For csh
-compatible shells, this would be something like the following:
-
-setenv PATH /home/joerg/gcc/bin:$PATH
-setenv LD_LIBRARY_PATH /home/joerg/gcc/lib
-
-
-
-7. Edit a file HelloWorld.java
-
-  public class HelloWorld {
-    public static void main(String [] args) {
-      System.out.println("Hello");
-    }
-  }
-
-
-
-8. Compile and run HelloWorld
-
- $ gcj --main=HelloWorld -o HelloWorld HelloWorld.java
- $ ./HelloWorld
-
-
- - - -