This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/47467] [4.6 Regression] hwint.h:239:3: error: implicit declaration of function 'abs'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47467

--- Comment #8 from Joel Sherrill <joel at gcc dot gnu.org> 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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]