From patchwork Sat Dec 13 13:05:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 420761 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 E43E71400DD for ; Sun, 14 Dec 2014 00:06:04 +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 :message-id:subject:from:to:date:content-type:mime-version; q= dns; s=default; b=Cl4heT1Z+kDVYMXZTBEEwWh6GY2xvR1DIhL3J0n9d+q+Xg TWCiB8umZ5orNnJ91f++q5eK8ebcgfdXNNrpYl/Zn0OCZudZ1zyAntfDEzeIY3Bb PCu0QNA4yYQSbdNhJcp6l7nksPEJRuPFxy4IJrhnz06Ahvp5wo6v0YgqCkUFs= 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 :message-id:subject:from:to:date:content-type:mime-version; s= default; bh=I4gSQyVsSmmMaU1LZfm0OuFIbfc=; b=vMh0bMfXvVzrqCwizOch fL7hK1hB9i34PsteRat4w+Bnuy5HfJgS1/ZLfsGPz1j+xwwvt0bbtX9UgTS62w60 LaVHZwYk0x7IEu11cUZKVIC341ftuy+GkLBogUD9rYnxhhSfIVK/g/qm/HvXe26l OYmDuLW1V6IMwpijjPHd490= Received: (qmail 7883 invoked by alias); 13 Dec 2014 13:05:58 -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 7872 invoked by uid 89); 13 Dec 2014 13:05:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout03.t-online.de Received: from mailout03.t-online.de (HELO mailout03.t-online.de) (194.25.134.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 13 Dec 2014 13:05:55 +0000 Received: from fwd41.aul.t-online.de (fwd41.aul.t-online.de [172.20.27.139]) by mailout03.t-online.de (Postfix) with SMTP id E6211340815 for ; Sat, 13 Dec 2014 14:05:51 +0100 (CET) Received: from [192.168.0.104] (Z4D-xiZ-rh1PmTOXxBQlFFgqvgrHhZyxzFZtNY2rnBF202hwg-ygYIfMzFIj4Fwwa+@[84.180.116.254]) by fwd41.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1XzmOK-2NrMTQ0; Sat, 13 Dec 2014 14:05:48 +0100 Message-ID: <1418475947.14512.17.camel@yam-132-YW-E178-FTW> Subject: [SH][committed] Fix sp-switch testcase when there is no underscore prefix From: Oleg Endo To: gcc-patches Date: Sat, 13 Dec 2014 14:05:47 +0100 Mime-Version: 1.0 X-IsSubscribed: yes Hi, The attached patch fixes symbol matching in the sh/sp-switch.c testcase to allow zero or more prefix underscores. This should make the test pass on sh4-linux. Tested on sh-sim with make check-gcc RUNTESTFLAGS="sh.exp=sp-switch.c --target_board=sh-sim \{-m4/-ml}" and make check-gcc RUNTESTFLAGS="sh.exp=sp-switch.c --target_board=sh-sim \{-m4/-ml/-fno-leading-underscore}" Committed as r218706. Cheers, Oleg gcc/testsuite/ChangeLog: * gcc.target/sh/sp-switch.c: Match zero or more underscores in alt_stack symbol. Index: gcc/testsuite/gcc.target/sh/sp-switch.c =================================================================== --- gcc/testsuite/gcc.target/sh/sp-switch.c (revision 218604) +++ gcc/testsuite/gcc.target/sh/sp-switch.c (working copy) @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-final { scan-assembler "mov\tr0,r15" } } */ -/* { dg-final { scan-assembler ".long\t_alt_stack" } } */ +/* { dg-final { scan-assembler ".long\t\[_\]*alt_stack" } } */ void *alt_stack; void f() __attribute__ ((interrupt_handler, sp_switch ("alt_stack")));