This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] Fix AIX libgomp bootstrap comparison (PR bootstrap/80531)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]