From patchwork Wed Apr 27 14:56:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 93071 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 728171007D7 for ; Thu, 28 Apr 2011 00:56:09 +1000 (EST) Received: (qmail 3948 invoked by alias); 27 Apr 2011 14:56:03 -0000 Received: (qmail 3938 invoked by uid 22791); 27 Apr 2011 14:56:02 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Apr 2011 14:55:44 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3REthDU024682 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 27 Apr 2011 10:55:43 -0400 Received: from Gift.redhat.com (vpn2-8-241.ams2.redhat.com [10.36.8.241]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3REtfXK010791 for ; Wed, 27 Apr 2011 10:55:43 -0400 From: Nick Clifton To: gcc-patches@gcc.gnu.org Subject: Commit: RX: Fix some gcc testsuite failures Date: Wed, 27 Apr 2011 15:56:41 +0100 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes 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 Hi Guys, I am applying the patch below to the mainline and 4.6 branch sources. It fixes a few GCC testsuite failures for the RX target, specifically: gcc.dg/20020312-2.c gcc.dg/pr28796-2.c gcc.dg/torture/builtin-cproj-1.c gcc.dg/torture/type-generic-1.c gcc.target/rx/pack.c Cheers Nick gcc/testsuite/ChangeLog 2011-04-27 Nick Clifton * gcc.dg/20020312-2.c: Add definition for RX. * lib/target-supports.exp (add_options_for_ieee): Use -mnofpu option with RX targets. * gcc.target/rx/pack.c: Replace C++ style // comments with C style /* */ comments. Index: gcc/testsuite/gcc.target/rx/pack.c =================================================================== --- gcc/testsuite/gcc.target/rx/pack.c (revision 173012) +++ gcc/testsuite/gcc.target/rx/pack.c (working copy) @@ -4,10 +4,10 @@ typedef struct tst_2 { - INT16U f0; // [+0] - INT16U * f1; // [+2] - INT16U f2; // [+6] - INT16U * f3; // [+8] + INT16U f0; /* [+0] */ + INT16U * f1; /* [+2] */ + INT16U f2; /* [+6] */ + INT16U * f3; /* [+8] */ } __attribute__ ((__packed__)) t2; #include Index: gcc/testsuite/lib/target-supports.exp =================================================================== --- gcc/testsuite/lib/target-supports.exp (revision 173012) +++ gcc/testsuite/lib/target-supports.exp (working copy) @@ -3556,6 +3556,9 @@ || [istarget "sh*-*-*"] } { return "$flags -mieee" } + if { [istarget "rx-*-*"] } { + return "$flags -mnofpu" + } return $flags } Index: gcc/testsuite/gcc.dg/20020312-2.c =================================================================== --- gcc/testsuite/gcc.dg/20020312-2.c (revision 173012) +++ gcc/testsuite/gcc.dg/20020312-2.c (working copy) @@ -58,6 +58,8 @@ # else # define PIC_REG "30" # endif +#elif defined(__RX__) +/* No pic register. */ #elif defined(__s390__) # define PIC_REG "12" #elif defined(__sparc__)