From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24799 invoked by alias); 20 Dec 2007 14:08:50 -0000 Received: (qmail 24784 invoked by uid 22791); 20 Dec 2007 14:08:49 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Dec 2007 14:08:43 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A55B1981FC; Thu, 20 Dec 2007 14:08:41 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 9074E98150; Thu, 20 Dec 2007 14:08:41 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1J5M4m-0002FE-Ms; Thu, 20 Dec 2007 09:08:40 -0500 Date: Thu, 20 Dec 2007 15:24:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org Subject: Re: [patch 1/2] Recognize DFP types in casts. Message-ID: <20071220140840.GC7244@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , gdb-patches@sourceware.org References: <20071220054926.148275471@br.ibm.com> <20071220055106.979875076@br.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071220055106.979875076@br.ibm.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00336.txt.bz2 On Thu, Dec 20, 2007 at 03:49:27AM -0200, Thiago Jung Bauermann wrote: > This should logically be part of the next patch, but the C parser is > scary code and I don't feel very confident that this is indeed the > right way to do it. It works, though, and introduces no regressions. Do you need parser changes for this? "unsigned" is a C keyword, and a bit special (e.g. in combinations with "int"); but doesn't _Decimal32 act syntactically like a TYPENAME? Try following language_lookup_primitive_type_by_name around to c_language_arch_info (and cplus_language_arch_info). -- Daniel Jacobowitz CodeSourcery