From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28953 invoked by alias); 24 Oct 2011 08:09:47 -0000 Received: (qmail 28934 invoked by uid 22791); 24 Oct 2011 08:09:42 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Oct 2011 08:09:24 +0000 Received: by iafi7 with SMTP id i7so8488831iaf.20 for ; Mon, 24 Oct 2011 01:09:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.151.4 with SMTP id c4mr39780079icw.39.1319443763901; Mon, 24 Oct 2011 01:09:23 -0700 (PDT) Received: by 10.42.239.67 with HTTP; Mon, 24 Oct 2011 01:09:23 -0700 (PDT) Date: Mon, 24 Oct 2011 08:09:00 -0000 Message-ID: Subject: Constrainst for individual registers From: =?UTF-8?B?15DXmdec15nXlCDXnNeh15XXl9eZ158=?= To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00200.txt.bz2 Hi, I'm doing some modifections to the avr backend to suit my needs. I would like to add new constrainst for individual registers to use in inline assembly blocks and i was wondering what is the correct way of doing this? in gcc-4.5, i've added a new class for each register to reg_class, REG_CLASS_NAMES and REG_CLASS_CONTENTS, made a need constrainst for each register using its class and it worked as expected. i tried to do the same in gcc-4.7 and i got: internal compiler error: in find_costs_and_classes, at ira-costs.c:1704. So i was wondering whether i did the wrong thing or just forgot to update some target hook. Thanks, Ilya.