Commit 5340bbea by Eric Christopher Committed by Eric Christopher

Makefile.in (site.exp): Add libiconv variable definition.

2004-03-08  Eric Christopher  <echristo@redhat.com>

	* Makefile.in (site.exp): Add libiconv variable definition.

2004-03-08  Eric Christopher  <echristo@redhat.com>

	* * lib/target-supports.exp: Enable libiconv in test
	compilation.  Fix up error checking.

From-SVN: r79148
parent 3beb1315
2004-03-08 Eric Christopher <echristo@redhat.com>
* Makefile.in (site.exp): Add libiconv variable definition.
2004-03-09 Hans-Peter Nilsson <hp@axis.com> 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
* configure: Regenerate for config/accross.m4 correction. * configure: Regenerate for config/accross.m4 correction.
...@@ -45,7 +49,7 @@ ...@@ -45,7 +49,7 @@
and MASK_STRING. and MASK_STRING.
2004-03-07 Aldy Hernandez <aldyh@redhat.com> 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
for little endian. for little endian.
("ashrdi3_no_power"): Disable for little endian. ("ashrdi3_no_power"): Disable for little endian.
......
...@@ -90,7 +90,7 @@ objdir = @objdir@ ...@@ -90,7 +90,7 @@ objdir = @objdir@
# Directory where sources are, from where we are. # Directory where sources are, from where we are.
VPATH = @srcdir@ VPATH = @srcdir@
# We define a vpath for the sources of the .texi files here because they # We define a vpath for the sources of the .texi files here because they
# are split between multiple directories and we would rather use one implicit # are split between multiple directories and we would rather use one implicit
# pattern rule for everything. # pattern rule for everything.
# This vpath could be extended within the Make-lang fragments. # This vpath could be extended within the Make-lang fragments.
...@@ -1288,7 +1288,7 @@ gcc.srcextra: c-parse.y c-parse.c gengtype-lex.c gengtype-yacc.c gengtype-yacc.h ...@@ -1288,7 +1288,7 @@ gcc.srcextra: c-parse.y c-parse.c gengtype-lex.c gengtype-yacc.c gengtype-yacc.h
-cp -p $^ $(srcdir) -cp -p $^ $(srcdir)
c-parse.c: c-parse.y c-parse.c: c-parse.y
-$(BISON) $(BISONFLAGS) -o $@ $< -$(BISON) $(BISONFLAGS) -o $@ $<
c-parse.y: c-parse.in c-parse.y: c-parse.in
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
...@@ -2670,7 +2670,7 @@ TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi ...@@ -2670,7 +2670,7 @@ TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi
TEXI_CPPINT_FILES = cppinternals.texi TEXI_CPPINT_FILES = cppinternals.texi
# The *.1, *.7, *.info, and *.dvi files are being generated from implicit # The *.1, *.7, *.info, and *.dvi files are being generated from implicit
# patterns. To use them, put each of the specific targets with its # patterns. To use them, put each of the specific targets with its
# specific dependencies but no build commands. # specific dependencies but no build commands.
...@@ -2709,7 +2709,7 @@ doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES) ...@@ -2709,7 +2709,7 @@ doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7 MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7
generated-manpages: man generated-manpages: man
man: $(MANFILES) lang.man @GENINSRC@ srcman lang.srcman man: $(MANFILES) lang.man @GENINSRC@ srcman lang.srcman
...@@ -2939,7 +2939,7 @@ install-common: native $(EXTRA_PARTS) lang.install-common installdirs ...@@ -2939,7 +2939,7 @@ install-common: native $(EXTRA_PARTS) lang.install-common installdirs
fi fi
$(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME) $(INSTALL_SCRIPT) gccbug $(DESTDIR)$(bindir)/$(GCCBUG_INSTALL_NAME)
# Install the driver program as $(target_noncanonical)-gcc, # Install the driver program as $(target_noncanonical)-gcc,
# $(target_noncanonical)-gcc-$(version) # $(target_noncanonical)-gcc-$(version)
# and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc. # and also as either gcc (if native) or $(gcc_tooldir)/bin/gcc.
install-driver: installdirs xgcc$(exeext) install-driver: installdirs xgcc$(exeext)
...@@ -3003,17 +3003,17 @@ $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 ...@@ -3003,17 +3003,17 @@ $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7
$(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext): doc/gcc.1 $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext): doc/gcc.1
-rm -f $@ -rm -f $@
-$(INSTALL_DATA) $< $@ -$(INSTALL_DATA) $< $@
-chmod a-x $@ -chmod a-x $@
$(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext): doc/cpp.1 $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext): doc/cpp.1
-rm -f $@ -rm -f $@
-$(INSTALL_DATA) $< $@ -$(INSTALL_DATA) $< $@
-chmod a-x $@ -chmod a-x $@
$(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext): doc/gcov.1 $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext): doc/gcov.1
-rm -f $@ -rm -f $@
-$(INSTALL_DATA) $< $@ -$(INSTALL_DATA) $< $@
-chmod a-x $@ -chmod a-x $@
# Install the library. # Install the library.
...@@ -3165,6 +3165,7 @@ site.exp: ./config.status Makefile ...@@ -3165,6 +3165,7 @@ site.exp: ./config.status Makefile
@echo "set build_triplet $(build)" >> ./tmp0 @echo "set build_triplet $(build)" >> ./tmp0
@echo "set target_triplet $(target)" >> ./tmp0 @echo "set target_triplet $(target)" >> ./tmp0
@echo "set target_alias $(target_noncanonical)" >> ./tmp0 @echo "set target_alias $(target_noncanonical)" >> ./tmp0
@echo "set libiconv \"$(LIBICONV)\"" >> ./tmp0
# CFLAGS is set even though it's empty to show we reserve the right to set it. # CFLAGS is set even though it's empty to show we reserve the right to set it.
@echo "set CFLAGS \"\"" >> ./tmp0 @echo "set CFLAGS \"\"" >> ./tmp0
@echo "set CXXFLAGS \"\"" >> ./tmp0 @echo "set CXXFLAGS \"\"" >> ./tmp0
...@@ -3365,12 +3366,12 @@ STAGE2_FLAGS_TO_PASS = \ ...@@ -3365,12 +3366,12 @@ STAGE2_FLAGS_TO_PASS = \
WERROR="@WERROR@" \ WERROR="@WERROR@" \
STAGEPROFILE_FLAGS_TO_PASS = \ STAGEPROFILE_FLAGS_TO_PASS = \
CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" CFLAGS="$(BOOT_CFLAGS) -fprofile-generate"
# Files never linked into the final executable produces warnings about missing # Files never linked into the final executable produces warnings about missing
# profile. # profile.
STAGEFEEDBACK_FLAGS_TO_PASS = \ STAGEFEEDBACK_FLAGS_TO_PASS = \
CFLAGS="$(BOOT_CFLAGS) -fprofile-use" CFLAGS="$(BOOT_CFLAGS) -fprofile-use"
# Only build the C compiler for stage1, because that is the only one that # Only build the C compiler for stage1, because that is the only one that
# we can guarantee will build with the native compiler, and also it is the # we can guarantee will build with the native compiler, and also it is the
......
2004-03-08 Eric Christopher <echristo@redhat.com>
* * lib/target-supports.exp: Enable libiconv in test
compilation. Fix up error checking.
2004-03-08 Roger Sayle <roger@eyesopen.com> 2004-03-08 Roger Sayle <roger@eyesopen.com>
PR middle-end/14289 PR middle-end/14289
......
...@@ -216,6 +216,7 @@ proc check_profiling_available { test_what } { ...@@ -216,6 +216,7 @@ proc check_profiling_available { test_what } {
proc check_iconv_available { test_what } { proc check_iconv_available { test_what } {
global tool global tool
global libiconv
set result "" set result ""
...@@ -229,15 +230,19 @@ proc check_iconv_available { test_what } { ...@@ -229,15 +230,19 @@ proc check_iconv_available { test_what } {
puts $f "return 0;\n}" puts $f "return 0;\n}"
close $f close $f
set lines [${tool}_target_compile "tmp.c" "tmp.x" executable ""] set lines [${tool}_target_compile "tmp.c" "tmp.x" executable "libs=$libiconv" ]
set result [${tool}_load "./tmp.x" "" ""] if [string match "" $lines] then {
set status [lindex $result 0]; # No error messages, everything is OK.
verbose "status is <$status>" set result [${tool}_load "./tmp.x" "" ""]
set status [lindex $result 0];
if { $status == "pass" } then { verbose "status is <$status>"
return 1
if { $status == "pass" } then {
return 1
}
} }
return 0 return 0
......
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