From patchwork Wed Jul 29 21:06:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 501845 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 2578314030D for ; Thu, 30 Jul 2015 07:07:03 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=n5BpPC2H; 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=heoecG3TLlrAFGWCP6z36Ss1gelcD /q4MknJ/Y0mr8S807BP169Y2MRwQFwQeuNiRg11RS4R81SqrS4Rp1RfMs2g6RssU r5sWz7b4+1KoxmZ4+/s1hQimK2g4Hmt64rmoxTha6kr5AfTGxl4jSBb0t05uKgRs HGC/AXf8s3+eCQ= 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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=XkPAUTtl51N5e///i8vkNoOs6Ek=; b=n5B pPC2HpMGZmKGbFcotdpy3Po/sBCN9mmg+SP0xZL0lgFtOJUjAo1IVebWCKOG5LK7 Y39+FjdT747CASUsit/w1z8L7nsHb9DAEFkEcIksbi5JWkaOCiQAJtVqz9lPvv2z zEuQEOkzlNzPmTvLqpoC67X1Cx4nGOubtGWUr3vI= Received: (qmail 55351 invoked by alias); 29 Jul 2015 21:06:56 -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 55341 invoked by uid 89); 29 Jul 2015 21:06:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga14.intel.com Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Jul 2015 21:06:55 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 29 Jul 2015 14:06:53 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.52]) by orsmga001.jf.intel.com with ESMTP; 29 Jul 2015 14:06:53 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id 48FFEC3825; Wed, 29 Jul 2015 14:06:53 -0700 (PDT) Date: Wed, 29 Jul 2015 14:06:53 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: [committed, PATCH] Define DBX_REGISTER_NUMBER for IA MCU Message-ID: <20150729210653.GA28970@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Since IA MCU uses the same debug register map as Linux/x86, we copy DBX_REGISTER_NUMBER together with TARGET_ASM_FILE_START_FILE_DIRECTIVE and ASM_COMMENT_START from i386/gnu-user.h to i386/iamcu.h. * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE): New. Copied from config/i386/gnu-user.h. (ASM_COMMENT_START): Likewise. (DBX_REGISTER_NUMBER): Likewise. --- gcc/config/i386/iamcu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gcc/config/i386/iamcu.h b/gcc/config/i386/iamcu.h index 1e2fbe4..c20c2db 100644 --- a/gcc/config/i386/iamcu.h +++ b/gcc/config/i386/iamcu.h @@ -26,6 +26,17 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #undef TARGET_SUBTARGET_DEFAULT #define TARGET_SUBTARGET_DEFAULT MASK_IAMCU +/* Output at beginning of assembler file. */ +/* The .file command should always begin the output. */ +#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true + +#undef ASM_COMMENT_START +#define ASM_COMMENT_START "#" + +#undef DBX_REGISTER_NUMBER +#define DBX_REGISTER_NUMBER(n) \ + (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n]) + #undef ASM_SPEC #define ASM_SPEC "--32 -march=iamcu"