From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28448 invoked by alias); 17 Feb 2011 10:42:02 -0000 Received: (qmail 28438 invoked by uid 22791); 17 Feb 2011 10:42:01 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nwd2mail11.analog.com (HELO nwd2mail11.analog.com) (137.71.25.57) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Feb 2011 10:41:57 +0000 Received: from nwd2hubcas1.ad.analog.com ([10.64.73.29]) by nwd2mail11.analog.com with ESMTP; 17 Feb 2011 05:41:56 -0500 Received: from limkHubCAS2.ad.analog.com (10.32.51.141) by NWD2HUBCAS1.ad.analog.com (10.64.73.29) with Microsoft SMTP Server (TLS) id 8.1.358.0; Thu, 17 Feb 2011 05:41:56 -0500 Received: from LIMKCMBX1.ad.analog.com ([169.254.1.70]) by limkHubCAS2.ad.analog.com ([10.32.51.141]) with mapi; Thu, 17 Feb 2011 10:41:54 +0000 From: "Henderson, Stuart" To: Ian Lance Taylor CC: "gcc-help@gcc.gnu.org" Date: Thu, 17 Feb 2011 11:37:00 -0000 Subject: RE: Problem cross-compiling trunk for bfin Message-ID: <05E9E85E39C35B4D96ED3A3190E35A109CAEF87A0F@LIMKCMBX1.ad.analog.com> References: <05E9E85E39C35B4D96ED3A3190E35A109CAEF87849@LIMKCMBX1.ad.analog.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes 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-02/txt/msg00255.txt.bz2 Bug 47779 has been added to the database Thanks Ian. Stu -----Original Message----- From: Ian Lance Taylor [mailto:iant@google.com] Sent: 16 February 2011 23:00 To: Henderson, Stuart Cc: gcc-help@gcc.gnu.org Subject: Re: Problem cross-compiling trunk for bfin "Henderson, Stuart" writes: > r160579 | rsandifo | 2010-06-10 21:23:43 +0100 (Thu, 10 Jun 2010) | 7 lin= es > gcc/ > * configure.ac (tm_include_list): Add insn-constants.h. > * configure: Regenerate. > * Makefile.in (GTM_H): Move insn-constants.h here from... > (TM_H): ...here. > * mkconfig.sh: Remove special handling for insn-constants.h. > > The change moves the inclusion of "insn-constants.h" from being condition= al on: > #if defined IN_GCC && !defined GENERATOR_FILE && !defined USED_FOR_TARGET > to just: > #if defined IN_GCC > > This causes insn-constants.h to be included here which defines various re= gister macros that can then clash with the enum (of registers in the gregse= t_t array) in uClibc's sys/ucontext.h. > > Although I've only hit this with bfin, it seems like it could easily hit = other architectures. Not having a deep enough understanding of the gcc eco= system nor why the change was made, I was hoping someone could explain the = best way to resolve this? I doubt there is a clean way to solve this. Probably the simplest way is to rename the conflicting constants in gcc/config/bfin/*. Please open a bug report about this. See http://gcc.gnu.org/bugs/ . Thanks. Ian