From: Jeffrey A Law <law@upchuck.cygnus.com>
To: Marc Girod <girod@stybba.ntc.nokia.com>
Cc: egcs@egcs.cygnus.com
Subject: Re: egcs 1.1.2 vs. HP/UX 10.20
Date: Tue, 04 May 1999 12:37:00 -0000 [thread overview]
Message-ID: <2756.925846479@upchuck.cygnus.com> (raw)
In-Reply-To: <1yaevlotru.fsf@anvil.ntc.nokia.com>
In message < 1yaevlotru.fsf@anvil.ntc.nokia.com >you write:
> The dce symbols come (at least) from the object file _eh.o, archived
> into libgcc2.a (and from there to libgcc.a).
Yes. This is what I would expect.
> It is compiled from gcc/libgcc2.c with the command:
>
> ./xgcc -B./ -B/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/hppa2.0-hp
> -hpux10.20/bin/ -O2 -DIN_GCC -DHAIFA -g -W -Wall -I./include -fPIC -g
> 1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions
> -I. -I. -I./config -I./../include -c \
> -DL${name} ./libgcc2.c -o _eh.o
>
> In file included from gthr-default.h:1,
> from gthr.h:98,
> from ./libgcc2.c:3025:
> gthr-dce.h: In function `__gthread_key_dtor':
> gthr-dce.h:95: warning: unused parameter `key'
> gthr-dce.h:95: warning: unused parameter `ptr'
> gthr-dce.h: In function `__gthread_key_delete':
> gthr-dce.h:104: warning: implicit declaration of function `pthread_key_dele
> te'
>
> Indeed, gthr-default.h includes gthr-dce.h, which #defines __GTHREADS
> and includes pthread.h...
>
> Isn't it so that one would want to define -DHAVE_GTHR_DEFAULT _only_
> when building gcc/threads/libgcc.a (_not_ when building gcc/libgcc.a)?
Unsure. The C++ people would have to chime in. I don't do C++, threads or
exceptions :-)
> Also, when debugging a file compiled with egcs on HP-UX 10.20, gdb
> complains of the following:
>
> warning: Unable to find __d_pid symbol in object file.
> warning: Suggest linking with /opt/langtools/lib/end.o.
> warning: GDB will be unable to track shl_load/shl_unload calls
What version of gdb? Whatever it is it pre-dates support for debugging
dynamic objects on hpux10 and is very old (since I fixed this problem at
least 2 years ago).
Linking in end.o on hpux10 is highly undesirable. If you attempt to do
so you'll find that your program will not link.
jeff
WARNING: multiple messages have this Message-ID
From: Jeffrey A Law <law@upchuck.cygnus.com>
To: Marc Girod <girod@stybba.ntc.nokia.com>
Cc: egcs@egcs.cygnus.com
Subject: Re: egcs 1.1.2 vs. HP/UX 10.20
Date: Mon, 31 May 1999 21:36:00 -0000 [thread overview]
Message-ID: <2756.925846479@upchuck.cygnus.com> (raw)
Message-ID: <19990531213600.WQaQplhxy5qiu1hvcJQTQhYhdtv9clQSIOtu0rC9lKA@z> (raw)
In-Reply-To: <1yaevlotru.fsf@anvil.ntc.nokia.com>
In message < 1yaevlotru.fsf@anvil.ntc.nokia.com >you write:
> The dce symbols come (at least) from the object file _eh.o, archived
> into libgcc2.a (and from there to libgcc.a).
Yes. This is what I would expect.
> It is compiled from gcc/libgcc2.c with the command:
>
> ./xgcc -B./ -B/tools/contrib/HP-UX/B.10.20/hppa2.0/packages/egcs/hppa2.0-hp
> -hpux10.20/bin/ -O2 -DIN_GCC -DHAIFA -g -W -Wall -I./include -fPIC -g
> 1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions
> -I. -I. -I./config -I./../include -c \
> -DL${name} ./libgcc2.c -o _eh.o
>
> In file included from gthr-default.h:1,
> from gthr.h:98,
> from ./libgcc2.c:3025:
> gthr-dce.h: In function `__gthread_key_dtor':
> gthr-dce.h:95: warning: unused parameter `key'
> gthr-dce.h:95: warning: unused parameter `ptr'
> gthr-dce.h: In function `__gthread_key_delete':
> gthr-dce.h:104: warning: implicit declaration of function `pthread_key_dele
> te'
>
> Indeed, gthr-default.h includes gthr-dce.h, which #defines __GTHREADS
> and includes pthread.h...
>
> Isn't it so that one would want to define -DHAVE_GTHR_DEFAULT _only_
> when building gcc/threads/libgcc.a (_not_ when building gcc/libgcc.a)?
Unsure. The C++ people would have to chime in. I don't do C++, threads or
exceptions :-)
> Also, when debugging a file compiled with egcs on HP-UX 10.20, gdb
> complains of the following:
>
> warning: Unable to find __d_pid symbol in object file.
> warning: Suggest linking with /opt/langtools/lib/end.o.
> warning: GDB will be unable to track shl_load/shl_unload calls
What version of gdb? Whatever it is it pre-dates support for debugging
dynamic objects on hpux10 and is very old (since I fixed this problem at
least 2 years ago).
Linking in end.o on hpux10 is highly undesirable. If you attempt to do
so you'll find that your program will not link.
jeff
next prev parent reply other threads:[~1999-05-04 12:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <nms.mail.egcs/1yemlunyiq.fsf@mahtan.ntc.nokia.com>
[not found] ` <nms.mail.egcs/19990410081733$781c@stybba.ntc.nokia.com>
1999-04-18 12:35 ` Marc Girod
1999-04-20 9:26 ` Jeffrey A Law
1999-04-30 23:15 ` Jeffrey A Law
1999-04-30 23:15 ` Marc Girod
1999-05-04 6:22 ` Marc Girod
1999-05-04 12:37 ` Jeffrey A Law [this message]
1999-05-31 21:36 ` Jeffrey A Law
1999-05-31 21:36 ` Marc Girod
[not found] <nms.mail.egcs/1yaevlotru.fsf@anvil.ntc.nokia.com>
[not found] ` <nms.mail.egcs/2756.925846479@upchuck.cygnus.com>
1999-05-04 23:00 ` Marc Girod
1999-05-06 23:56 ` Jeffrey A Law
1999-05-31 21:36 ` Jeffrey A Law
1999-05-31 21:36 ` Marc Girod
[not found] <nms.mail.egcs/1y90bpsovo.fsf@mahtan.ntc.nokia.com>
[not found] ` <nms.mail.egcs/488.924544529@upchuck.cygnus.com>
1999-04-20 23:51 ` Marc Girod
1999-04-30 23:15 ` Marc Girod
1999-05-23 23:36 ` Jeffrey A Law
1999-05-31 21:36 ` Jeffrey A Law
[not found] <nms.mail.egcs/Pine.LNX.4.04.9904082118420.494-100000@pm3o-30.pacificnet.net>
1999-04-08 22:39 ` Marc Girod
1999-04-10 1:17 ` Jeffrey A Law
1999-04-30 23:15 ` Jeffrey A Law
1999-04-30 23:15 ` Marc Girod
1999-04-08 21:28 Stephen Walton
1999-04-10 1:15 ` Jeffrey A Law
1999-04-30 23:15 ` Jeffrey A Law
1999-04-30 23:15 ` Stephen Walton
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=2756.925846479@upchuck.cygnus.com \
--to=law@upchuck.cygnus.com \
--cc=egcs@egcs.cygnus.com \
--cc=girod@stybba.ntc.nokia.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).