From patchwork Sat Nov 14 00:33:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 544699 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 02D8D1413F9 for ; Sat, 14 Nov 2015 11:33:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Gzm9TYYc; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=U1OVekwD+Ikenct2J5KevFEfwLJYsPtga17aenbEvUvSse JB5NHVVt1GeOZN4Cg5b3UQ87QSFzcsH0S01ohAlwKlBYxg9+8iHe90ECAeaGmcOq o7wnNYkE+o5IVgVr2ogn1oQav7cXsXTTAAqFOCkRgP75134AEyTGdzJwY1ixA= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=ZUOB7abWaHC/Zl+X537EC/kwpNg=; b=Gzm9TYYcVDj1guZHMR3j RDEqk9SSbC2pmSf8MGueS6GbG3LmgbM80tvAdUHH6YvvNiP7k/R1RbtG4IlO12yn oqdGonof+Z3nlTs9Qn57h3g/fkONJ+7c7vU5eTquEPX4tupIRoWqPJ3BiEmfh1+c 4yfnm85HLz7OUJSFNS7KjLA= Received: (qmail 27394 invoked by alias); 14 Nov 2015 00:33:14 -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 27385 invoked by uid 89); 14 Nov 2015 00:33:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_20, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-lf0-f50.google.com Received: from mail-lf0-f50.google.com (HELO mail-lf0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 14 Nov 2015 00:33:12 +0000 Received: by lfdo63 with SMTP id o63so61357216lfd.2 for ; Fri, 13 Nov 2015 16:33:08 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.25.88.67 with SMTP id m64mr11762518lfb.23.1447461188812; Fri, 13 Nov 2015 16:33:08 -0800 (PST) Received: by 10.114.71.114 with HTTP; Fri, 13 Nov 2015 16:33:08 -0800 (PST) Date: Fri, 13 Nov 2015 19:33:08 -0500 Message-ID: Subject: [PATCH] g++.dg/init/vbase1.C and g++.dg/cpp/ucn-1.C From: David Edelsohn To: GCC Patches , Ramana Radhakrishnan No RISC architecture can store directly to MEM, so the expected RTL in g++.dg/init/vbase1.C is wrong. I am adding XFAIL for PowerPC. This probably should be disabled for ARM and other RISC architectures. Dollar sign is not a valid identifier on AIX, so g++.dg/cpp/ucn-1.C will produce an additional error on AIX. * g++.dg/init/vbase1.C: XFAIL powerpc*-*-*. * g++.dg/cpp/ucn-1.C: Expect error for dollar sign identifier on AIX. Thanks, David U"\uD800"; // { dg-error "not a valid universal character" } } Index: init/vbase1.C =================================================================== --- init/vbase1.C (revision 230366) +++ init/vbase1.C (working copy) @@ -42,4 +42,4 @@ // Verify that the SubB() mem-initializer is storing 0 directly into // this->D.whatever rather than into a stack temp that is then copied into the // base field. -// { dg-final { scan-rtl-dump "set \[^\n\]*\n\[^\n\]*this\[^\n\]*\n\[^\n\]*const_int 0" "expand" } } +// { dg-final { scan-rtl-dump "set \[^\n\]*\n\[^\n\]*this\[^\n\]*\n\[^\n\]*const_int 0" "expand" { xfail { powerpc*-*-* } } } } Index: cpp/ucn-1.C =================================================================== --- cpp/ucn-1.C (revision 230366) +++ cpp/ucn-1.C (working copy) @@ -7,8 +7,9 @@ "\u0041"; // 'A' UCN is OK in string literal '\u0041'; // also OK in character literal - int c\u0041c; // { dg-error "not valid in an identifier" } - int c\u0024c; // $ is OK; not part of basic source char set + int c\u0041c; // { dg-error "not valid in an identifier" } + // $ is OK on most targets; not part of basic source char set + int c\u0024c; // { dg-error "not valid in an identifier" { target { powerpc-ibm-aix* } } }