From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65685 invoked by alias); 23 Jul 2015 11:15:39 -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 64922 invoked by uid 89); 23 Jul 2015 11:15:32 -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,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Jul 2015 11:15:27 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-15-Oo-7WM4eQKmDwwIZZmvh7A-1; Thu, 23 Jul 2015 12:15:22 +0100 Received: from e104458-lin.cambridge.arm.com ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 23 Jul 2015 12:15:22 +0100 From: Alex Velenko To: gcc-patches@gcc.gnu.org Cc: marcus.shawcroft@arm.com Subject: [PATCH] [PATCH][ARM] Fix pr63210.c testcase. Date: Thu, 23 Jul 2015 11:17:00 -0000 Message-Id: <1437650104-4568-1-git-send-email-alex.velenko@arm.com> X-MC-Unique: Oo-7WM4eQKmDwwIZZmvh7A-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg01925.txt.bz2 Hi, This patch prevents testcase pr63210.c from running with -march=3Darmv4t. Object size check should be skipped with explicit -march=3Darmv4t, because expected size is only correct using pop pc instruction which is unsafe for armv4t. For arm_arch_v5t_ok cases, an explicit -march=3Darmv5t flag is set. Is patch ok for trunk and fsf-5? gcc/testsuite 2015-07-23 Alex Velenko * gcc.target/arm/pr63210.c (dg-skip-if): Skip armv4t. (dg-additional-options): Add -march=3Darmv5t if arm_arch_v5t_ok. --- gcc/testsuite/gcc.target/arm/pr63210.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.target/arm/pr63210.c b/gcc/testsuite/gcc.tar= get/arm/pr63210.c index c3ae928..9b63a67 100644 --- a/gcc/testsuite/gcc.target/arm/pr63210.c +++ b/gcc/testsuite/gcc.target/arm/pr63210.c @@ -1,6 +1,8 @@ /* { dg-do assemble } */ /* { dg-options "-mthumb -Os " } */ /* { dg-require-effective-target arm_thumb1_ok } */ +/* { dg-skip-if "do not test on armv4t" { *-*-* } { "-march=3Darmv4t" } } = */ +/* { dg-additional-options "-march=3Darmv5t" {target arm_arch_v5t_ok} } */ =20 int foo1 (int c); int foo2 (int c); --=20 1.8.1.2