From patchwork Tue Jul 30 14:34:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 263398 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 944942C0090 for ; Wed, 31 Jul 2013 00:35:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=VgUJvze12SmZNovU26ILkqmPXhKKkJaqoZF6jRq50Ql7AXS8LPiZO 9bndAEMBwjxUeWwSqEYezPubSxxgV0W/M3pOXTLVN0JP/PLWezgr73B5ixp/10O4 mXswolA4Hmgi7pqrT3Ig+lygnufIGptpObvsWg57BXku+o797JqY1U= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=R8Mzp1D4sx/H3tq8qzESmPwuA3g=; b=KfKD37KPp5DL9Y/uhfj0 rGfnI6I7XPpvSvhc4Idy/3wMH64aTEbPusTh4RIsZl1D7lY1rPHta71uj5m6IiaR ngtevygR3mtvYrTwq2HysauWijcfEoB6VJnjS8yVwYrngV3ftP3tnkuka7cEX9WL egBfRrzJxQ3tsc2ul26+los= Received: (qmail 25287 invoked by alias); 30 Jul 2013 14:34:26 -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 25254 invoked by uid 89); 30 Jul 2013 14:34:25 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL, BAYES_50, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RDNS_NONE, SPF_HELO_PASS, SPF_PASS autolearn=no version=3.3.1 Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Jul 2013 14:34:25 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6UEYHtC032363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 30 Jul 2013 10:34:18 -0400 Received: from redhat.com (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r6UEYEng008730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 30 Jul 2013 10:34:17 -0400 Date: Tue, 30 Jul 2013 16:34:14 +0200 From: Marek Polacek To: GCC Patches Subject: [ubsan] Add bootstrap-ubsan.mk Message-ID: <20130730143414.GL17022@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) This adds the bootstrap-ubsan.mk file so that --with-build-config=bootstrap-ubsan be possible. I doesn't work yet, though :(. Tested x86_64-pc-linux-gnu, applying to ubsan branch. + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs Marek diff --git a/config/ChangeLog.ubsan b/config/ChangeLog.ubsan new file mode 100644 index 0000000..f7a2125 --- /dev/null +++ b/config/ChangeLog.ubsan @@ -0,0 +1,3 @@ +2013-07-30 Marek Polacek + + * bootstrap-ubsan.mk: New. diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk new file mode 100644 index 0000000..10543f6 --- /dev/null +++ b/config/bootstrap-ubsan.mk @@ -0,0 +1,7 @@ +# This option enables -fsanitize=undefined for stage2 and stage3. + +STAGE2_CFLAGS += -fsanitize=undefined +STAGE3_CFLAGS += -fsanitize=undefined +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \