This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [PATCH 11/23] sim/erc32: use AC_C_BIGENDIAN to probe for host endian.


On 17 Feb 2015 08:44, Jiri Gaisler wrote:
> Use  AC_C_BIGENDIAN to probe for host endian during build, rather

the sim tree provides SIM_AC_OPTION_HOSTENDIAN which you should use instead.  
then you can use WITH_HOST_BYTE_ORDER in the source and compare it to 
LITTLE_ENDIAN or BIG_ENDIAN.  just include <sim-config.h> for it.

> --- a/sim/erc32/Makefile.in
> +++ b/sim/erc32/Makefile.in
>  
>  # Circumvent Sun Make bug with VPATH.
> -erc32.o: erc32.c sis.h end.h
> -exec.o: exec.c sis.h end.h
> -float.o: float.c sis.h end.h
> -func.o: func.c sis.h end.h
> -help.o: help.c sis.h end.h
> -interf.o: interf.c sis.h end.h 
> -sis.o: sis.c sis.h end.h
> +erc32.o: erc32.c sis.h
> +exec.o: exec.c sis.h
> +float.o: float.c sis.h
> +func.o: func.c sis.h
> +help.o: help.c sis.h
> +interf.o: interf.c sis.h
> +sis.o: sis.c sis.h

you should be able to delete all this stuff.  the build system will generate the 
deps for you now.
-mike

Attachment: signature.asc
Description: Digital signature


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