From patchwork Thu Apr 2 20:49:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 457786 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 82F201400DE for ; Fri, 3 Apr 2015 07:49:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wUAwq9GG; dkim-adsp=none (unprotected policy); 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:references:mime-version :content-type:content-transfer-encoding:in-reply-to; q=dns; s= default; b=AqLagm9/uJNZ1h7KE7eNQ7Tt6o49zdycyj4osnoM/lvZ2Yn+sEx77 Q1BWGIjB3CcSlL9uq4qzP2rVZFV4SFPzfe1hpOrIqLmWU9dLjMWU0QAR5iPqfEKj zP0jY/zY2cIU2bLhlgpVIot7gY1Ip+QWYL5+XKusrO9qZhkH2eRcZU= 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:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=default; bh=tV9OgYBSciNyiE0QjpawyCxEugE=; b=wUAwq9GGr1VCX0O9I0o0RsCECTt7 kA/EUKAcYD6EsvYi86xe8k1JxQRdT8AiWyF4rUocD6eS9KPsQrwbEXXqNCU5CYg/ kLx6zhoV7uHBUYPQGft+/YdKJxBpsdaMezI+ysWAc2qc8kA/gMT+9cacfU6J13Av kJY86a69JCCB5iQ= Received: (qmail 9747 invoked by alias); 2 Apr 2015 20:49:32 -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 9727 invoked by uid 89); 2 Apr 2015 20:49:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f45.google.com Received: from mail-wg0-f45.google.com (HELO mail-wg0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 02 Apr 2015 20:49:30 +0000 Received: by wgra20 with SMTP id a20so96386096wgr.3 for ; Thu, 02 Apr 2015 13:49:27 -0700 (PDT) X-Received: by 10.194.24.103 with SMTP id t7mr95924370wjf.15.1428007767237; Thu, 02 Apr 2015 13:49:27 -0700 (PDT) Received: from s42.loc (85-127-9-55.dynamic.xdsl-line.inode.at. [85.127.9.55]) by mx.google.com with ESMTPSA id pa4sm8775124wjb.11.2015.04.02.13.49.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 Apr 2015 13:49:26 -0700 (PDT) Received: from cow by s42.loc with local (Exim 4.80) (envelope-from ) id 1Ydm3J-0006Kj-6v; Thu, 02 Apr 2015 22:49:25 +0200 Date: Thu, 2 Apr 2015 22:49:25 +0200 From: Bernhard Reutner-Fischer To: Bernd Schmidt , Jie Zhang Cc: GCC Patches Subject: [PATCH, c6x] handle unk_isa in TARGET_CPU_CPP_BUILTINS Message-ID: <20150402204925.GA24017@mx.loc> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes On Wed, Apr 01, 2015 at 11:37:41PM +0200, Bernhard Reutner-Fischer wrote: >Bernd, > >same for c6x for unk_isa, fwiw. Attached. Ok for trunk for the c6x bits? Ok for trunk for the bfin bits? thanks, > >thanks, > >On 1 April 2015 at 23:34, Bernhard Reutner-Fischer > wrote: >> Hi, >> >> gcc/c-family/c-cppbuiltin.c >> In file included from ./tm.h:21:0, >> from >> ../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c:23: >> ../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c: >> In function ‘void c_cpp_builtins(cpp_reader*)’: >> ../../../../../../home/me/src/gcc-5.0.mine/gcc/config/bfin/bfin.h:43:14: >> error: enumeration value ‘BFIN_CPU_UNKNOWN’ not handled in switch >> [-Werror=switch] >> switch (bfin_cpu_type) \ >> ^ >> ../../../../../../home/me/src/gcc-5.0.mine/gcc/c-family/c-cppbuiltin.c:1243:3: >> note: in expansion of macro ‘TARGET_CPU_CPP_BUILTINS’ >> TARGET_CPU_CPP_BUILTINS (); >> ^ >> cc1plus: all warnings being treated as errors >> make[2]: *** [c-family/c-cppbuiltin.o] Error 1 >> >> gcc/ChangeLog: >> >> 2015-04-01 Bernhard Reutner-Fischer >> >> * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN. From da0fd9e46efb975f8e5d8854f221689ff8808bc5 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 1 Apr 2015 23:42:08 +0200 Subject: [PATCH 6/6] handle c6x unk_isa in TARGET_CPU_CPP_BUILTINS gcc/ChangeLog: 2015-04-01 Bernhard Reutner-Fischer * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa. Signed-off-by: Bernhard Reutner-Fischer --- gcc/config/c6x/c6x.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/c6x/c6x.h b/gcc/config/c6x/c6x.h index 58a7ac6..9b3fcfb 100644 --- a/gcc/config/c6x/c6x.h +++ b/gcc/config/c6x/c6x.h @@ -84,6 +84,8 @@ extern c6x_cpu_t c6x_arch; \ switch (c6x_arch) \ { \ + case unk_isa: \ + break; \ case C6X_CPU_C62X: \ builtin_define ("_TMS320C6200"); \ break; \ -- 1.7.10.4