From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13765 invoked by alias); 14 Jul 2009 18:30:43 -0000 Received: (qmail 13754 invoked by uid 22791); 14 Jul 2009 18:30:41 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,MEDICAL_SUBJECT,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f198.google.com (HELO mail-vw0-f198.google.com) (209.85.212.198) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Jul 2009 18:30:33 +0000 Received: by vwj36 with SMTP id 36so2637033vwj.0 for ; Tue, 14 Jul 2009 11:30:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.95.194 with SMTP id e2mr9579201vcn.65.1247596231445; Tue, 14 Jul 2009 11:30:31 -0700 (PDT) Date: Tue, 14 Jul 2009 18:30:00 -0000 Message-ID: Subject: Adding constraints.md to my port From: Jean Christophe Beyler To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00252.txt.bz2 Dear all, I'm continuing this port and have run into something strange, if I add a constraints.md file with only this: (define_constraint "I" "A signed 16-bit constant (for arithmetic instructions)." (and (match_code "const_int") (match_test "SMALL_OPERAND (ival)"))) (Like one of the constraints from the mips port). And add a : (include "constraints.md") to my md file, I get these during the compilation: In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:40:1: warning: "CONSTRAINT_LEN" redefined In file included from ./tm.h:6, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: /home/toto/gcc-4.3.2/gcc/defaults.h:797:1: warning: this is the location of the previous definition In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:42:1: warning: "REG_CLASS_FROM_CONSTRAINT" redefined In file included from ./tm.h:6, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: /home/toto/gcc-4.3.2/gcc/defaults.h:810:1: warning: this is the location of the previous definition In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:44:1: warning: "CONST_OK_FOR_CONSTRAINT_P" redefined In file included from ./tm.h:6, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: /home/toto/gcc-4.3.2/gcc/defaults.h:801:1: warning: this is the location of the previous definition In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:47:1: warning: "CONST_DOUBLE_OK_FOR_CONSTRAINT_P" redefined In file included from ./tm.h:6, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: /home/toto/gcc-4.3.2/gcc/defaults.h:805:1: warning: this is the location of the previous definition In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:49:1: warning: "EXTRA_MEMORY_CONSTRAINT" redefined In file included from ./tm.h:6, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:24: /home/toto/gcc-4.3.2/gcc/defaults.h:781:1: warning: this is the location of the previous definition In file included from ./tm_p.h:5, from /home/toto/gcc-4.3.2/gcc/c-pragma.c:35: ./tm-preds.h:51:1: warning: "EXTRA_ADDRESS_CONSTRAINT" redefined Any ideas why this happens when I add a constraint to my machine description? As always, thank you very much for your time, Jean Christophe Beyler