Commit d19bca38 by Paolo Bonzini

configure.in: Select appropriate fragments for PowerPC/AIX.

2005-12-19  Paolo Bonzini  <bonzini@gnu.org>

	* configure.in: Select appropriate fragments for PowerPC/AIX.
	* configure: Regenerate.

	* Makefile.def (flags_to_pass): Add ADAFLAGS, BOOT_ADAFLAGS,
	BOOT_CFLAGS, BOOT_LDFLAGS.
	* Makefile.tpl (POSTSTAGE1_FLAGS_TO_PASS): Handle BOOT_ADAFLAGS,
	BOOT_CFLAGS, BOOT_LDFLAGS.
	(TARGET_FLAGS_TO_PASS): Handle ADAFLAGS_FOR_TARGET.
	(stage[+id+]-bubble): Pass flags recursively to the comparison target.
	(stage): Fail if we cannot complete the work.
	* Makefile.in: Regenerate.

From-SVN: r108793
parent c2fc5456
...@@ -205,7 +205,11 @@ flags_to_pass = { flag= SHELL ; }; ...@@ -205,7 +205,11 @@ flags_to_pass = { flag= SHELL ; };
flags_to_pass = { flag= YACC ; }; flags_to_pass = { flag= YACC ; };
// Host tools // Host tools
flags_to_pass = { flag= ADAFLAGS ; };
flags_to_pass = { flag= AR_FLAGS ; }; flags_to_pass = { flag= AR_FLAGS ; };
flags_to_pass = { flag= BOOT_ADAFLAGS ; };
flags_to_pass = { flag= BOOT_CFLAGS ; };
flags_to_pass = { flag= BOOT_LDFLAGS ; };
flags_to_pass = { flag= CFLAGS ; }; flags_to_pass = { flag= CFLAGS ; };
flags_to_pass = { flag= CXXFLAGS ; }; flags_to_pass = { flag= CXXFLAGS ; };
flags_to_pass = { flag= LDFLAGS ; }; flags_to_pass = { flag= LDFLAGS ; };
...@@ -213,6 +217,7 @@ flags_to_pass = { flag= LIBCFLAGS ; }; ...@@ -213,6 +217,7 @@ flags_to_pass = { flag= LIBCFLAGS ; };
flags_to_pass = { flag= LIBCXXFLAGS ; }; flags_to_pass = { flag= LIBCXXFLAGS ; };
// Target tools // Target tools
flags_to_pass = { flag= ADAFLAGS_FOR_TARGET ; };
flags_to_pass = { flag= AR_FOR_TARGET ; }; flags_to_pass = { flag= AR_FOR_TARGET ; };
flags_to_pass = { flag= AS_FOR_TARGET ; }; flags_to_pass = { flag= AS_FOR_TARGET ; };
flags_to_pass = { flag= CC_FOR_TARGET ; }; flags_to_pass = { flag= CC_FOR_TARGET ; };
......
...@@ -252,6 +252,8 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@ ...@@ -252,6 +252,8 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
# Flags to pass to stage2 and later makes. They are defined # Flags to pass to stage2 and later makes. They are defined
# here so that they can be overridden by Makefile fragments. # here so that they can be overridden by Makefile fragments.
BOOT_CFLAGS= -g -O2 BOOT_CFLAGS= -g -O2
BOOT_ADAFLAGS=
BOOT_LDFLAGS=
BISON = @BISON@ BISON = @BISON@
YACC = @YACC@ YACC = @YACC@
...@@ -431,12 +433,17 @@ BASE_FLAGS_TO_PASS = \ ...@@ -431,12 +433,17 @@ BASE_FLAGS_TO_PASS = \
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \ "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
"SHELL=$(SHELL)" \ "SHELL=$(SHELL)" \
"YACC=$(YACC)" \ "YACC=$(YACC)" \
"ADAFLAGS=$(ADAFLAGS)" \
"AR_FLAGS=$(AR_FLAGS)" \ "AR_FLAGS=$(AR_FLAGS)" \
"BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)" \
"BOOT_CFLAGS=$(BOOT_CFLAGS)" \
"BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
"CFLAGS=$(CFLAGS)" \ "CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \ "CXXFLAGS=$(CXXFLAGS)" \
"LDFLAGS=$(LDFLAGS)" \ "LDFLAGS=$(LDFLAGS)" \
"LIBCFLAGS=$(LIBCFLAGS)" \ "LIBCFLAGS=$(LIBCFLAGS)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \ "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
"ADAFLAGS_FOR_TARGET=$(ADAFLAGS_FOR_TARGET)" \
"AR_FOR_TARGET=$(AR_FOR_TARGET)" \ "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
"AS_FOR_TARGET=$(AS_FOR_TARGET)" \ "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
"CC_FOR_TARGET=$(CC_FOR_TARGET)" \ "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
...@@ -497,6 +504,7 @@ X11_FLAGS_TO_PASS = \ ...@@ -497,6 +504,7 @@ X11_FLAGS_TO_PASS = \
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
# COMPILER_ prefixed variables are not passed down so we expand them here. # COMPILER_ prefixed variables are not passed down so we expand them here.
EXTRA_TARGET_FLAGS = \ EXTRA_TARGET_FLAGS = \
'ADAFLAGS=$$(ADAFLAGS_FOR_TARGET)' \
'AR=$$(AR_FOR_TARGET)' \ 'AR=$$(AR_FOR_TARGET)' \
'AS=$(COMPILER_AS_FOR_TARGET)' \ 'AS=$(COMPILER_AS_FOR_TARGET)' \
'CC=$$(CC_FOR_TARGET)' \ 'CC=$$(CC_FOR_TARGET)' \
...@@ -35667,7 +35675,7 @@ stage = : ...@@ -35667,7 +35675,7 @@ stage = :
@if gcc-bootstrap @if gcc-bootstrap
unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start
stage = [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
@endif gcc-bootstrap @endif gcc-bootstrap
.PHONY: unstage stage .PHONY: unstage stage
...@@ -35707,6 +35715,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \ ...@@ -35707,6 +35715,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
STAGE_PREFIX=$$r/prev-gcc/ \ STAGE_PREFIX=$$r/prev-gcc/ \
CFLAGS="$(BOOT_CFLAGS)" \ CFLAGS="$(BOOT_CFLAGS)" \
ADAFLAGS="$(BOOT_ADAFLAGS)" \
LDFLAGS="$(BOOT_LDFLAGS)" \
ADAC="\$$(CC)" ADAC="\$$(CC)"
# For stage 1: # For stage 1:
...@@ -36363,7 +36373,7 @@ stage3-bubble:: stage2-bubble ...@@ -36363,7 +36373,7 @@ stage3-bubble:: stage2-bubble
$(MAKE) stage3-start; \ $(MAKE) stage3-start; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
fi fi
$(MAKE) compare $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
.PHONY: all-stage3 clean-stage3 .PHONY: all-stage3 clean-stage3
do-clean: clean-stage3 do-clean: clean-stage3
...@@ -36647,7 +36657,7 @@ stage4-bubble:: stage3-bubble ...@@ -36647,7 +36657,7 @@ stage4-bubble:: stage3-bubble
$(MAKE) stage4-start; \ $(MAKE) stage4-start; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
fi fi
$(MAKE) compare3 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
.PHONY: all-stage4 clean-stage4 .PHONY: all-stage4 clean-stage4
do-clean: clean-stage4 do-clean: clean-stage4
...@@ -255,6 +255,8 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@ ...@@ -255,6 +255,8 @@ BUILD_PREFIX_1 = @BUILD_PREFIX_1@
# Flags to pass to stage2 and later makes. They are defined # Flags to pass to stage2 and later makes. They are defined
# here so that they can be overridden by Makefile fragments. # here so that they can be overridden by Makefile fragments.
BOOT_CFLAGS= -g -O2 BOOT_CFLAGS= -g -O2
BOOT_ADAFLAGS=
BOOT_LDFLAGS=
BISON = @BISON@ BISON = @BISON@
YACC = @YACC@ YACC = @YACC@
...@@ -429,6 +431,7 @@ X11_FLAGS_TO_PASS = \ ...@@ -429,6 +431,7 @@ X11_FLAGS_TO_PASS = \
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
# COMPILER_ prefixed variables are not passed down so we expand them here. # COMPILER_ prefixed variables are not passed down so we expand them here.
EXTRA_TARGET_FLAGS = \ EXTRA_TARGET_FLAGS = \
'ADAFLAGS=$$(ADAFLAGS_FOR_TARGET)' \
'AR=$$(AR_FOR_TARGET)' \ 'AR=$$(AR_FOR_TARGET)' \
'AS=$(COMPILER_AS_FOR_TARGET)' \ 'AS=$(COMPILER_AS_FOR_TARGET)' \
'CC=$$(CC_FOR_TARGET)' \ 'CC=$$(CC_FOR_TARGET)' \
...@@ -1212,7 +1215,7 @@ stage = : ...@@ -1212,7 +1215,7 @@ stage = :
@if gcc-bootstrap @if gcc-bootstrap
unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start
stage = [ -f stage_current ] && $(MAKE) `cat stage_current`-end || : stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
@endif gcc-bootstrap @endif gcc-bootstrap
.PHONY: unstage stage .PHONY: unstage stage
...@@ -1252,6 +1255,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \ ...@@ -1252,6 +1255,8 @@ POSTSTAGE1_FLAGS_TO_PASS = \
CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \ CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
STAGE_PREFIX=$$r/prev-gcc/ \ STAGE_PREFIX=$$r/prev-gcc/ \
CFLAGS="$(BOOT_CFLAGS)" \ CFLAGS="$(BOOT_CFLAGS)" \
ADAFLAGS="$(BOOT_ADAFLAGS)" \
LDFLAGS="$(BOOT_LDFLAGS)" \
ADAC="\$$(CC)" ADAC="\$$(CC)"
# For stage 1: # For stage 1:
...@@ -1319,7 +1324,7 @@ stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +] ...@@ -1319,7 +1324,7 @@ stage[+id+]-bubble:: [+ IF prev +]stage[+prev+]-bubble[+ ENDIF +][+IF lean +]
$(MAKE) stage[+id+]-start; \ $(MAKE) stage[+id+]-start; \
$(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage[+id+]; \ $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage[+id+]; \
fi[+ IF compare-target +] fi[+ IF compare-target +]
$(MAKE) [+compare-target+][+ ENDIF compare-target +] $(MAKE) $(RECURSE_FLAGS_TO_PASS) [+compare-target+][+ ENDIF compare-target +]
.PHONY: all-stage[+id+] clean-stage[+id+] .PHONY: all-stage[+id+] clean-stage[+id+]
do-clean: clean-stage[+id+] do-clean: clean-stage[+id+]
......
# Compile Ada files with minimal-toc. The primary focus is gnatlib, so
# that the library does not use nearly the entire TOC of applications
# until gnatlib is built as a shared library on AIX. Compiling the
# compiler with -mminimal-toc does not cause any harm.
BOOT_ADAFLAGS = -mminimal-toc
BOOT_LDFLAGS = -Wl,-bbigtoc
LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`
# Compile Ada files with minimal-toc. The primary focus is gnatlib, so
# that the library does not use nearly the entire TOC of applications
# until gnatlib is built as a shared library on AIX. Compiling the
# compiler with -mminimal-toc does not cause any harm.
ADAFLAGS_FOR_TARGET = -mminimal-toc
...@@ -967,6 +967,12 @@ case "${host}" in ...@@ -967,6 +967,12 @@ case "${host}" in
powerpc-*-darwin*) powerpc-*-darwin*)
host_makefile_frag="config/mh-ppc-darwin" host_makefile_frag="config/mh-ppc-darwin"
;; ;;
powerpc-*-aix*)
host_makefile_frag="config/mh-ppc-aix"
;;
rs6000-*-aix*)
host_makefile_frag="config/mh-ppc-aix"
;;
*-*-lynxos*) *-*-lynxos*)
# /bin/cc is less than useful for our purposes. Always use GCC # /bin/cc is less than useful for our purposes. Always use GCC
tentative_cc="/bin/gcc" tentative_cc="/bin/gcc"
...@@ -1513,6 +1519,7 @@ case "${target}" in ...@@ -1513,6 +1519,7 @@ case "${target}" in
# harmless if we're using GNU nm or ar. # harmless if we're using GNU nm or ar.
extra_arflags_for_target=" -X32_64" extra_arflags_for_target=" -X32_64"
extra_nmflags_for_target=" -B -X32_64" extra_nmflags_for_target=" -B -X32_64"
target_makefile_frag="config/mt-ppc-aix"
;; ;;
*-*-darwin*) *-*-darwin*)
# ranlib from Darwin requires the -c flag to look at common symbols. # ranlib from Darwin requires the -c flag to look at common symbols.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment