Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: "Peter.Schauer" <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
Cc: ezannoni@redhat.com, ac131313@cygnus.com, gdb@sources.redhat.com
Subject: Re: GDB cvs won't build on AIX 4.1
Date: Sun, 24 Feb 2002 05:10:00 -0000	[thread overview]
Message-ID: <orsn7rc9mh.fsf@free.redhat.lsd.ic.unicamp.br> (raw)
In-Reply-To: "Peter.Schauer"'s message of "Mon, 4 Feb 2002 21:59:19 MET"

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

On Feb  4, 2002, "Peter.Schauer" <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE> 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?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gdb-aix-bigtoc.patch --]
[-- Type: text/x-patch, Size: 1117 bytes --]

Index: gdb/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* 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.

[-- Attachment #3: Type: text/plain, Size: 289 bytes --]


-- 
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

  reply	other threads:[~2002-02-24 13:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-02 18:45 Alexandre Oliva
2002-02-03 18:40 ` Andrew Cagney
2002-02-04  4:15   ` Alexandre Oliva
2002-02-04  8:06     ` Andrew Cagney
2002-02-04  9:47       ` Elena Zannoni
2002-02-04 12:59         ` Peter.Schauer
2002-02-24  5:10           ` Alexandre Oliva [this message]
2002-03-01 15:51             ` Peter.Schauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=orsn7rc9mh.fsf@free.redhat.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE \
    --cc=ac131313@cygnus.com \
    --cc=ezannoni@redhat.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox