This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] support --without-multilib --with-specs=-pthread on AIX
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: Michael Haubenwallner <michael dot haubenwallner at ssi-schaefer dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Feb 2015 09:57:17 -0500
- Subject: Re: [PATCH] support --without-multilib --with-specs=-pthread on AIX
- Authentication-results: sourceware.org; auth=none
- References: <54E2F5EF dot 3030209 at ssi-schaefer dot com>
On Tue, Feb 17, 2015 at 3:03 AM, Michael Haubenwallner
<michael.haubenwallner@ssi-schaefer.com> wrote:
> Hi David,
>
> according to LIB_SPEC found in config/rs6000/aix*.h, pthread linking was done with
> "-lpthreads -lc_r libc.a" for aix43, which simplified to "-lpthreads -lc" with aix51.
>
> But libgcc_s still is linked the aix43 way with "-lpthreads -lc_r libc.a".
>
> As libc_r.a is a symlink to libc.a now, do you know if its shared objects are loaded
> both as "libc.a(shr.o)" and "libc_r.a(shr.o)", or as "libc.a(shr.o)" only?
> Can this be a problem worth a bug entry?
What do you mean by "loaded as"? There is only one shared object
loaded into the shared library segment.
> Anyway, this patch allows me to configure --without-multilib --with-specs=-pthread
libgcc build does not distinguish between different releases of AIX.
This patch will break AIX 4.3. There apparently are people using
current GCC on AIX. Why are you submitting a patch that explicitly
reverts AIX 4.3 support?
Thanks, David