From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14895 invoked by alias); 20 Jul 2011 20:26:07 -0000 Received: (qmail 14875 invoked by uid 22791); 20 Jul 2011 20:26:05 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS,T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 20:25:20 +0000 Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id p6KKPJh4013472 for ; Wed, 20 Jul 2011 13:25:19 -0700 Received: from iwg8 (iwg8.prod.google.com [10.241.66.136]) by wpaz5.hot.corp.google.com with ESMTP id p6KKPH6Z014598 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 20 Jul 2011 13:25:17 -0700 Received: by iwg8 with SMTP id 8so522314iwg.10 for ; Wed, 20 Jul 2011 13:25:17 -0700 (PDT) Received: by 10.231.13.205 with SMTP id d13mr8196381iba.88.1311193517442; Wed, 20 Jul 2011 13:25:17 -0700 (PDT) Received: from coign.google.com ([2620:0:1000:2301:21c:25ff:fe14:8d86]) by mx.google.com with ESMTPS id p11sm363948ibd.35.2011.07.20.13.25.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Jul 2011 13:25:16 -0700 (PDT) From: Ian Lance Taylor To: David Edelsohn Cc: gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ References: <4E26E775.7070802@moene.org> Date: Wed, 20 Jul 2011 20:53:00 -0000 In-Reply-To: (David Edelsohn's message of "Wed, 20 Jul 2011 15:28:42 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00395.txt.bz2 --=-=-= Content-length: 629 David Edelsohn writes: > I now can get through the build of the compiler, but stage2 and stage3 > libstdc++ and libsupc++ files have many comparison failures due to > tree.c:get_file_function_name() introducing explicit randomness to > produce different symbols for anonymous namespaces: Interesting. I don't know why this doesn't happen on GNU/Linux. Perhaps AIX has symbols which are dropped on GNU/Linux for some reason. Presumably the fix will be to use -frandom-seed. Does this patch fix the problem? (The only real change is to fragment.am, the other changes are all generated by automake). Ian --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=foo.patch Content-Description: patch Content-length: 5086 Index: fragment.am =================================================================== --- fragment.am (revision 176515) +++ fragment.am (working copy) @@ -16,7 +16,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: python/Makefile.in =================================================================== --- python/Makefile.in (revision 176515) +++ python/Makefile.in (working copy) @@ -291,7 +291,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: Makefile.in =================================================================== --- Makefile.in (revision 176515) +++ Makefile.in (working copy) @@ -293,7 +293,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: src/Makefile.in =================================================================== --- src/Makefile.in (revision 176515) +++ src/Makefile.in (working copy) @@ -331,7 +331,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: doc/Makefile.in =================================================================== --- doc/Makefile.in (revision 176515) +++ doc/Makefile.in (working copy) @@ -277,7 +277,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: po/Makefile.in =================================================================== --- po/Makefile.in (revision 176515) +++ po/Makefile.in (working copy) @@ -267,7 +267,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: include/Makefile.in =================================================================== --- include/Makefile.in (revision 176515) +++ include/Makefile.in (working copy) @@ -267,7 +267,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: libsupc++/Makefile.in =================================================================== --- libsupc++/Makefile.in (revision 176515) +++ libsupc++/Makefile.in (working copy) @@ -326,7 +326,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once Index: testsuite/Makefile.in =================================================================== --- testsuite/Makefile.in (revision 176515) +++ testsuite/Makefile.in (working copy) @@ -270,7 +270,7 @@ toolexeclibdir = $(glibcxx_toolexeclibdi # These bits are all figured out from configure. Look in acinclude.m4 # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. CONFIG_CXXFLAGS = \ - $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) + $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -frandom-seed=$@ WARN_CXXFLAGS = \ $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once --=-=-=--