From patchwork Thu Aug 16 22:47:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 178111 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 B567C2C0096 for ; Fri, 17 Aug 2012 08:48:04 +1000 (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=1345762086; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:Message-Id:From:To: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=KcceYnmEmqGhHlYK+dPQ 06LbcnU=; b=ZEf9p/Koyx3qAnMK8vsmW5+lTZOsEPQXwbyVKdFbnhAy/q++xIwg PCTKDZittvHfoq6KdDQqCqJFTtL9kgiL8OmrEry2jjYow5oIsgPLS53vJhSwPD2K 1qhlnDFGKj7Aop29snJogsGE/cNnIw/Nf0LIN4aXMuC/HxwSTeHyF94= 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:Received:Received:Received:Received:Date:Message-Id:From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=CCMF7ToNcuhgYQLo8OnLSTuWYp2AbZoJ7VfoV7yvZeHE8lZPyih4V1LNZzpYFG 9gdSA8pXQQZsdNooCrR4GRTJFNJSpAf7ms2yuOInZW6aR2twOpkfKieX2oXvfiOb 90wnqUNYWufNpEYwtyi2oVBh1tOwEuOPBtHwe4g6tmh0s=; Received: (qmail 6643 invoked by alias); 16 Aug 2012 22:47:59 -0000 Received: (qmail 6630 invoked by uid 22791); 16 Aug 2012 22:47:58 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ra.se.axis.com (HELO ra.se.axis.com) (195.60.68.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Aug 2012 22:47:44 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id EF67E11FE4 for ; Fri, 17 Aug 2012 00:47:42 +0200 (CEST) Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RVh1qUHmR3gF for ; Fri, 17 Aug 2012 00:47:41 +0200 (CEST) Received: from seth.se.axis.com (seth.se.axis.com [10.0.2.172]) by ra.se.axis.com (Postfix) with ESMTP id 0225811FE1 for ; Fri, 17 Aug 2012 00:47:40 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by seth.se.axis.com (Postfix) with ESMTP id E4D1C3E0DB; Fri, 17 Aug 2012 00:47:40 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id q7GMled0025799; Fri, 17 Aug 2012 00:47:40 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id q7GMleuF025795; Fri, 17 Aug 2012 00:47:40 +0200 Date: Fri, 17 Aug 2012 00:47:40 +0200 Message-Id: <201208162247.q7GMleuF025795@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gcc-patches@gcc.gnu.org Subject: Committed: add cris-* and crisv32-* to lists in sync_int_long and sync_char_short MIME-Version: 1.0 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 See also PR54261 and gcc.dg/torture/pr54261-1.c. I was about to also add an #elif defined (__CRIS__) in cas_int (which commendably uses __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 but nevertheless needs to be manually enabled because of PR54266), but cas_int only guards test-cases that grep dumps for tree/gimple things that for some reason are absent in absence of MD patterns, so I'm dropping that; there's little point in enabling cas_int and xfailing all tests using it. Committed, all now enabled test-cases pass for cris-elf and FWIW the local 4.7 import for crisv32-axis-linux-gnu. gcc/testsuite: * lib/target-supports.exp (check_effective_target_sync_int_long) (check_effective_target_sync_char_short): Enable for crisv32-* and cris-*. brgds, H-P diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index e286e64..968d6e7 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4033,6 +4033,7 @@ proc check_effective_target_sync_int_long { } { || [istarget hppa*-*linux*] || [istarget s390*-*-*] || [istarget powerpc*-*-*] + || [istarget crisv32-*-*] || [istarget cris-*-*] || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9]) || [check_effective_target_mips_llsc] } { set et_sync_int_long_saved 1 @@ -4062,6 +4063,7 @@ proc check_effective_target_sync_char_short { } { || [istarget hppa*-*linux*] || [istarget s390*-*-*] || [istarget powerpc*-*-*] + || [istarget crisv32-*-*] || [istarget cris-*-*] || ([istarget sparc*-*-*] && [check_effective_target_sparc_v9]) || [check_effective_target_mips_llsc] } { set et_sync_char_short_saved 1