configure.ac: Don't add target-libmudflap to noconfigdirs for bfin*-*-uclinux* targets.

* configure.ac: Don't add target-libmudflap to noconfigdirs for
	bfin*-*-uclinux* targets.
	* configure: Regenerate.

	* gcc/config/bfin/uclinux.h (MFWRAP_SPEC): New.

From-SVN: r125717
This commit is contained in:
Bernd Schmidt 2007-06-14 17:10:54 +00:00 committed by Bernd Schmidt
parent aa2480c5fb
commit 3fcfad7607
5 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
* configure.ac: Don't add target-libmudflap to noconfigdirs for
bfin*-*-uclinux* targets.
* configure: Regenerate.
2007-06-14 Ian Lance Taylor <iant@google.com> 2007-06-14 Ian Lance Taylor <iant@google.com>
* MAINTAINERS: Add myself as non-algorithmic global write * MAINTAINERS: Add myself as non-algorithmic global write

2
configure vendored
View File

@ -2075,7 +2075,7 @@ esac
# Disable libmudflap on some systems. # Disable libmudflap on some systems.
if test x$enable_libmudflap = x ; then if test x$enable_libmudflap = x ; then
case "${target}" in case "${target}" in
*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
# Enable libmudflap by default in GNU and friends. # Enable libmudflap by default in GNU and friends.
;; ;;
*-*-freebsd*) *-*-freebsd*)

View File

@ -364,7 +364,7 @@ esac
# Disable libmudflap on some systems. # Disable libmudflap on some systems.
if test x$enable_libmudflap = x ; then if test x$enable_libmudflap = x ; then
case "${target}" in case "${target}" in
*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
# Enable libmudflap by default in GNU and friends. # Enable libmudflap by default in GNU and friends.
;; ;;
*-*-freebsd*) *-*-freebsd*)

View File

@ -1,3 +1,7 @@
2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
* config/bfin/uclinux.h (MFWRAP_SPEC): New.
2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk> 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR target/32341 PR target/32341

View File

@ -43,3 +43,11 @@ asm (TEXT_SECTION_ASM_OP);
} \ } \
} \ } \
while (0) while (0)
/* Like the definition in gcc.c, but for purposes of uClinux, every link is
static. */
#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \
--wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\
--wrap=mmap --wrap=munmap --wrap=alloca\
%{fmudflapth: --wrap=pthread_create\
}} %{fmudflap|fmudflapth: --wrap=main}"