Bug 44268 - abi docs say that hppa-linux defaults to libgcc_s.so.2
Summary: abi docs say that hppa-linux defaults to libgcc_s.so.2
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.4.5
: P3 normal
Target Milestone: ---
Assignee: Jonathan Wakely
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 10:34 UTC by Caolan McNamara
Modified: 2024-06-03 16:32 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-05-25 21:35:43


Attachments
update docs (377 bytes, patch)
2010-05-25 10:34 UTC, Caolan McNamara
Details | Diff
alternative patch (405 bytes, patch)
2010-06-06 21:31 UTC, Jonathan Wakely
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caolan McNamara 2010-05-25 10:34:14 UTC
http://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html

says "gcc-3.4.x, gcc-4.[0-5].x: on m68k-linux and hppa-linux this is either libgcc_s.so.1 (when configuring --with-sjlj-exceptions) or libgcc_s.so.2. For all others, this is libgcc_s.so.1."

But I see libgcc_s.so.4 on hppa not libgcc_s.so.2. Patch attached to change docs
Comment 1 Caolan McNamara 2010-05-25 10:34:45 UTC
Created attachment 20740 [details]
update docs
Comment 2 Paolo Carlini 2010-05-25 20:55:31 UTC
Jon, can you have a look and apply the patch to the relevant branches? Thanks.
Comment 3 Jonathan Wakely 2010-05-26 23:19:58 UTC
Dave, when did the hppa-linux so version change from 2 to 4?
I'd like to document that, rather than just say it's always 1 or 4
Comment 4 dave 2010-05-27 16:06:54 UTC
Subject: Re:  abi docs say that hppa-linux defaults to libgcc_s.so.2

> Dave, when did the hppa-linux so version change from 2 to 4?
> I'd like to document that, rather than just say it's always 1 or 4

Oops, I have messed up.  After some discussion, it was decided to
revert the change.  It was supposed to have been reverted on 2010-01-31,
but the change apparently didn't work at least on the trunk.  The
original change was made on 2010-01-02.

Dave
Comment 5 dave 2010-05-29 15:11:43 UTC
Subject: Re:  abi docs say that hppa-linux defaults to libgcc_s.so.2

> > Dave, when did the hppa-linux so version change from 2 to 4?
> > I'd like to document that, rather than just say it's always 1 or 4
> 
> Oops, I have messed up.  After some discussion, it was decided to
> revert the change.  It was supposed to have been reverted on 2010-01-31,
> but the change apparently didn't work at least on the trunk.  The
> original change was made on 2010-01-02.

On further review, I see that I didn't mess up the revert in January!

The sjlj and elf shared library versions were set to 3 and 4, respectively,
in revision 109894 on Jan. 18, 2006 on the trunk.  The version was previously
set to 2 in revision 77920 on Feb. 16, 2004.  Prior to that, the version
was 1.  I would have to dig some more to determine the version numbers
for specific releases.

Dave
Comment 6 Jonathan Wakely 2010-05-30 12:39:54 UTC
that's fine I'll be able to update the docs from that info - thanks
Comment 7 Jonathan Wakely 2010-06-06 21:31:15 UTC
Created attachment 20852 [details]
alternative patch

Based on the dates from Dave, I think this might be more accurate, and I hope clearer.  The output looks like

    ...
    * gcc-3.3.3: libgcc_s.so.1
    * gcc-3.4.x, gcc-4.[0-1].x: libgcc_s.so.1

For m68k-linux the versions differ as follows:

    * gcc-3.4.x, gcc-4.[0-5].x: libgcc_s.so.1 when configuring --with-sjlj-exceptions, or libgcc_s.so.2 

For hppa-linux the versions differ as follows:

    * gcc-3.4.x, gcc-4.[0-1].x: either libgcc_s.so.1 when configuring --with-sjlj-exceptions, or libgcc_s.so.2
    * gcc-4.[2-5].x: either libgcc_s.so.3 when configuring --with-sjlj-exceptions) or libgcc_s.so.4
Comment 8 Jonathan Wakely 2010-06-06 21:33:22 UTC
(In reply to comment #7)
>     ...
>     * gcc-3.3.3: libgcc_s.so.1
>     * gcc-3.4.x, gcc-4.[0-1].x: libgcc_s.so.1
                            ^ oops, should be 5
Comment 9 Jonathan Wakely 2010-06-11 15:32:31 UTC
Subject: Bug 44268

Author: redi
Date: Fri Jun 11 15:31:53 2010
New Revision: 160617

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160617
Log:
2010-06-11  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/44268
	* doc/xml/manual/abi.xml: Fix libgcc version for hppa-linux.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/doc/xml/manual/abi.xml

Comment 10 Jonathan Wakely 2010-06-11 15:35:37 UTC
fixed (but website not updated with the changes yet)
Comment 11 Jakub Jelinek 2024-06-03 16:32:12 UTC
*** Bug 115332 has been marked as a duplicate of this bug. ***