Commit a1286ef5 by Zack Weinberg

gcc-version.m4: Delete.

config:
	* gcc-version.m4: Delete.
fastjar:
	* Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
	(BASEVER, DEVPHASE): New variables.
	(POD2MAN): Adjust setting of --release option.
	(fastjar.1, grepjar.1, gcc-vers.texi): New rules.
	* Makefile.in: Regenerate.
	* configure.ac: Do not invoke TL_AC_GCC_VERSION.
	* aclocal.m4, configure: Regenerate.
gcc:
	* BASE-VER, DATESTAMP, DEV-PHASE: New files.
	* Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
	(BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
	(BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
	(version): Define using $(BASEVER_c).
	(Makefile, config.status, build/gcov-iov.o): No longer depends on
	version.c.
	(version.o): Depend on version files; add custom generation command.
	(prefix.o): Define BASEVER on command line.
	(s-iov): Depend on version files; adjust command.
	(TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
	Add gcc-vers.texi.
	(gcc-vers.texi): New rule.
	(doc/%.info, doc/%.dvi): Add -I . to command line.
	(doc/gccinstall.dvi): Likewise.
	(PACKAGE): Delete.  All uses replaced with "gcc".
	* aclocal.m4: Do not include gcc-version.m4.
	* configure.ac: Do not invoke TL_AC_GCC_VERSION.
	Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
	Set is_release based on contents of DEV-PHASE.
	Set gcc_version based on contents of BASE-VER.
	Define WIN32_REGISTRY_KEY only if the user overrode the default.
	* config.in, configure: Regenerate.
	* gccbug.in: Determine version of GCC in use at runtime.
	* gcov-iov.c: Get version number and development phase from
	command line, not by including version.c.
	* intl.c: Replace all uses of PACKAGE with "gcc".
	* libada-mk.in: Delete unused "gcc_version" variable.
	* prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
	* version.c: (VERSUFFIX): New hook for redistributors; adjust
	commentary to match.
	(version_string): Put together from pieces.
	* config/alpha/x-vms: Do not use $(gcc_version).
	* config/i386/t-nwld: Likewise.
	* doc/include/gcc-common.texi: Include gcc-vers.texi for
	version-GCC and DEVELOPMENT.
gcc/ada:
	* Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
	(doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
	to dependencies.
gcc/fortran:
	* Make-lang.in (GFORTRAN_TEXI): Add gcc-vers.texi.
gcc/java:
	* Make-lang.in (TEXI_JAVA_FILES): Add gcc-vers.texi.
gcc/treelang:
	* Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
libstdc++-v3:
	* include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
	subdirectory.  Generate #define of __GLIBCXX__ from contents of
	that file.
	* include/Makefile.in: Regenerate.
	* include/bits/c++config: Do not define __GLIBCXX__.
maintainer-scripts:
	* README: Update.
	* gcc_release: Update gcc/DEV-PHASE if that file exists, instead
	of gcc/version.c.
	* update_version: Handle updating gcc/DATESTAMP.
	* update_web_docs: Generate gcc-vers.texi first.

From-SVN: r96549
parent 0ebfd2c9
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* gcc-version.m4: Delete.
2005-02-28 Paolo Bonzini <bonzini@gnu.org> 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/17383 PR bootstrap/17383
......
dnl Usage: TL_AC_GCC_VERSION(TOPSRCDIR)
dnl
dnl Set up the variables:
dnl
dnl gcc_version_trigger: pathname of gcc's version.c, if available
dnl gcc_version_full: full gcc version string
dnl gcc_version: the first "word" in $gcc_version_full
dnl
dnl TOPSRCDIR is the top-level source directory.
AC_DEFUN([TL_AC_GCC_VERSION],
[
changequote(,)dnl
if test "${with_gcc_version_trigger+set}" = set; then
gcc_version_trigger=$with_gcc_version_trigger
else
gcc_version_trigger=$1/gcc/version.c
fi
if test -f "${gcc_version_trigger}"; then
gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
else
gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
fi
gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
changequote([,])dnl
AC_SUBST(gcc_version_trigger)
AC_SUBST(gcc_version_full)
AC_SUBST(gcc_version)
])dnl
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Makefile.am (fastjar_TEXINFOS): Add gcc-vers.texi.
(BASEVER, DEVPHASE): New variables.
(POD2MAN): Adjust setting of --release option.
(fastjar.1, grepjar.1, gcc-vers.texi): New rules.
* Makefile.in: Regenerate.
* configure.ac: Do not invoke TL_AC_GCC_VERSION.
* aclocal.m4, configure: Regenerate.
2004-12-02 Richard Sandiford <rsandifo@redhat.com> 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
* configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.
......
...@@ -63,12 +63,16 @@ TEXINFO_TEX = ../gcc/doc/include/texinfo.tex ...@@ -63,12 +63,16 @@ TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
info_TEXINFOS = fastjar.texi info_TEXINFOS = fastjar.texi
fastjar_TEXINFOS = \ fastjar_TEXINFOS = \
../gcc/doc/include/gcc-common.texi \ ../gcc/doc/include/gcc-common.texi \
../gcc/doc/include/gpl.texi ../gcc/doc/include/gpl.texi \
gcc-vers.texi
man_MANS = fastjar.1 grepjar.1 man_MANS = fastjar.1 grepjar.1
EXTRA_DIST = $(man_MANS) EXTRA_DIST = $(man_MANS)
BASEVER = $(srcdir)/../gcc/BASE-VER
DEVPHASE = $(srcdir)/../gcc/DEV-PHASE
TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@" POD2MAN = pod2man --center="GNU" --release="gcc-$(shell cat $(BASEVER))"
.pod.1: .pod.1:
-($(POD2MAN) --section=1 $< > $(@).T$$$$ && \ -($(POD2MAN) --section=1 $< > $(@).T$$$$ && \
...@@ -83,6 +87,17 @@ fastjar.pod: $(srcdir)/fastjar.texi ...@@ -83,6 +87,17 @@ fastjar.pod: $(srcdir)/fastjar.texi
grepjar.pod: $(srcdir)/fastjar.texi grepjar.pod: $(srcdir)/fastjar.texi
-$(TEXI2POD) -D grepjar $< > $@ -$(TEXI2POD) -D grepjar $< > $@
fastjar.1 grepjar.1: $(BASEVER)
# gcc-vers.texi is generated from the version files.
gcc-vers.texi: $(BASEVER) $(DEVPHASE)
(echo "@set version-GCC $(shell cat $(BASEVER))"; \
if [ "$(shell cat $(DEVPHASE))" = "experimental" ]; \
then echo "@set DEVELOPMENT"; \
else echo "@clear DEVELOPMENT"; \
fi) > $@T
mv -f $@T $@
# GCC LOCAL CHANGE # GCC LOCAL CHANGE
# The following commands allow us to release tarballs with the man pages # The following commands allow us to release tarballs with the man pages
# and info documentation prebuilt. This feature is enabled via # and info documentation prebuilt. This feature is enabled via
......
...@@ -49,7 +49,6 @@ DIST_COMMON = README $(am__configure_deps) $(fastjar_TEXINFOS) \ ...@@ -49,7 +49,6 @@ DIST_COMMON = README $(am__configure_deps) $(fastjar_TEXINFOS) \
COPYING ChangeLog INSTALL NEWS COPYING ChangeLog INSTALL NEWS
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/../config/accross.m4 \ am__aclocal_m4_deps = $(top_srcdir)/../config/accross.m4 \
$(top_srcdir)/../config/gcc-version.m4 \
$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4) $(ACLOCAL_M4)
...@@ -175,9 +174,6 @@ build_alias = @build_alias@ ...@@ -175,9 +174,6 @@ build_alias = @build_alias@
datadir = @datadir@ datadir = @datadir@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
fastjar_warn_cflags = @fastjar_warn_cflags@ fastjar_warn_cflags = @fastjar_warn_cflags@
gcc_version = @gcc_version@
gcc_version_full = @gcc_version_full@
gcc_version_trigger = @gcc_version_trigger@
host_alias = @host_alias@ host_alias = @host_alias@
includedir = @includedir@ includedir = @includedir@
infodir = @infodir@ infodir = @infodir@
...@@ -253,12 +249,15 @@ TEXINFO_TEX = ../gcc/doc/include/texinfo.tex ...@@ -253,12 +249,15 @@ TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
info_TEXINFOS = fastjar.texi info_TEXINFOS = fastjar.texi
fastjar_TEXINFOS = \ fastjar_TEXINFOS = \
../gcc/doc/include/gcc-common.texi \ ../gcc/doc/include/gcc-common.texi \
../gcc/doc/include/gpl.texi ../gcc/doc/include/gpl.texi \
gcc-vers.texi
man_MANS = fastjar.1 grepjar.1 man_MANS = fastjar.1 grepjar.1
EXTRA_DIST = $(man_MANS) EXTRA_DIST = $(man_MANS)
BASEVER = $(srcdir)/../gcc/BASE-VER
DEVPHASE = $(srcdir)/../gcc/DEV-PHASE
TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl TEXI2POD = perl $(srcdir)/../contrib/texi2pod.pl
POD2MAN = pod2man --center="GNU" --release="gcc-@gcc_version@" POD2MAN = pod2man --center="GNU" --release="gcc-$(shell cat $(BASEVER))"
@GENINSRC_FALSE@STAMP_GENINSRC = @GENINSRC_FALSE@STAMP_GENINSRC =
# GCC LOCAL CHANGE # GCC LOCAL CHANGE
...@@ -924,6 +923,17 @@ fastjar.pod: $(srcdir)/fastjar.texi ...@@ -924,6 +923,17 @@ fastjar.pod: $(srcdir)/fastjar.texi
grepjar.pod: $(srcdir)/fastjar.texi grepjar.pod: $(srcdir)/fastjar.texi
-$(TEXI2POD) -D grepjar $< > $@ -$(TEXI2POD) -D grepjar $< > $@
fastjar.1 grepjar.1: $(BASEVER)
# gcc-vers.texi is generated from the version files.
gcc-vers.texi: $(BASEVER) $(DEVPHASE)
(echo "@set version-GCC $(shell cat $(BASEVER))"; \
if [ "$(shell cat $(DEVPHASE))" = "experimental" ]; \
then echo "@set DEVELOPMENT"; \
else echo "@clear DEVELOPMENT"; \
fi) > $@T
mv -f $@T $@
all-local: $(STAMP_GENINSRC) all-local: $(STAMP_GENINSRC)
stamp-geninsrc: fastjar.1 grepjar.1 fastjar.info stamp-geninsrc: fastjar.1 grepjar.1 fastjar.info
......
...@@ -1083,5 +1083,4 @@ AC_SUBST([am__untar]) ...@@ -1083,5 +1083,4 @@ AC_SUBST([am__untar])
]) # _AM_PROG_TAR ]) # _AM_PROG_TAR
m4_include([../config/accross.m4]) m4_include([../config/accross.m4])
m4_include([../config/gcc-version.m4])
m4_include([acinclude.m4]) m4_include([acinclude.m4])
...@@ -309,7 +309,7 @@ ac_includes_default="\ ...@@ -309,7 +309,7 @@ ac_includes_default="\
# include <unistd.h> # include <unistd.h>
#endif" #endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RM CP CHMOD MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fastjar_warn_cflags CPP EGREP ZLIBS ZDEPS ZINCS GENINSRC_TRUE GENINSRC_FALSE gcc_version_trigger gcc_version_full gcc_version LIBOBJS LTLIBOBJS' ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RM CP CHMOD MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fastjar_warn_cflags CPP EGREP ZLIBS ZDEPS ZINCS GENINSRC_TRUE GENINSRC_FALSE LIBOBJS LTLIBOBJS'
ac_subst_files='' ac_subst_files=''
# Initialize some variables set by options. # Initialize some variables set by options.
...@@ -5226,23 +5226,6 @@ else ...@@ -5226,23 +5226,6 @@ else
fi fi
if test "${with_gcc_version_trigger+set}" = set; then
gcc_version_trigger=$with_gcc_version_trigger
else
gcc_version_trigger=$srcdir/../gcc/version.c
fi
if test -f "${gcc_version_trigger}"; then
gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
else
gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
fi
gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
ac_config_files="$ac_config_files Makefile install-defs.sh" ac_config_files="$ac_config_files Makefile install-defs.sh"
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure
...@@ -5948,9 +5931,6 @@ s,@ZDEPS@,$ZDEPS,;t t ...@@ -5948,9 +5931,6 @@ s,@ZDEPS@,$ZDEPS,;t t
s,@ZINCS@,$ZINCS,;t t s,@ZINCS@,$ZINCS,;t t
s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
s,@gcc_version_trigger@,$gcc_version_trigger,;t t
s,@gcc_version_full@,$gcc_version_full,;t t
s,@gcc_version@,$gcc_version,;t t
s,@LIBOBJS@,$LIBOBJS,;t t s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF CEOF
......
...@@ -89,6 +89,4 @@ AC_MSG_CHECKING([whether to place generated files in the source directory]) ...@@ -89,6 +89,4 @@ AC_MSG_CHECKING([whether to place generated files in the source directory])
AC_MSG_RESULT($generated_files_in_srcdir) AC_MSG_RESULT($generated_files_in_srcdir)
AM_CONDITIONAL(GENINSRC, test x$generated_files_in_srcdir = xyes) AM_CONDITIONAL(GENINSRC, test x$generated_files_in_srcdir = xyes)
TL_AC_GCC_VERSION([$srcdir/..])
AC_OUTPUT(Makefile install-defs.sh) AC_OUTPUT(Makefile install-defs.sh)
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* BASE-VER, DATESTAMP, DEV-PHASE: New files.
* Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
(BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
(BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
(version): Define using $(BASEVER_c).
(Makefile, config.status, build/gcov-iov.o): No longer depends on
version.c.
(version.o): Depend on version files; add custom generation command.
(prefix.o): Define BASEVER on command line.
(s-iov): Depend on version files; adjust command.
(TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
Add gcc-vers.texi.
(gcc-vers.texi): New rule.
(doc/%.info, doc/%.dvi): Add -I . to command line.
(doc/gccinstall.dvi): Likewise.
(PACKAGE): Delete. All uses replaced with "gcc".
* aclocal.m4: Do not include gcc-version.m4.
* configure.ac: Do not invoke TL_AC_GCC_VERSION.
Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
Set is_release based on contents of DEV-PHASE.
Set gcc_version based on contents of BASE-VER.
Define WIN32_REGISTRY_KEY only if the user overrode the default.
* config.in, configure: Regenerate.
* gccbug.in: Determine version of GCC in use at runtime.
* gcov-iov.c: Get version number and development phase from
command line, not by including version.c.
* intl.c: Replace all uses of PACKAGE with "gcc".
* libada-mk.in: Delete unused "gcc_version" variable.
* prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
* version.c: (VERSUFFIX): New hook for redistributors; adjust
commentary to match.
(version_string): Put together from pieces.
* config/alpha/x-vms: Do not use $(gcc_version).
* config/i386/t-nwld: Likewise.
* doc/include/gcc-common.texi: Include gcc-vers.texi for
version-GCC and DEVELOPMENT.
2005-03-15 Roger Sayle <roger@eyesopen.com> 2005-03-15 Roger Sayle <roger@eyesopen.com>
PR tree-optimization/17454 PR tree-optimization/17454
......
experimental
...@@ -427,10 +427,6 @@ GTHREAD_FLAGS=@gthread_flags@ ...@@ -427,10 +427,6 @@ GTHREAD_FLAGS=@gthread_flags@
extra_modes_file=@extra_modes_file@ extra_modes_file=@extra_modes_file@
extra_opt_files=@extra_opt_files@ extra_opt_files=@extra_opt_files@
host_hook_obj=@out_host_hook_obj@ host_hook_obj=@out_host_hook_obj@
# Be prepared for gcc2 merges.
gcc_version=@gcc_version@
gcc_version_trigger=@gcc_version_trigger@
version=$(gcc_version)
# ------------------------ # ------------------------
# Installation directories # Installation directories
...@@ -688,6 +684,27 @@ TM_P_H = tm_p.h $(tm_p_file_list) ...@@ -688,6 +684,27 @@ TM_P_H = tm_p.h $(tm_p_file_list)
GTM_H = tm.h $(tm_file_list) GTM_H = tm.h $(tm_file_list)
TM_H = $(GTM_H) insn-constants.h insn-flags.h TM_H = $(GTM_H) insn-constants.h insn-flags.h
# Variables for version information.
BASEVER = $(srcdir)/BASE-VER # 4.x.y
DEVPHASE = $(srcdir)/DEV-PHASE # experimental, prerelease, ""
DATESTAMP = $(srcdir)/DATESTAMP # YYYYMMDD or empty
BASEVER_c = $(shell cat $(BASEVER))
DEVPHASE_c = $(shell cat $(DEVPHASE))
DATESTAMP_c = $(shell cat $(DATESTAMP))
version = $(BASEVER_c)
# For use in version.c - double quoted strings, with appropriate
# surrounding punctuation and spaces, and with the datestamp and
# development phase collapsed to the empty string in release mode
# (i.e. if DEVPHASE_c is empty). The space immediately after the
# comma in the $(if ...) constructs is significant - do not remove it.
BASEVER_s = "\"$(BASEVER_c)\""
DEVPHASE_s = "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""
DATESTAMP_s = "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""
# Shorthand variables for dependency lists.
TARGET_H = $(TM_H) target.h insn-modes.h TARGET_H = $(TM_H) target.h insn-modes.h
MACHMODE_H = machmode.h mode-classes.def insn-modes.h MACHMODE_H = machmode.h mode-classes.def insn-modes.h
HOOKS_H = hooks.h $(MACHMODE_H) HOOKS_H = hooks.h $(MACHMODE_H)
...@@ -1042,7 +1059,7 @@ endif ...@@ -1042,7 +1059,7 @@ endif
# Rebuilding this configuration # Rebuilding this configuration
# ----------------------------- # -----------------------------
Makefile: config.status $(srcdir)/Makefile.in $(srcdir)/version.c $(LANG_MAKEFRAGS) Makefile: config.status $(srcdir)/Makefile.in $(LANG_MAKEFRAGS)
LANGUAGES="$(CONFIG_LANGUAGES)" \ LANGUAGES="$(CONFIG_LANGUAGES)" \
CONFIG_HEADERS= \ CONFIG_HEADERS= \
CONFIG_SHELL="$(SHELL)" \ CONFIG_SHELL="$(SHELL)" \
...@@ -1119,7 +1136,7 @@ cstamp-h: config.in config.status ...@@ -1119,7 +1136,7 @@ cstamp-h: config.in config.status
# Really, really stupid make features, such as SUN's KEEP_STATE, may force # Really, really stupid make features, such as SUN's KEEP_STATE, may force
# a target to build even if it is up-to-date. So we must verify that # a target to build even if it is up-to-date. So we must verify that
# config.status does not exist before failing. # config.status does not exist before failing.
config.status: $(srcdir)/configure $(srcdir)/config.gcc version.c config.status: $(srcdir)/configure $(srcdir)/config.gcc
@if [ ! -f config.status ] ; then \ @if [ ! -f config.status ] ; then \
echo You must configure gcc. Look at http://gcc.gnu.org/install/ for details.; \ echo You must configure gcc. Look at http://gcc.gnu.org/install/ for details.; \
false; \ false; \
...@@ -1553,7 +1570,10 @@ options.o: options.c options.h opts.h intl.h ...@@ -1553,7 +1570,10 @@ options.o: options.c options.h opts.h intl.h
dumpvers: dumpvers.c dumpvers: dumpvers.c
version.o: version.c version.h version.o: version.c version.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
-DDEVPHASE=$(DEVPHASE_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
varray.h $(HASHTAB_H) $(SPLAY_TREE_H) bitmap.h $(TREE_H) $(RTL_H) \ varray.h $(HASHTAB_H) $(SPLAY_TREE_H) bitmap.h $(TREE_H) $(RTL_H) \
...@@ -1575,9 +1595,10 @@ ggc-none.o: ggc-none.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(GGC_H) ...@@ -1575,9 +1595,10 @@ ggc-none.o: ggc-none.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(GGC_H)
stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ stringpool.o: stringpool.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(TREE_H) $(GGC_H) gt-stringpool.h $(TREE_H) $(GGC_H) gt-stringpool.h
prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) Makefile prefix.h prefix.o: prefix.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) prefix.h \
Makefile $(BASEVER)
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DPREFIX=\"$(prefix)\" \ -DPREFIX=\"$(prefix)\" -DBASEVER=$(BASEVER_s) \
-c $(srcdir)/prefix.c $(OUTPUT_OPTION) -c $(srcdir)/prefix.c $(OUTPUT_OPTION)
convert.o: convert.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(FLAGS_H) \ convert.o: convert.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(FLAGS_H) \
...@@ -2765,15 +2786,16 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES) ...@@ -2765,15 +2786,16 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES)
-rm -f tmp-proto.[cs] tmp-proto$(objext) -rm -f tmp-proto.[cs] tmp-proto$(objext)
# gcov-iov.c is run on the build machine to generate gcov-iov.h from version.c # gcov-iov.c is run on the build machine to generate gcov-iov.h from version.c
build/gcov-iov.o: gcov-iov.c version.c $(BCONFIG_H) coretypes.h $(GTM_H) \ build/gcov-iov.o: gcov-iov.c $(BCONFIG_H) coretypes.h $(GTM_H) \
$(SYSTEM_H) coretypes.h $(TM_H) $(SYSTEM_H) coretypes.h $(TM_H)
build/gcov-iov$(build_exeext): build/gcov-iov.o build/gcov-iov$(build_exeext): build/gcov-iov.o
$(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) build/gcov-iov.o -o $@ $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) build/gcov-iov.o -o $@
gcov-iov.h: s-iov gcov-iov.h: s-iov
s-iov: build/gcov-iov$(build_exeext) s-iov: build/gcov-iov$(build_exeext) $(BASEVER) $(DEVPHASE)
build/gcov-iov$(build_exeext) > tmp-gcov-iov.h build/gcov-iov$(build_exeext) '$(BASEVER_c)' '$(DEVPHASE_c)' \
> tmp-gcov-iov.h
$(SHELL) $(srcdir)/../move-if-change tmp-gcov-iov.h gcov-iov.h $(SHELL) $(srcdir)/../move-if-change tmp-gcov-iov.h gcov-iov.h
$(STAMP) s-iov $(STAMP) s-iov
...@@ -2970,24 +2992,37 @@ info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo ...@@ -2970,24 +2992,37 @@ info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo
srcinfo: $(INFOFILES) srcinfo: $(INFOFILES)
-cp -p $^ $(srcdir)/doc -cp -p $^ $(srcdir)/doc
TEXI_CPP_FILES = cpp.texi fdl.texi cppenv.texi cppopts.texi TEXI_CPP_FILES = cpp.texi fdl.texi cppenv.texi cppopts.texi \
gcc-common.texi gcc-vers.texi
TEXI_GCC_FILES = gcc.texi gcc-common.texi frontends.texi standards.texi \ TEXI_GCC_FILES = gcc.texi gcc-common.texi gcc-vers.texi frontends.texi \
invoke.texi extend.texi md.texi objc.texi gcov.texi trouble.texi \ standards.texi invoke.texi extend.texi md.texi objc.texi \
bugreport.texi service.texi contribute.texi compat.texi funding.texi \ gcov.texi trouble.texi bugreport.texi service.texi \
gnu.texi gpl.texi fdl.texi contrib.texi cppenv.texi cppopts.texi \ contribute.texi compat.texi funding.texi gnu.texi gpl.texi \
fdl.texi contrib.texi cppenv.texi cppopts.texi \
implement-c.texi implement-c.texi
TEXI_GCCINT_FILES = gccint.texi gcc-common.texi contribute.texi makefile.texi \ TEXI_GCCINT_FILES = gccint.texi gcc-common.texi gcc-vers.texi \
configterms.texi portability.texi interface.texi passes.texi \ contribute.texi makefile.texi configterms.texi options.texi \
c-tree.texi rtl.texi md.texi tm.texi hostconfig.texi fragments.texi \ portability.texi interface.texi passes.texi c-tree.texi \
configfiles.texi collect2.texi headerdirs.texi funding.texi gnu.texi \ rtl.texi md.texi tm.texi hostconfig.texi fragments.texi \
gpl.texi fdl.texi contrib.texi languages.texi sourcebuild.texi \ configfiles.texi collect2.texi headerdirs.texi funding.texi \
gty.texi libgcc.texi cfg.texi tree-ssa.texi options.texi gnu.texi gpl.texi fdl.texi contrib.texi languages.texi \
sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi
TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi TEXI_GCCINSTALL_FILES = install.texi install-old.texi fdl.texi
TEXI_CPPINT_FILES = cppinternals.texi TEXI_CPPINT_FILES = cppinternals.texi gcc-common.texi gcc-vers.texi
# gcc-vers.texi is generated from the version files.
gcc-vers.texi: $(BASEVER) $(DEVPHASE)
(echo "@set version-GCC $(BASEVER_c)"; \
if [ "$(DEVPHASE_c)" = "experimental" ]; \
then echo "@set DEVELOPMENT"; \
else echo "@clear DEVELOPMENT"; \
fi) > $@T
mv -f $@T $@
# 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
...@@ -3000,7 +3035,7 @@ doc/cppinternals.info: $(TEXI_CPPINT_FILES) ...@@ -3000,7 +3035,7 @@ doc/cppinternals.info: $(TEXI_CPPINT_FILES)
doc/%.info: %.texi doc/%.info: %.texi
if [ x$(BUILD_INFO) = xinfo ]; then \ if [ x$(BUILD_INFO) = xinfo ]; then \
$(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir) \ $(MAKEINFO) $(MAKEINFOFLAGS) -I . -I $(docdir) \
-I $(docdir)/include -o $@ $<; \ -I $(docdir)/include -o $@ $<; \
fi fi
...@@ -3025,11 +3060,11 @@ dvi:: doc/gcc.dvi doc/gccint.dvi doc/gccinstall.dvi doc/cpp.dvi \ ...@@ -3025,11 +3060,11 @@ dvi:: doc/gcc.dvi doc/gccint.dvi doc/gccinstall.dvi doc/cpp.dvi \
doc/cppinternals.dvi doc/cppinternals.dvi
doc/%.dvi: %.texi doc/%.dvi: %.texi
$(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< $(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
# Duplicate entry to handle renaming of gccinstall.dvi # Duplicate entry to handle renaming of gccinstall.dvi
doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES) doc/gccinstall.dvi: $(TEXI_GCCINSTALL_FILES)
$(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $< $(TEXI2DVI) -I . -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
html:: $(htmldir)/cpp/index.html $(htmldir)/gcc/index.html \ html:: $(htmldir)/cpp/index.html $(htmldir)/gcc/index.html \
$(htmldir)/gccinstall/index.html $(htmldir)/gccint/index.html \ $(htmldir)/gccinstall/index.html $(htmldir)/gccint/index.html \
...@@ -4185,8 +4220,6 @@ risky-stage4: stage4 ...@@ -4185,8 +4220,6 @@ risky-stage4: stage4
XGETTEXT = @XGETTEXT@ XGETTEXT = @XGETTEXT@
GMSGFMT = @GMSGFMT@ GMSGFMT = @GMSGFMT@
MSGMERGE = msgmerge MSGMERGE = msgmerge
PACKAGE = @PACKAGE@
CATALOGS = @CATALOGS@ CATALOGS = @CATALOGS@
.PHONY: build- install- build-po install-po update-po .PHONY: build- install- build-po install-po update-po
...@@ -4210,13 +4243,13 @@ update-po: $(CATALOGS:.gmo=.pox) ...@@ -4210,13 +4243,13 @@ update-po: $(CATALOGS:.gmo=.pox)
# The new .po has to be gone over by hand, so we deposit it into # The new .po has to be gone over by hand, so we deposit it into
# build/po with a different extension. # build/po with a different extension.
# If build/po/$(PACKAGE).pot exists, use it (it was just created), # If build/po/gcc.pot exists, use it (it was just created),
# else use the one in srcdir. # else use the one in srcdir.
.po.pox: .po.pox:
-test -d po || mkdir po -test -d po || mkdir po
$(MSGMERGE) $< `if test -f po/$(PACKAGE).pot; \ $(MSGMERGE) $< `if test -f po/gcc.pot; \
then echo po/$(PACKAGE).pot; \ then echo po/gcc.pot; \
else echo $(srcdir)/po/$(PACKAGE).pot; fi` -o $@ else echo $(srcdir)/po/gcc.pot; fi` -o $@
# This rule has to look for .gmo modules in both srcdir and # This rule has to look for .gmo modules in both srcdir and
# the cwd, and has to check that we actually have a catalog # the cwd, and has to check that we actually have a catalog
...@@ -4233,8 +4266,8 @@ install-po: ...@@ -4233,8 +4266,8 @@ install-po:
dir=$(localedir)/$$lang/LC_MESSAGES; \ dir=$(localedir)/$$lang/LC_MESSAGES; \
echo $(mkinstalldirs) $(DESTDIR)$$dir; \ echo $(mkinstalldirs) $(DESTDIR)$$dir; \
$(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \ $(mkinstalldirs) $(DESTDIR)$$dir || exit 1; \
echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ echo $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
$(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE).mo; \ $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/gcc.mo; \
done done
# Rule for regenerating the message template (gcc.pot). # Rule for regenerating the message template (gcc.pot).
...@@ -4244,9 +4277,9 @@ install-po: ...@@ -4244,9 +4277,9 @@ install-po:
# Note that exgettext has an awk script embedded in it which requires a # Note that exgettext has an awk script embedded in it which requires a
# fairly modern (POSIX-compliant) awk. # fairly modern (POSIX-compliant) awk.
# The .pot file is left in the build directory. # The .pot file is left in the build directory.
$(PACKAGE).pot: po/$(PACKAGE).pot gcc.pot: po/gcc.pot
po/$(PACKAGE).pot: force options.c po/gcc.pot: force options.c
-test -d po || mkdir po -test -d po || mkdir po
$(MAKE) srcextra $(MAKE) srcextra
AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \ AWK=$(AWK) $(SHELL) $(srcdir)/po/exgettext \
$(XGETTEXT) $(PACKAGE) $(srcdir) $(XGETTEXT) gcc $(srcdir)
...@@ -2,7 +2,6 @@ m4_include([../config/accross.m4]) ...@@ -2,7 +2,6 @@ m4_include([../config/accross.m4])
m4_include([../config/acx.m4]) m4_include([../config/acx.m4])
m4_include([../config/gettext-sister.m4]) m4_include([../config/gettext-sister.m4])
m4_include([../config/gcc-lib-path.m4]) m4_include([../config/gcc-lib-path.m4])
m4_include([../config/gcc-version.m4])
m4_include([../config/iconv.m4]) m4_include([../config/iconv.m4])
m4_include([../config/lcmessage.m4]) m4_include([../config/lcmessage.m4])
m4_include([../config/lib-ld.m4]) m4_include([../config/lib-ld.m4])
......
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
(doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
to dependencies.
2005-03-15 Vincent Celier <celier@adacore.com> 2005-03-15 Vincent Celier <celier@adacore.com>
* mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For): * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
......
...@@ -380,7 +380,9 @@ doc/gnat_ugn_unw.texi: $(srcdir)/ada/gnat_ugn.texi $(srcdir)/ada/ug_words ...@@ -380,7 +380,9 @@ doc/gnat_ugn_unw.texi: $(srcdir)/ada/gnat_ugn.texi $(srcdir)/ada/ug_words
$(srcdir)/ada/ug_words doc/gnat_ugn_unw.texi $(srcdir)/ada/ug_words doc/gnat_ugn_unw.texi
doc/gnat_ugn_unw.info: doc/gnat_ugn_unw.texi \ doc/gnat_ugn_unw.info: doc/gnat_ugn_unw.texi \
$(docdir)/include/fdl.texi $(docdir)/include/gcc-common.texi $(docdir)/include/fdl.texi $(docdir)/include/gcc-common.texi \
gcc-vers.texi
if [ x$(BUILD_INFO) = xinfo ]; then \ if [ x$(BUILD_INFO) = xinfo ]; then \
rm -f $(@)*; \ rm -f $(@)*; \
$(MAKEINFO) $(MAKEINFOFLAGS) -I$(docdir)/include \ $(MAKEINFO) $(MAKEINFOFLAGS) -I$(docdir)/include \
...@@ -388,7 +390,7 @@ doc/gnat_ugn_unw.info: doc/gnat_ugn_unw.texi \ ...@@ -388,7 +390,7 @@ doc/gnat_ugn_unw.info: doc/gnat_ugn_unw.texi \
else true; fi else true; fi
doc/gnat_rm.info: ada/gnat_rm.texi $(docdir)/include/fdl.texi \ doc/gnat_rm.info: ada/gnat_rm.texi $(docdir)/include/fdl.texi \
$(docdir)/include/gcc-common.texi $(docdir)/include/gcc-common.texi gcc-vers.texi
if [ x$(BUILD_INFO) = xinfo ]; then \ if [ x$(BUILD_INFO) = xinfo ]; then \
rm -f $(@)*; \ rm -f $(@)*; \
$(MAKEINFO) $(MAKEINFOFLAGS) -I$(docdir)/include \ $(MAKEINFO) $(MAKEINFOFLAGS) -I$(docdir)/include \
...@@ -417,12 +419,12 @@ install-info:: $(DESTDIR)$(infodir)/gnat_ugn_unw.info \ ...@@ -417,12 +419,12 @@ install-info:: $(DESTDIR)$(infodir)/gnat_ugn_unw.info \
dvi:: doc/gnat_ugn_unw.dvi \ dvi:: doc/gnat_ugn_unw.dvi \
doc/gnat_rm.dvi doc/gnat-style.dvi doc/gnat_rm.dvi doc/gnat-style.dvi
doc/gnat_ugn_unw.dvi: doc/gnat_ugn_unw.texi \ doc/gnat_ugn_unw.dvi: doc/gnat_ugn_unw.texi $(docdir)/include/fdl.texi \
$(docdir)/include/fdl.texi $(docdir)/include/gcc-common.texi $(docdir)/include/gcc-common.texi gcc-vers.texi
$(TEXI2DVI) -c -I $(abs_docdir)/include -o $@ $< $(TEXI2DVI) -c -I $(abs_docdir)/include -o $@ $<
doc/gnat_rm.dvi: ada/gnat_rm.texi \ doc/gnat_rm.dvi: ada/gnat_rm.texi $(docdir)/include/fdl.texi \
$(docdir)/include/fdl.texi $(docdir)/include/gcc-common.texi $(docdir)/include/gcc-common.texi gcc-vers.texi
$(TEXI2DVI) -c -I $(abs_docdir)/include -o $@ $< $(TEXI2DVI) -c -I $(abs_docdir)/include -o $@ $<
doc/gnat-style.dvi: ada/gnat-style.texi $(docdir)/include/fdl.texi doc/gnat-style.dvi: ada/gnat-style.texi $(docdir)/include/fdl.texi
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
valgrind (a memory checker). This is extremely expensive. */ valgrind (a memory checker). This is extremely expensive. */
#undef ENABLE_VALGRIND_CHECKING #undef ENABLE_VALGRIND_CHECKING
/* Define to 1 if installation paths should be looked up in Windows32 /* Define to 1 if installation paths should be looked up in the Windows
Registry. Ignored on non windows32 hosts. */ Registry. Ignored on non-Windows hosts. */
#undef ENABLE_WIN32_REGISTRY #undef ENABLE_WIN32_REGISTRY
/* Define to the name of a file containing a list of extra machine modes for /* Define to the name of a file containing a list of extra machine modes for
...@@ -534,9 +534,6 @@ ...@@ -534,9 +534,6 @@
/* Define to 1 if your C compiler doesn't accept -c and -o together. */ /* Define to 1 if your C compiler doesn't accept -c and -o together. */
#undef NO_MINUS_C_MINUS_O #undef NO_MINUS_C_MINUS_O
/* The name of this program for internationalization purposes. */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT #undef PACKAGE_BUGREPORT
...@@ -592,7 +589,10 @@ ...@@ -592,7 +589,10 @@
/* Define if location_t is fileline integer cookie. */ /* Define if location_t is fileline integer cookie. */
#undef USE_MAPPED_LOCATION #undef USE_MAPPED_LOCATION
/* Define to be the last portion of registry key on windows hosts. */ /* Define to be the last component of the Windows registry key under which to
look for installation paths. The full key used will be
HKEY_LOCAL_MACHINE/SOFTWARE/Free Software Foundation/{WIN32_REGISTRY_KEY}.
The default is the GCC version number. */
#undef WIN32_REGISTRY_KEY #undef WIN32_REGISTRY_KEY
/* whether byteorder is bigendian */ /* whether byteorder is bigendian */
......
# Under VMS, directory names cannot contain dots. # Under VMS, directory names cannot contain dots.
version:=$(shell echo $(gcc_version) | sed -e 's/\./_/g') version:=$(shell echo $(BASEVER_c) | sed -e 's/\./_/g')
libsubdir=$(libdir)/gcc-lib libsubdir=$(libdir)/gcc-lib
......
...@@ -38,7 +38,7 @@ SHLIB_SRC = $(srcdir)/config/i386/netware-libgcc.c ...@@ -38,7 +38,7 @@ SHLIB_SRC = $(srcdir)/config/i386/netware-libgcc.c
SHLIB_LINK = set -e; \ SHLIB_LINK = set -e; \
cat $(SHLIB_DEF) >@shlib_base_name@.def; \ cat $(SHLIB_DEF) >@shlib_base_name@.def; \
echo "name $(SHLIB_NAME)" >>@shlib_base_name@.def; \ echo "name $(SHLIB_NAME)" >>@shlib_base_name@.def; \
echo "version $(gcc_version)" | sed "s!\.!,!g" >>@shlib_base_name@.def; \ echo "version $(version)" | sed "s!\.!,!g" >>@shlib_base_name@.def; \
touch libgcc/build; \ touch libgcc/build; \
echo "build $$$$(($$$$(<libgcc/build)+0))" >>@shlib_base_name@.def; \ echo "build $$$$(($$$$(<libgcc/build)+0))" >>@shlib_base_name@.def; \
echo "export @$(SHLIB_MAP)" >>@shlib_base_name@.def; \ echo "export @$(SHLIB_MAP)" >>@shlib_base_name@.def; \
......
...@@ -30,9 +30,6 @@ AC_INIT ...@@ -30,9 +30,6 @@ AC_INIT
AC_CONFIG_SRCDIR(tree.c) AC_CONFIG_SRCDIR(tree.c)
AC_CONFIG_HEADER(auto-host.h:config.in) AC_CONFIG_HEADER(auto-host.h:config.in)
#Set to 1 on a release branch
is_release=
# Determine the host, build, and target systems # Determine the host, build, and target systems
AC_CANONICAL_BUILD AC_CANONICAL_BUILD
AC_CANONICAL_HOST AC_CANONICAL_HOST
...@@ -100,8 +97,6 @@ AC_MSG_ERROR([ ...@@ -100,8 +97,6 @@ AC_MSG_ERROR([
*** and run configure again.]) *** and run configure again.])
fi fi
TL_AC_GCC_VERSION([$srcdir/..])
# ----------- # -----------
# Directories # Directories
# ----------- # -----------
...@@ -139,7 +134,7 @@ if test x${gcc_gxx_include_dir} = x; then ...@@ -139,7 +134,7 @@ if test x${gcc_gxx_include_dir} = x; then
if test x${enable_version_specific_runtime_libs} = xyes; then if test x${enable_version_specific_runtime_libs} = xyes; then
gcc_gxx_include_dir='${libsubdir}/include/c++' gcc_gxx_include_dir='${libsubdir}/include/c++'
else else
libstdcxx_incdir=c++/${gcc_version} libstdcxx_incdir='c++/$(version)'
changequote(<<, >>)dnl changequote(<<, >>)dnl
gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir} gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
changequote([, ])dnl changequote([, ])dnl
...@@ -375,6 +370,10 @@ fi ...@@ -375,6 +370,10 @@ fi
AC_SUBST(warn_cflags) AC_SUBST(warn_cflags)
# Enable -Werror in bootstrap stage2 and later. # Enable -Werror in bootstrap stage2 and later.
is_release=
if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
is_release=yes
fi
AC_ARG_ENABLE(werror, AC_ARG_ENABLE(werror,
[ --enable-werror enable -Werror in bootstrap stage2 and later], [], [ --enable-werror enable -Werror in bootstrap stage2 and later], [],
[if test x$is_release = x ; then [if test x$is_release = x ; then
...@@ -1418,13 +1417,6 @@ EOF ...@@ -1418,13 +1417,6 @@ EOF
changequote([,])dnl changequote([,])dnl
# Internationalization # Internationalization
PACKAGE=gcc
VERSION="$gcc_version"
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
[The name of this program for internationalization purposes.])
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
ZW_GNU_GETTEXT_SISTER_DIR ZW_GNU_GETTEXT_SISTER_DIR
# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
...@@ -1442,44 +1434,30 @@ AC_ARG_ENABLE(win32-registry, ...@@ -1442,44 +1434,30 @@ AC_ARG_ENABLE(win32-registry,
--enable-win32-registry=KEY --enable-win32-registry=KEY
use KEY instead of GCC version as the last portion use KEY instead of GCC version as the last portion
of the registry key],,) of the registry key],,)
case $host_os in case $host_os in
win32 | pe | cygwin* | mingw32* | uwin*) win32 | pe | cygwin* | mingw32* | uwin*)
AC_MSG_CHECKING(whether windows registry support is requested) if test "x$enable_win32_registry" != xno; then
if test "x$enable_win32_registry" != xno; then AC_SEARCH_LIBS(RegOpenKeyExA, advapi32,, [enable_win32_registry=no])
fi
if test "x$enable_win32_registry" != xno; then
AC_DEFINE(ENABLE_WIN32_REGISTRY, 1, AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
[Define to 1 if installation paths should be looked up in Windows32 [Define to 1 if installation paths should be looked up in the Windows
Registry. Ignored on non windows32 hosts.]) Registry. Ignored on non-Windows hosts.])
AC_MSG_RESULT(yes)
AC_SEARCH_LIBS(RegOpenKeyExA, advapi32)
else
AC_MSG_RESULT(no)
fi
# Check if user specified a different registry key. if test "x$enable_win32_registry" != xyes \
case "x${enable_win32_registry}" in && test "x$enable_win32_registry" != x; then
x | xyes) AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$enable_win32_registry",
# default. [Define to be the last component of the Windows registry key under which
gcc_cv_win32_registry_key="$VERSION" to look for installation paths. The full key used will be
;; HKEY_LOCAL_MACHINE/SOFTWARE/Free Software Foundation/{WIN32_REGISTRY_KEY}.
xno) The default is the GCC version number.])
# no registry lookup. fi
gcc_cv_win32_registry_key='' fi
;;
*)
# user-specified key.
gcc_cv_win32_registry_key="$enable_win32_registry"
;; ;;
esac esac
if test "x$enable_win32_registry" != xno; then
AC_MSG_CHECKING(registry key on windows hosts)
AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
[Define to be the last portion of registry key on windows hosts.])
AC_MSG_RESULT($gcc_cv_win32_registry_key)
fi
;;
esac
# Get an absolute path to the GCC top-level source directory # Get an absolute path to the GCC top-level source directory
holddir=`${PWDCMD-pwd}` holddir=`${PWDCMD-pwd}`
cd $srcdir cd $srcdir
...@@ -1776,6 +1754,8 @@ elif test -x "$AS" && test x$host = x$target; then ...@@ -1776,6 +1754,8 @@ elif test -x "$AS" && test x$host = x$target; then
gcc_cv_as="$AS" gcc_cv_as="$AS"
fi fi
gcc_version=`cat $srcdir/BASE-VER`
if test "x$gcc_cv_as" = x; then if test "x$gcc_cv_as" = x; then
# Search the same directories that the installed compiler will # Search the same directories that the installed compiler will
# search. Else we may find the wrong assembler and lose. If we # search. Else we may find the wrong assembler and lose. If we
......
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
@c This is part of the GCC manual. @c This is part of the GCC manual.
@c For copying conditions, see the file gcc.texi. @c For copying conditions, see the file gcc.texi.
@c Common values used in the GCC manuals: @c Version number and development mode.
@c version-GCC is @set to the base GCC version number.
@c DEVELOPMENT is @set for an in-development version, @clear for a
@c release version (corresponding to ``experimental''/anything else
@c in gcc/DEV-PHASE).
@set version-GCC 4.1.0 @include gcc-vers.texi
@c DEVELOPMENT is set to indicate an in-development version,
@c as compared to a release version. When making a release
@c branch, clear this.
@set DEVELOPMENT
@c Common macros to support generating man pages: @c Common macros to support generating man pages:
......
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Make-lang.in (GFORTRAN_TEXI): Add gcc-vers.texi.
2005-03-15 Feng Wang <fengwang@nudt.edu.cn> 2005-03-15 Feng Wang <fengwang@nudt.edu.cn>
* trans-stmt.c (gfc_trans_label_assign): Don't set DECL_ARTIFICIAL flag * trans-stmt.c (gfc_trans_label_assign): Don't set DECL_ARTIFICIAL flag
......
...@@ -147,7 +147,8 @@ GFORTRAN_TEXI = \ ...@@ -147,7 +147,8 @@ GFORTRAN_TEXI = \
$(srcdir)/doc/include/fdl.texi \ $(srcdir)/doc/include/fdl.texi \
$(srcdir)/doc/include/gpl.texi \ $(srcdir)/doc/include/gpl.texi \
$(srcdir)/doc/include/funding.texi \ $(srcdir)/doc/include/funding.texi \
$(srcdir)/doc/include/gcc-common.texi $(srcdir)/doc/include/gcc-common.texi \
gcc-vers.texi
doc/gfortran.info: $(GFORTRAN_TEXI) doc/gfortran.info: $(GFORTRAN_TEXI)
if [ x$(BUILD_INFO) = xinfo ]; then \ if [ x$(BUILD_INFO) = xinfo ]; then \
......
...@@ -31,7 +31,11 @@ SUBMITTER=net ...@@ -31,7 +31,11 @@ SUBMITTER=net
GNATS_ADDR=gcc-gnats@gcc.gnu.org GNATS_ADDR=gcc-gnats@gcc.gnu.org
# The default release for this host. # The default release for this host.
DEFAULT_RELEASE="@gcc_version_full@" # We have to guess at what program_transform_name might have done.
# "sed 1q" because neither "head -1" nor "head -n 1" is universal, argh.
DEFAULT_GCC="`echo $0 | sed -e 's/bug//'`"
DEFAULT_RELEASE="`$DEFAULT_GCC --version | sed 1q`"
# The default organization. # The default organization.
DEFAULT_ORGANIZATION= DEFAULT_ORGANIZATION=
......
/* Generate gcov version string from version.c. See gcov-io.h for /* Generate gcov version string from version.c. See gcov-io.h for
description of how the version string is generated. description of how the version string is generated.
Copyright (C) 2002, 2003 Free Software Foundation, Inc. Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
Contributed by Nathan Sidwell <nathan@codesourcery.com> Contributed by Nathan Sidwell <nathan@codesourcery.com>
This file is part of GCC. This file is part of GCC.
...@@ -20,46 +20,50 @@ along with GCC; see the file COPYING. If not, write to the Free ...@@ -20,46 +20,50 @@ along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */ 02111-1307, USA. */
#include "bconfig.h" #include <stdio.h>
#include "system.h" #include <stdlib.h>
#include "coretypes.h"
#include "tm.h"
#include "version.c" /* We want the actual string. */
int main (int, char **); /* Command line arguments are the base GCC version and the development
phase (the latter may be an empty string). */
int int
main (int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) main (int argc, char **argv)
{ {
unsigned version = 0; unsigned int version = 0;
unsigned char v[4]; unsigned char v[4];
unsigned ix; unsigned int ix;
char const *ptr = version_string; unsigned long major;
unsigned major, minor = 0; unsigned long minor = 0;
char s = 0; char phase = 0;
char *ptr;
major = atoi (ptr); if (argc != 3)
while (*ptr && *ptr != '.')
ptr++;
if (*ptr)
minor = atoi (ptr + 1);
while (*ptr)
if (*ptr++ == '(')
{ {
s = *ptr; fprintf (stderr, "usage: %s 'version' 'phase'\n", argv[0]);
break; return 1;
} }
ptr = argv[1];
major = strtoul (ptr, &ptr, 10);
if (*ptr == '.')
minor = strtoul (ptr + 1, 0, 10);
phase = argv[2][0];
if (phase == '\0')
phase = '*';
v[0] = (major < 10 ? '0' : 'A' - 10) + major; v[0] = (major < 10 ? '0' : 'A' - 10) + major;
v[1] = (minor / 10) + '0'; v[1] = (minor / 10) + '0';
v[2] = (minor % 10) + '0'; v[2] = (minor % 10) + '0';
v[3] = s ? s : '*'; v[3] = phase;
for (ix = 0; ix != 4; ix++) for (ix = 0; ix != 4; ix++)
version = (version << 8) | v[ix]; version = (version << 8) | v[ix];
printf ("/* Generated automatically by the program `%s'\n", argv[0]); printf ("/* Generated automatically by the program `%s'\n", argv[0]);
printf (" from `%s'. */\n", version_string); printf (" from `%s (%lu %lu) and %s (%c)'. */\n",
argv[1], major, minor, argv[2], phase);
printf ("\n"); printf ("\n");
printf ("#define GCOV_VERSION ((gcov_unsigned_t)%#08x) /* %.4s */\n", printf ("#define GCOV_VERSION ((gcov_unsigned_t)%#08x) /* %.4s */\n",
version, v); version, v);
......
...@@ -51,8 +51,8 @@ gcc_init_libintl (void) ...@@ -51,8 +51,8 @@ gcc_init_libintl (void)
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, LOCALEDIR); (void) bindtextdomain ("gcc", LOCALEDIR);
(void) textdomain (PACKAGE); (void) textdomain ("gcc");
/* Opening quotation mark. */ /* Opening quotation mark. */
open_quote = _("`"); open_quote = _("`");
......
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Make-lang.in (TEXI_JAVA_FILES): Add gcc-vers.texi.
2005-03-11 Tom Tromey <tromey@redhat.com> 2005-03-11 Tom Tromey <tromey@redhat.com>
* gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'. * gcj.texi (Invoking gcj-dbtool): Document 'gcj-dbtool -p'.
......
...@@ -370,8 +370,9 @@ java/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ ...@@ -370,8 +370,9 @@ java/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
-DDEFAULT_TARGET_VERSION=\"$(version)\" \ -DDEFAULT_TARGET_VERSION=\"$(version)\" \
$(srcdir)/java/jcf-path.c $(OUTPUT_OPTION) $(srcdir)/java/jcf-path.c $(OUTPUT_OPTION)
TEXI_JAVA_FILES = java/gcj.texi $(docdir)/include/fdl.texi $(docdir)/include/gpl.texi \ TEXI_JAVA_FILES = java/gcj.texi $(docdir)/include/fdl.texi \
$(docdir)/include/gcc-common.texi $(docdir)/include/gpl.texi $(docdir)/include/gcc-common.texi \
gcc-vers.texi
# Documentation # Documentation
doc/gcj.info: $(TEXI_JAVA_FILES) doc/gcj.info: $(TEXI_JAVA_FILES)
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
exeext=@host_exeext@ exeext=@host_exeext@
libdir=@libdir@ libdir=@libdir@
gcc_version=@gcc_version@
NOCOMMON_FLAG=@nocommon_flag@ NOCOMMON_FLAG=@nocommon_flag@
WARN_CFLAGS=@warn_cflags@ WARN_CFLAGS=@warn_cflags@
gcc_tmake_file=@tmake_file@ gcc_tmake_file=@tmake_file@
......
...@@ -124,6 +124,10 @@ save_string (const char *s, int len) ...@@ -124,6 +124,10 @@ save_string (const char *s, int len)
#if defined(_WIN32) && defined(ENABLE_WIN32_REGISTRY) #if defined(_WIN32) && defined(ENABLE_WIN32_REGISTRY)
#ifndef WIN32_REGISTRY_KEY
# define WIN32_REGISTRY_KEY BASEVER
#endif
/* Look up "key" in the registry, as above. */ /* Look up "key" in the registry, as above. */
static char * static char *
......
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* Make-lang.in (TEXI_TREELANG_FILES): Add gcc-vers.texi.
2005-03-06 James A. Morrison <phython@gcc.gnu.org> 2005-03-06 James A. Morrison <phython@gcc.gnu.org>
PR other/20326 PR other/20326
......
...@@ -166,7 +166,8 @@ TEXI_TREELANG_FILES = treelang/treelang.texi \ ...@@ -166,7 +166,8 @@ TEXI_TREELANG_FILES = treelang/treelang.texi \
$(docdir)/include/gcc-common.texi \ $(docdir)/include/gcc-common.texi \
$(docdir)/include/gpl.texi \ $(docdir)/include/gpl.texi \
$(docdir)/include/fdl.texi \ $(docdir)/include/fdl.texi \
$(docdir)/include/funding.texi $(docdir)/include/funding.texi \
gcc-vers.texi
doc/treelang.info: $(TEXI_TREELANG_FILES) doc/treelang.info: $(TEXI_TREELANG_FILES)
$(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir)/include -o $@ $< $(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir)/include -o $@ $<
......
#include "version.h" #include "version.h"
/* This is the string reported as the version number by all components /* This is the trailing component of the string reported as the
of the compiler. If you distribute a modified version of GCC, version number by all components of the compiler. For an official
please modify this string to indicate that, e.g. by putting your FSF release, it is empty. If you distribute a modified version of
organization's name in parentheses at the end of the string. */ GCC, please change this string to indicate that. The suggested
format is a leading space, followed by your organization's name
in parentheses. You may also wish to include a number indicating
the revision of your modified compiler. */
const char version_string[] = "4.1.0 20050316 (experimental)"; #define VERSUFFIX ""
/* This is the location of the online document giving instructions for /* This is the location of the online document giving instructions for
reporting bugs. If you distribute a modified version of GCC, reporting bugs. If you distribute a modified version of GCC,
...@@ -15,3 +18,8 @@ const char version_string[] = "4.1.0 20050316 (experimental)"; ...@@ -15,3 +18,8 @@ const char version_string[] = "4.1.0 20050316 (experimental)";
not bugs in your modifications.) */ not bugs in your modifications.) */
const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>"; const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
/* The complete version string, assembled from several pieces.
BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX;
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* include/Makefile.am (c++config.h): Depend on DATESTAMP from gcc
subdirectory. Generate #define of __GLIBCXX__ from contents of
that file.
* include/Makefile.in: Regenerate.
* include/bits/c++config: Do not define __GLIBCXX__.
2005-03-15 Paolo Carlini <pcarlini@suse.de> 2005-03-15 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/20352 PR libstdc++/20352
......
...@@ -521,8 +521,11 @@ stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias} ...@@ -521,8 +521,11 @@ stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
# Host includes dynamic. # Host includes dynamic.
${host_builddir}/c++config.h: ${top_builddir}/config.h \ ${host_builddir}/c++config.h: ${top_builddir}/config.h \
${glibcxx_srcdir}/include/bits/c++config \ ${glibcxx_srcdir}/include/bits/c++config \
stamp-${host_alias} stamp-${host_alias} \
${toplevel_srcdir}/gcc/DATESTAMP
@cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\ @cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\
sed -e 's/^/#define __GLIBCXX__ /' \
< ${toplevel_srcdir}/gcc/DATESTAMP >> $@ ;\
sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \ sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
-e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \ -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
-e 's/VERSION/_GLIBCXX_VERSION/g' \ -e 's/VERSION/_GLIBCXX_VERSION/g' \
......
...@@ -900,8 +900,11 @@ stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias} ...@@ -900,8 +900,11 @@ stamp-host: ${host_headers} ${host_headers_noinst} stamp-${host_alias}
# Host includes dynamic. # Host includes dynamic.
${host_builddir}/c++config.h: ${top_builddir}/config.h \ ${host_builddir}/c++config.h: ${top_builddir}/config.h \
${glibcxx_srcdir}/include/bits/c++config \ ${glibcxx_srcdir}/include/bits/c++config \
stamp-${host_alias} stamp-${host_alias} \
${toplevel_srcdir}/gcc/DATESTAMP
@cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\ @cat ${glibcxx_srcdir}/include/bits/c++config > $@ ;\
sed -e 's/^/#define __GLIBCXX__ /' \
< ${toplevel_srcdir}/gcc/DATESTAMP >> $@ ;\
sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \ sed -e 's/HAVE_/_GLIBCXX_HAVE_/g' \
-e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \ -e 's/PACKAGE/_GLIBCXX_PACKAGE/g' \
-e 's/VERSION/_GLIBCXX_VERSION/g' \ -e 's/VERSION/_GLIBCXX_VERSION/g' \
......
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
// Pick up any OS-specific definitions. // Pick up any OS-specific definitions.
#include <bits/os_defines.h> #include <bits/os_defines.h>
// The current version of the C++ library in compressed ISO date format.
#define __GLIBCXX__ 20050316
// Allow use of "export template." This is currently not a feature // Allow use of "export template." This is currently not a feature
// that g++ supports. // that g++ supports.
// #define _GLIBCXX_EXPORT_TEMPLATE 1 // #define _GLIBCXX_EXPORT_TEMPLATE 1
......
2005-03-15 Zack Weinberg <zack@codesourcery.com>
* README: Update.
* gcc_release: Update gcc/DEV-PHASE if that file exists, instead
of gcc/version.c.
* update_version: Handle updating gcc/DATESTAMP.
* update_web_docs: Generate gcc-vers.texi first.
2005-03-10 Ranjit Mathew <rmathew@hotmail.com> 2005-03-10 Ranjit Mathew <rmathew@hotmail.com>
* gcc_release (ADA_DIRS): Add "gnattools". * gcc_release (ADA_DIRS): Add "gnattools".
......
This directory contains various files used by the gccadmin account on This directory contains various files used by the gccadmin account on
gcc.gnu.org, mainly for automated tasks such as the daily update of gcc.gnu.org, mainly for automated tasks such as the daily update of
the date in version.c. There isn't presently any scheme for files the date in gcc/DATESTAMP. There isn't presently any scheme for files
checked in here to be automatically checked out and used by gccadmin, checked in here to be automatically checked out and used by gccadmin,
so the files in CVS and those used by gccadmin must be kept in sync so the files in CVS and those used by gccadmin must be kept in sync
manually. manually.
...@@ -140,7 +140,16 @@ EOF ...@@ -140,7 +140,16 @@ EOF
fi fi
done done
# Update `gcc/version.c'. # Update gcc/DEV-PHASE if it exists, otherwise gcc/version.c.
if [ -f ${SOURCE_DIRECTORY}/gcc/DEV-PHASE ]; then
[ `cat ${SOURCE_DIRECTORY}/gcc/BASE-VER` = ${RELEASE} ] || \
error "Release number ${RELEASE} does not match BASE-VER"
(changedir ${SOURCE_DIRECTORY}/gcc && \
: > DEV-PHASE && \
${CVS} ci -m 'Mark as release' DEV-PHASE) || \
error "Could not update DEV-PHASE"
else
for x in gcc/version.c; do for x in gcc/version.c; do
y=`basename ${x}` y=`basename ${x}`
(changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \ (changedir `dirname ${SOURCE_DIRECTORY}/${x}` && \
...@@ -149,6 +158,7 @@ EOF ...@@ -149,6 +158,7 @@ EOF
${CVS} ci -m 'Update version' ${y}) || \ ${CVS} ci -m 'Update version' ${y}) || \
error "Could not update ${x}" error "Could not update ${x}"
done done
fi
# Make sure we tag the sources for a final release. # Make sure we tag the sources for a final release.
TAG="gcc_`echo ${RELEASE} | tr . _`_release" TAG="gcc_`echo ${RELEASE} | tr . _`_release"
......
...@@ -36,6 +36,11 @@ textstring_FILES="gcc/gcc/version.c" ...@@ -36,6 +36,11 @@ textstring_FILES="gcc/gcc/version.c"
# version is contained within a #define # version is contained within a #define
cppdefine_FILES="gcc/libstdc++-v3/include/bits/c++config" cppdefine_FILES="gcc/libstdc++-v3/include/bits/c++config"
# version is all there is
datestamp_FILES="gcc/gcc/DATESTAMP"
FILES="$textstring_FILES $cppdefine_FILES $datestamp_FILES"
# Assume all will go well. # Assume all will go well.
RESULT=0 RESULT=0
...@@ -45,9 +50,9 @@ for BRANCH in $BRANCHES; do ...@@ -45,9 +50,9 @@ for BRANCH in $BRANCHES; do
# you check out files with -r HEAD, CVS will not let you check # you check out files with -r HEAD, CVS will not let you check
# in changes. # in changes.
if test "$BRANCH" = HEAD; then if test "$BRANCH" = HEAD; then
${CVS} co $textstring_FILES $cppdefine_FILES ${CVS} co $FILES
else else
${CVS} co -r $BRANCH $textstring_FILES $cppdefine_FILES ${CVS} co -r $BRANCH $FILES
fi fi
# There are no files to commit yet. # There are no files to commit yet.
...@@ -81,6 +86,19 @@ for BRANCH in $BRANCHES; do ...@@ -81,6 +86,19 @@ for BRANCH in $BRANCHES; do
fi fi
done done
for file in $datestamp_FILES; do
if test -f $file; then
echo ${CURR_DATE} > $file.new
if /usr/bin/cmp -s $file $file.new; then
rm -f $file.new
else
mv -f $file.new $file
COMMIT_FILES="$COMMIT_FILES $file"
fi
fi
done
if test -n "$COMMIT_FILES" \ if test -n "$COMMIT_FILES" \
&& ! ${CVS} commit -m "Daily bump." $COMMIT_FILES; then && ! ${CVS} commit -m "Daily bump." $COMMIT_FILES; then
# If we could not commit the files, indicate failure. # If we could not commit the files, indicate failure.
......
...@@ -88,7 +88,7 @@ find $CVSROOT/gcc -name \*.texi,v -print | fgrep -v -f/home/gccadmin/scripts/doc ...@@ -88,7 +88,7 @@ find $CVSROOT/gcc -name \*.texi,v -print | fgrep -v -f/home/gccadmin/scripts/doc
# Checkout all the texi files. # Checkout all the texi files.
cvs -Q export -r$RELEASE `cat FILES` gcc/gcc/doc/install.texi2html gcc/gcc/doc/include/texinfo.tex gcc/gcc/ada/xgnatugn.adb gcc/gcc/ada/ug_words cvs -Q export -r$RELEASE `cat FILES` gcc/gcc/doc/install.texi2html gcc/gcc/doc/include/texinfo.tex gcc/gcc/ada/xgnatugn.adb gcc/gcc/ada/ug_words gcc/gcc/BASE-VER gcc/gcc/DEV-PHASE
# Build a tarball of the sources. # Build a tarball of the sources.
tar cf docs-sources.tar gcc tar cf docs-sources.tar gcc
...@@ -107,6 +107,16 @@ if [ -f gcc/gcc/ada/xgnatugn.adb ]; then ...@@ -107,6 +107,16 @@ if [ -f gcc/gcc/ada/xgnatugn.adb ]; then
gcc/gcc/ada/ug_words gnat_ugn_unw.texi gcc/gcc/ada/ug_words gnat_ugn_unw.texi
fi fi
# Generate gcc-vers.texi.
(
echo "@set version-GCC $(cat gcc/gcc/BASE-VER)"
if "$(cat gcc/gcc/DEV-PHASE)" = "experimental"; then
echo "@set DEVELOPMENT"
else
echo "@clear DEVELOPMENT"
fi
) > $includedir/gcc-vers.texi
# Now convert the relevant files from texi to HTML and PostScript. # Now convert the relevant files from texi to HTML and PostScript.
for file in $MANUALS; do for file in $MANUALS; do
filename=`find . -name ${file}.texi` filename=`find . -name ${file}.texi`
......
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