This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix AIX libgomp bootstrap comparison (PR bootstrap/80531)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Apr 2017 22:06:19 +0200
- Subject: [committed] Fix AIX libgomp bootstrap comparison (PR bootstrap/80531)
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com E187FC0467F1
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E187FC0467F1
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
AIX with -fPIC emits especially for __attribute__((constructor)) functions
symbol names with random seed in it, which breaks bootstrap comparison.
libstdc++ uses -frandom-seed=$@ everywhere, libgomp on HPUX uses
-frandom-seed=fixed-string (should be eventually changed to $@), this patch
adds it for AIX too.
Bootstrapped/regtested on x86_64-linux, i686-linux and
powerpc-ibm-aix7.2.0.0, committed to trunk and 7.1.
2017-04-27 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/80531
* configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
bootstrap compare failures.
--- libgomp/configure.tgt.jj 2015-09-03 18:19:35.000000000 +0200
+++ libgomp/configure.tgt 2017-04-27 15:32:45.037161631 +0200
@@ -149,6 +149,8 @@ case "${target}" in
config_path="posix"
# Need to link with -lpthread so libgomp.so is self-contained.
XLDFLAGS="${XLDFLAGS} -lpthread"
+ # AIX needs -frandom-seed for bootstrap compare.
+ XCFLAGS="${XCFLAGS} -frandom-seed=\$@"
;;
nvptx*-*-*)
Jakub