This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs'
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 21:49:38 +0000
- Subject: [Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs'
- Auto-submitted: auto-generated
- References: <bug-47467-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot
| |gnu.org
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-01-26 21:49:12 UTC ---
> 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?
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"