From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6996 invoked by alias); 24 Feb 2002 13:10:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6802 invoked from network); 24 Feb 2002 13:09:57 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 24 Feb 2002 13:09:57 -0000 Received: from cse.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id FAA10002; Sun, 24 Feb 2002 05:06:27 -0800 (PST) Received: from free.redhat.lsd.ic.unicamp.br (vpnuser.sfbay.redhat.com [10.255.17.130] (may be forged)) by cse.cygnus.com (8.8.8+Sun/8.6.4) with ESMTP id FAA20748; Sun, 24 Feb 2002 05:06:23 -0800 (PST) Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.11.6/8.11.6) id g1OD6Ea20050; Sun, 24 Feb 2002 10:06:14 -0300 To: "Peter.Schauer" Cc: ezannoni@redhat.com, ac131313@cygnus.com, gdb@sources.redhat.com Subject: Re: GDB cvs won't build on AIX 4.1 References: <200202042059.VAA27761@reaktor.regent.e-technik.tu-muenchen.de> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sun, 24 Feb 2002 05:10:00 -0000 In-Reply-To: "Peter.Schauer"'s message of "Mon, 4 Feb 2002 21:59:19 MET" Message-ID: User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.7 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-02/txt/msg00282.txt.bz2 --=-=-= Content-length: 393 On Feb 4, 2002, "Peter.Schauer" wrote: > -mminimal-toc is only available with gcc, so we might loose again, if someone > tries to build GDB with the native compiler. Besides, I'm not convinced the performance loss of -mminimal-toc would be smaller than that of -bbigtoc, so I went with the latter for now. Tested on AIX 4.1. Ok to install? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gdb-aix-bigtoc.patch Content-length: 1117 Index: gdb/ChangeLog from Alexandre Oliva * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX. * configure: Rebuilt. Index: gdb/configure.in =================================================================== RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.82 diff -u -p -r1.82 configure.in --- gdb/configure.in 2002/02/24 04:31:13 1.82 +++ gdb/configure.in 2002/02/24 13:05:16 @@ -511,6 +511,23 @@ AC_MSG_RESULT($gdb_cv_scanf_has_long_dou AC_FUNC_MMAP +case ${host_os} in +aix*) + AC_CACHE_CHECK([for -bbigtoc option], [gdb_cv_bigtoc], [ + SAVE_LDFLAGS=$LDFLAGS + + case $GCC in + yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; + *) gdb_cv_bigtoc=-bbigtoc ;; + esac + + LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc + AC_TRY_LINK([], [int i;], [], [gdb_cv_bigtoc=]) + ]) + CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" + ;; +esac + dnl See if thread_db library is around for Solaris thread debugging. Note that dnl we must explicitly test for version 1 of the library because version 0 dnl (present on Solaris 2.4 or earlier) doesn't have the same API. --=-=-= Content-length: 289 -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer --=-=-=--