From patchwork Sat Dec 20 16:58:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FX Coudert X-Patchwork-Id: 423091 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 70AA1140082 for ; Sun, 21 Dec 2014 03:58:31 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; q=dns; s=default; b=KHLwFCm5xQjQACKR28E5QWKwtW tKezaJ5b5MnAqM2obXwa2oVSGSE7m+7ybOFD7llrGxbCxwy+nHfB4Ng3pEqS89h3 CifMvuCXtsXTNzFdgY2VSJR5M7Z/u0McF8sfDCLYHRptMWZMnsu6oURJOu/nA7UO dIfW7mF8TDAmfaDt4= 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:from :content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; s=default; bh=qe41Td7/QhuG1sTiJESQnYwsSE0=; b= TuEAMybDhJy4YDQv1Zpojx/wSUv0jG7gvjVx6ebdzaWUPH+EZ0QBVZvO1M/Cve9n pLe/Sv3X44LC034Tptc+W0G1TurEbx/aqgmdiCTq4N32FToRF5WvpbxjmJVZtUPP YO7DzTU41zADa7wWtvdCFZ9mf5BLB1hIvY+hWdG5qPA= Received: (qmail 10316 invoked by alias); 20 Dec 2014 16:58:21 -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 10304 invoked by uid 89); 20 Dec 2014 16:58:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f181.google.com Received: from mail-wi0-f181.google.com (HELO mail-wi0-f181.google.com) (209.85.212.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 20 Dec 2014 16:58:18 +0000 Received: by mail-wi0-f181.google.com with SMTP id r20so4521975wiv.14 for ; Sat, 20 Dec 2014 08:58:15 -0800 (PST) X-Received: by 10.180.109.3 with SMTP id ho3mr16030257wib.39.1419094695430; Sat, 20 Dec 2014 08:58:15 -0800 (PST) Received: from touille.bouyguesbox.fr (89-93-42-249.hfc.dyn.abo.bbox.fr. [89.93.42.249]) by mx.google.com with ESMTPSA id wb9sm6510253wic.20.2014.12.20.08.58.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Dec 2014 08:58:14 -0800 (PST) From: FX Subject: [patch, testsuite] Fix ubsan for testing when libstdc++ isn't installed Message-Id: <38EFCC72-8244-4555-9A77-DFF12E08C09C@gmail.com> Date: Sat, 20 Dec 2014 17:58:13 +0100 To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) This patch below allows ubsan to run when libstdc++ is built but not installed (something which happens on darwin, in particular). This fixes all 658 ubsan failures when run in this particular configuration. OK to commit? FX 2014-12-20 Francois-Xavier Coudert * lib/ubsan-dg.exp: Add library path for libstdc++. Index: gcc/testsuite/lib/ubsan-dg.exp =================================================================== --- gcc/testsuite/lib/ubsan-dg.exp (revision 218989) +++ gcc/testsuite/lib/ubsan-dg.exp (working copy) @@ -47,6 +47,7 @@ proc ubsan_link_flags { paths } { append flags " -B${gccpath}/libsanitizer/ubsan/ " append flags " -L${gccpath}/libsanitizer/ubsan/.libs" append ld_library_path ":${gccpath}/libsanitizer/ubsan/.libs" + append ld_library_path ":${gccpath}/libstdc++-v3/src/.libs" } } else { global tool_root_dir