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 <ger...@pfeifer.com> * 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 @@ <p>We've written a front end to the GCC compiler which can natively compile both Java<sup><a href="#javatm">tm</a></sup> source and bytecode files. The compiler can also generate class files. This new -front end is integrated into the <a -href="http://gcc.gnu.org/">GCC</a> project.</p> +front end is integrated into GCC.</p> <h2>What you get</h2> @@ -60,11 +59,7 @@ <p>In order to make full executables, you'll need to link the output of gcj with the appropriate runtime code. See <a - href="libgcj2.html">the libgcj page</a> for details on the runtime. - Note that you'll want to configure GCC to build libjava; see - <a href="build-snapshot.html">configuration and build instructions - for GCJ</a>.</p> - + href="libgcj2.html">the libgcj page</a> for details on the runtime.</p> <p>There are also <a href="compile.html">more detailed instructions</a> on compiling Java programs.</p> 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 @@ <h2>How to build it</h2> - <p>Just follow the directions for - <a href="build-snapshot.html">building</a> GCJ.</p> - - <p>There are a few options you might consider passing to - ``configure'':</p> - - <dl> - <dt>--enable-java-gc=TYPE</dt> - <dd>Enables the garbage collector. The default type is - ``boehm'', for the Boehm conservative GC.</dd> - - <dt>--enable-fast-character</dt> - <dd>libgcj includes two implementations of java.lang.Character. - The default implementation is small, but slow. This option will - enable the faster, larger code.</dd> - - <dt>--enable-threads=TYPE</dt> - <dd>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).</dd> - - </dl> + <p>Just follow our <a href="https://gcc.gnu.org/install/">installation + instructions</a>.</p> </body> </html> 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 @@ -<html> - -<head> -<title>How to build GCJ/LIBGCJ from snapshots or checkouts</title> -</head> - -<body> - -<h1>How to build and run libgcj/gcj snapshots or checkouts</h1> - -<table border="0" cellpadding="4" width="95%"> -<tr bgcolor="#cccccc"> -<td> -<pre> -1. <a href="../snapshots.html">Get a GCC snapshot</a> or <a href="../svn.html">check out the sources</a>. -</pre> -</td> -</tr> - -<tr bgcolor="#dddddd"> -<td> -<pre> -2. Make a compile directory - - $ mkdir compile -</pre> -</td> -</tr> - -<tr bgcolor="#cccccc"> -<td> -<pre> -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 -</pre> -</td> -</tr> - -<tr bgcolor="#dddddd"> -<td> -<pre> -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}.) -<br /> - Also, check for platform-specific assignments of `noconfigdirs' with - ${libgcj}; if ${libgcj} is listed for your platform, remove it before - configuring. -</pre></td></tr> - -<tr bgcolor="#cccccc"> -<td> -<pre> -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: - - <a href="https://gcc.gnu.org/install/">https://gcc.gnu.org/install/</a> - -</pre> -</td> -</tr> - -<tr bgcolor="#dddddd"> -<td> -<pre> -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 -</pre> -</td> -</tr> - -<tr bgcolor="#cccccc"> -<td> -<pre> -7. Edit a file HelloWorld.java - - public class HelloWorld { - public static void main(String [] args) { - System.out.println("Hello"); - } - } -</pre> -</td> -</tr> - -<tr bgcolor="#dddddd"> -<td> -<pre> -8. Compile and run HelloWorld - - $ gcj --main=HelloWorld -o HelloWorld HelloWorld.java - $ ./HelloWorld -</pre> -</td> -</tr> - -</table> - - -</body> -</html>