From patchwork Fri Oct 26 19:14:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 194554 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]) by ozlabs.org (Postfix) with SMTP id BE7AA2C0084 for ; Sat, 27 Oct 2012 06:14:53 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1351883694; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=5wlYNXGLezS2FQR/jyMncOyA3Tk=; b=LuBOXEYNbwhEOCZ 5abD0GICh1QN7k93BOBFNEXBPyABsqqbzieetV9+Z8bed6geN/SFq8mGijjWsP8J EkxT3AQ8UT2U81or7lyUSlRS0+KJyFKcQnFNf6LMt/O3/w1sjdRQzA20/iOq0vDu WNhYm8VrHr9YHetLYQLn46Us5u6k= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=podxJlDWbORb8RiMKh9odpqz7fYw1+Sw4H1ewRqddINP6ehpm1yecYExm+IJfV P9xOlqvbUG9sRDHWoD4xJURsSwmSj/cIhqGpJyK0zPRqs8afZ6QrDsLM6OHTbOV5 LnsWj4z/euE2oF+bDFg+6WGYqQvRSgEQ6QsmR6u787LiM=; Received: (qmail 20513 invoked by alias); 26 Oct 2012 19:14:49 -0000 Received: (qmail 20498 invoked by uid 22791); 26 Oct 2012 19:14:49 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Oct 2012 19:14:45 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id B30F6B005C; Fri, 26 Oct 2012 15:14:44 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id q9QJEivS012100; Fri, 26 Oct 2012 15:14:44 -0400 Date: Fri, 26 Oct 2012 15:14:44 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iain@codesourcery.com, rth@gcc.gnu.org, ro@TechFak.Uni-Bielefeld.DE Subject: [PATCH] add check_effective_target_masm_intel Message-ID: <20121026191444.GA12098@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 Currently targets like darwin which use older assemblers which lack support for the -masm=intel command line option fail these tests. The attached patch adds a proc for check_effective_target_masm_intel to target-supports.exp and uses it in the gcc.target/i386/asm-dialect-1.c test case. Tested on x86_64-apple-darwin12. Okay for gcc trunk? Jack gcc/testsuite/ 2012-10-26 Jack Howarth PR target/54255 * lib/target-supports.exp (check_effective_target_masm_intel): New proc. * gcc.target/i386/asm-dialect-1.c: Use dg-require-effective-target masm_intel. Index: gcc/testsuite/gcc.target/i386/asm-dialect-1.c =================================================================== --- gcc/testsuite/gcc.target/i386/asm-dialect-1.c (revision 192855) +++ gcc/testsuite/gcc.target/i386/asm-dialect-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-options "-masm=intel" } */ +/* { dg-require-effective-target masm_intel } */ extern void abort (void); Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 192855) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -4617,6 +4617,15 @@ proc check_effective_target_split_stack } "-fsplit-stack"] } +# Return 1 if this target supports the -masm=intel option, 0 +# otherwise + +proc check_effective_target_masm_intel {} { + return [check_no_compiler_messages masm_intel object { + extern void abort (void); + } "-masm=intel"] +} + # Return 1 if the language for the compiler under test is C. proc check_effective_target_c { } {