From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88932 invoked by alias); 10 Mar 2016 23:54:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 88781 invoked by uid 89); 10 Mar 2016 23:54:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 10 Mar 2016 23:54:02 +0000 Received: by mail-oi0-f48.google.com with SMTP id d205so73953581oia.0 for ; Thu, 10 Mar 2016 15:54:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Udo+yBNZA60rnyxdE79H8bj/MGPb5qw5GUS0+kd4dgA=; b=KIhDq+YJoCBdi83mCiAD+538s0twLkeYjvw0I7Syt5BqLkEuwRj1WbHMsoWckqLjkJ x6k6zZ95DAev1GyIMETvgKlyYE2Td0WVQsRzx2CKMelWlonbBe8hcZLrtSoCwTubdpcz tP/6YUupabyhGKDRC6wK8sXY+PbMiulm+j7eW+tgM0SGcebR0BlqBlPAKPU02Re80TGl mKiRMi1cFuVsW6X8P1RcZpkISqQmtqPKqasMVul5nMUbbwhQAuuCi0ZzomEMASSRwgMj xLRQnG6Adkk6+Ld2hz7wt+bElyg330kGObcNtG/rgkHMBAZjxipp8UCFktCAL3hrYFlr X5Pw== X-Gm-Message-State: AD7BkJLvPrBGCkCv84uKuAnXqCWABkCiYyhVZ8XVURnzqyg80/lxC77FXg/8szNaw23pqRS2cmBOJ5QU8YTB7w== X-Received: by 10.202.98.133 with SMTP id w127mr3302479oib.136.1457654040332; Thu, 10 Mar 2016 15:54:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.29.226 with HTTP; Thu, 10 Mar 2016 15:53:41 -0800 (PST) In-Reply-To: <1457653131-32296-1-git-send-email-patrick@parcs.ath.cx> References: <1457653131-32296-1-git-send-email-patrick@parcs.ath.cx> From: Patrick Palka Date: Thu, 10 Mar 2016 23:54:00 -0000 Message-ID: Subject: Re: [PATCH] Turn some compile-time tests into run-time tests To: GCC Patches Cc: Patrick Palka Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2016-03/txt/msg00674.txt.bz2 On Thu, Mar 10, 2016 at 6:38 PM, Patrick Palka wrote: > I ran the command > > git grep -l "dg-do compile" | xargs grep -l __builtin_abort | xargs grep -lw main > > to find tests marked as compile-time tests that likely ought to instead > be marked as run-time tests, by the rationale that they use > __builtin_abort and they also define main(). (I also then confirmed that they > compile, link and run cleanly on my machine.) > > After this patch, the remaining test files reported by the above command > are: > > These do not define all the functions they use: > gcc/testsuite/g++.dg/ipa/devirt-41.C > gcc/testsuite/g++.dg/ipa/devirt-44.C > gcc/testsuite/g++.dg/ipa/devirt-45.C > gcc/testsuite/gcc.target/i386/pr55672.c Actually this i386 test just performs obvious UB which is why I left it as a compile-time test.