From patchwork Wed Jun 1 21:17:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 12692 Received: (qmail 44070 invoked by alias); 1 Jun 2016 21:17:11 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 44024 invoked by uid 89); 1 Jun 2016 21:17:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=os, sk:CFLAGS-, sk:cflags, sk:cflags- X-HELO: mga03.intel.com X-ExtLoop1: 1 Date: Wed, 1 Jun 2016 14:17:05 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] Compile tst-cleanupx4 test with -fexceptions Message-ID: <20160601211705.GA29115@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) tst-cleanupx4 is linked with tst-cleanupx4.o and tst-cleanup4aux.o. Since tst-cleanupx4.o is compiled from tst-cleanup4.c with -fexceptions, tst-cleanupx4.c should also be compiled with -fexceptions. Tested on x86-64 and i686. OK for master? H.J. --- [BZ 18645] * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o (test-extras): Add tst-cleanupx4aux. (CFLAGS-tst-cleanupx4aux.c): New. Set to -fexceptions. ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with tst-cleanupx4aux.o. * nptl/tst-cleanupx4aux.c: New file. --- nptl/Makefile | 8 +++++--- nptl/tst-cleanupx4aux.c | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 nptl/tst-cleanupx4aux.c diff --git a/nptl/Makefile b/nptl/Makefile index eaa6f7f..684c538 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -333,8 +333,9 @@ modules-names = tst-atfork2mod tst-tls3mod tst-tls4moda tst-tls4modb \ tst-tls5modd tst-tls5mode tst-tls5modf tst-stack4mod \ tst-_res1mod1 tst-_res1mod2 tst-execstack-mod tst-fini1mod \ tst-join7mod -extra-test-objs += $(addsuffix .os,$(strip $(modules-names))) tst-cleanup4aux.o -test-extras += $(modules-names) tst-cleanup4aux +extra-test-objs += $(addsuffix .os,$(strip $(modules-names))) \ + tst-cleanup4aux.o tst-cleanupx4aux.o +test-extras += $(modules-names) tst-cleanup4aux tst-cleanupx4aux test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names))) tst-atfork2mod.so-no-z-defs = yes @@ -476,6 +477,7 @@ CFLAGS-tst-cleanupx1.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-tst-cleanupx2.c += -fexceptions CFLAGS-tst-cleanupx3.c += -fexceptions CFLAGS-tst-cleanupx4.c += -fexceptions +CFLAGS-tst-cleanupx4aux.c += -fexceptions CFLAGS-tst-oncex3.c += -fexceptions CFLAGS-tst-oncex4.c += -fexceptions CFLAGS-tst-align.c += $(stack-align-test-flags) @@ -519,7 +521,7 @@ clean: rm -f $(tst-stack4mod.sos) $(objpfx)tst-cleanup4: $(objpfx)tst-cleanup4aux.o $(shared-thread-library) -$(objpfx)tst-cleanupx4: $(objpfx)tst-cleanup4aux.o $(shared-thread-library) +$(objpfx)tst-cleanupx4: $(objpfx)tst-cleanupx4aux.o $(shared-thread-library) $(objpfx)tst-tls3: $(libdl) $(shared-thread-library) LDFLAGS-tst-tls3 = -rdynamic diff --git a/nptl/tst-cleanupx4aux.c b/nptl/tst-cleanupx4aux.c new file mode 100644 index 0000000..00bafe4 --- /dev/null +++ b/nptl/tst-cleanupx4aux.c @@ -0,0 +1 @@ +#include "tst-cleanup4aux.c"