From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2869 invoked by alias); 26 Jan 2011 22:02:25 -0000 Received: (qmail 2859 invoked by uid 22791); 26 Jan 2011 22:02:23 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Jan 2011 22:02:19 +0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs' X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 26 Jan 2011 22:12:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg02895.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467 --- Comment #8 from Joel Sherrill 2011-01-26 22:01:56 UTC --- (In reply to comment #7) > > Is targext.c really supposed to be part of LIBGNAT_SRCS for the target or is > > this just a host side compiler helper? > > Unfortunately the former. The symbols defined in targext.c are included by > s-os_lib.adb, which is renamed to g-os_lib.adb for the library. > > Does the following patch work? It appears to. My build tree now has these copies of targext.o. I think you can commit this and close this one. $ find b-gccada-mips/ -name targext.o b-gccada-mips/gcc/ada/rts_mips32_soft-float/targext.o b-gccada-mips/gcc/ada/rts_mips3_el_soft-float/targext.o b-gccada-mips/gcc/ada/targext.o b-gccada-mips/gcc/ada/tools/targext.o > Index: targext.c > =================================================================== > --- targext.c (revision 169285) > +++ targext.c (working copy) > @@ -33,8 +33,13 @@ > /* extension for object and executable files. It is used by the compiler, */ > /* binder and tools. */ > > +#ifdef IN_RTS > +#include "tconfig.h" > +#include "tsystem.h" > +#else > #include "config.h" > #include "system.h" > +#endif > #include "coretypes.h" > #include "tm.h"