From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19364 invoked by alias); 28 Apr 2009 08:52:56 -0000 Received: (qmail 19352 invoked by uid 22791); 28 Apr 2009 08:52:55 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Apr 2009 08:52:48 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n3S8qlMa019123 for ; Tue, 28 Apr 2009 04:52:47 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n3S8qkqk010694; Tue, 28 Apr 2009 04:52:46 -0400 Received: from zebedee.pink (vpn-12-99.rdu.redhat.com [10.11.12.99]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n3S8qiQY028297; Tue, 28 Apr 2009 04:52:45 -0400 Message-ID: <49F6C3DC.9090402@redhat.com> Date: Tue, 28 Apr 2009 08:52:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Java Patch List Subject: PR 39899: gjdoc in 4.4.0 fails to build the libgcj documentation Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2009-q2/txt/msg00057.txt.bz2 gjdoc is built wrongly, with -fbootstrap-classes. This is invalid because bootstrap classes cannot depend on any external (i.e. not part of the core library) classes. Fixed thusly, on trunk and branch. Andrew. 2009-04-28 Andrew Haley * Makefile.am (libgcj_tools_la_LDFLAGS): Add -fno-bootstrap-classes to libgcj_tools_la_GCJFLAGS. Index: Makefile.am =================================================================== --- Makefile.am (revision 145086) +++ Makefile.am (working copy) @@ -305,8 +305,15 @@ ## compiled. EXTRA_libgcj_la_SOURCES = java/lang/Object.java +# We compile libgcj_tools with -findirect-dispatch so that they can +# depend on external classes. -fno-bootstrap-classes ensures that the +# tools are loaded by the system class loader rather than the +# bootstrap class loader: only core library classes should be loaded +# by the bootstrap loader. libgcj_tools_la_SOURCES = classpath/tools/tools.zip -libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes -fsource-filename=$(here)/classpath/tools/all-classes.lst +libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch \ + -fno-bootstrap-classes -fno-indirect-classes \ + -fsource-filename=$(here)/classpath/tools/all-classes.lst libgcj_tools_la_LDFLAGS = -rpath $(toolexeclibdir) \ -version-info `grep -v '^\#' $(srcdir)/libtool-version` \ $(LIBGCJ_LD_SYMBOLIC_FUNCTIONS)