From patchwork Sun Oct 24 19:17:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 69046 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 19FD9B6F07 for ; Mon, 25 Oct 2010 06:25:40 +1100 (EST) Received: (qmail 2324 invoked by alias); 24 Oct 2010 19:25:38 -0000 Received: (qmail 2280 invoked by uid 22791); 24 Oct 2010 19:25:38 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 19:25:23 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 1BAC7CB01D4 for ; Sun, 24 Oct 2010 21:25:21 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jErJ7ENiQQLO for ; Sun, 24 Oct 2010 21:25:21 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id E9F61CB027C for ; Sun, 24 Oct 2010 21:25:20 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Fix g++.dg/debug/nullptr01.C on the SPARC Date: Sun, 24 Oct 2010 21:17:14 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201010242117.15195.ebotcazou@adacore.com> 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 The back-end needs to cope with the newly introduced NULLPTR_TYPE. Tested on sparc-sun-solaris2.8, applied on the mainline. 2010-10-24 Eric Botcazou * config/sparc/sparc.c (sparc_type_code) : New case. Index: config/sparc/sparc.c =================================================================== --- config/sparc/sparc.c (revision 165881) +++ config/sparc/sparc.c (working copy) @@ -7729,7 +7729,8 @@ sparc_type_code (register tree type) case VECTOR_TYPE: case BOOLEAN_TYPE: /* Boolean truth value type. */ - case LANG_TYPE: /* ? */ + case LANG_TYPE: + case NULLPTR_TYPE: return qualifiers; default: