From patchwork Mon Apr 13 20:26:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 460927 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E17E3140134 for ; Tue, 14 Apr 2015 06:26:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XAiZfrYq; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=hKgWTc5gr5HBO3/tU2 sD+h1HJqxeI+XgTfDF6N1v+1FvEheuqY58tkM7cePslUssCaYVFp3P7OFTd6rs4D sk3n2smi0SZG+ImMUb480wkHn/MS8MyArIGbxwVbpjLBTi9q+llTelsrK9XyYh8v dXSrsTLrksGTdls3E1xJUxpDU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=wEYX4rZAPpZemnZrFf59qvjw tZk=; b=XAiZfrYqQ5UGGtPLlkmpgO9TbavPvX6wmeyG9TjNni3OMG35Ei+FroW5 Pku/Ges2Fu8to9MjlL3Irx1Di9OFTN3DY/WfzYlB8ruc90uPkm6ICLtFW/Ck78iv HQQ6VgFPpT1Asa3LE4GmyBJQg0Z4dyyRKTxiBxYz4cACjceUyyg= Received: (qmail 15259 invoked by alias); 13 Apr 2015 20:26:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 15250 invoked by uid 89); 13 Apr 2015 20:26:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 13 Apr 2015 20:26:28 +0000 Received: by oift201 with SMTP id t201so13875581oif.3 for ; Mon, 13 Apr 2015 13:26:26 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.103.234 with SMTP id fz10mr13518584oeb.11.1428956786369; Mon, 13 Apr 2015 13:26:26 -0700 (PDT) Received: by 10.76.54.14 with HTTP; Mon, 13 Apr 2015 13:26:26 -0700 (PDT) In-Reply-To: References: <20150323192748.GA3614@intel.com> Date: Mon, 13 Apr 2015 13:26:26 -0700 Message-ID: Subject: Re: PATCH: Add bootstrap-mpx.mk From: "H.J. Lu" To: Ilya Enkovich Cc: gcc-patches X-IsSubscribed: yes On Mon, Apr 13, 2015 at 3:43 AM, Ilya Enkovich wrote: > 2015-03-23 22:27 GMT+03:00 H.J. Lu : >> Hi, >> >> This patch adds bootstrap-mpx.mk so that we test mpx in gcc build by >> configuring GCC with >> >> --enable-libmpx --with-build-config="bootstrap-mpx" >> >> OK to install? >> >> >> H.J. >> --- >> 2015-03-23 H.J. Lu >> >> * bootstrap-mpx.mk: New file. >> >> diff --git a/config/bootstrap-mpx.mk b/config/bootstrap-mpx.mk >> new file mode 100644 >> index 0000000..ed97826 >> --- /dev/null >> +++ b/config/bootstrap-mpx.mk >> @@ -0,0 +1,9 @@ >> +# This option enables -fcheck-pointer-bounds -mmpx for stage2 and stage3. >> + >> +STAGE2_CFLAGS += -fcheck-pointer-bounds -mmpx >> +STAGE3_CFLAGS += -fcheck-pointer-bounds -mmpx >> +POSTSTAGE1_LDFLAGS += -fcheck-pointer-bounds -mmpx \ >> + -static-libmpx -static-libmpxwrappers \ >> + -B$$r/prev-$(TARGET_SUBDIR)/libmpx \ >> + -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxrt/.libs \ >> + -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxwrap/.libs > > Hi, > > Static constructors created by Pointer Bounds Checker get random seed > in their names. -frandom-seed should be used to avoid comparison > errors. > Updated. I bootstrapped it on Linux/x86-64. OK for trunk? Thanks. From c70ad827455a431002d500ec933e71aa910f6f21 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 26 Mar 2015 10:06:21 -0700 Subject: [PATCH] Add bootstrap-mpx.mk * bootstrap-mpx.mk: New file. --- config/bootstrap-mpx.mk | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/bootstrap-mpx.mk diff --git a/config/bootstrap-mpx.mk b/config/bootstrap-mpx.mk new file mode 100644 index 0000000..acc2a2e --- /dev/null +++ b/config/bootstrap-mpx.mk @@ -0,0 +1,9 @@ +# This option enables -fcheck-pointer-bounds -mmpx for stage2 and stage3. + +STAGE2_CFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1 +STAGE3_CFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1 +POSTSTAGE1_LDFLAGS += -fcheck-pointer-bounds -mmpx -frandom-seed=1 \ + -static-libmpx -static-libmpxwrappers \ + -B$$r/prev-$(TARGET_SUBDIR)/libmpx \ + -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxrt/.libs \ + -B$$r/prev-$(TARGET_SUBDIR)/libmpx/mpxwrap/.libs -- 1.9.3