aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1997-08-17 23:33:04 +0000
committerJeffrey A Law <law@cygnus.com>1997-08-17 23:33:04 +0000
commita80181ca8f3b2a8a5bfa634784b23fbd5fb88fec (patch)
treee72d2eaecaeeb2187315190525e659668bf377b0
parent73cb9b11660a7e4f67eb130f85504903ffc20de7 (diff)
* INSTALL: Rebuilt.
* install.texi: Remove "Object File Differences" section. Remove all references to zzz.o failing comparison tests. * version.c, version.h: Renamed from zzz.c and zzz.h. Remove date and time stamps so a 3 stage build reports no differences. * Make-lang.in: Corresponding changes. * Makefile.in: Likewise. * g77.c, parse.c: Likewise. So 3-stage build compares OK. Rename zzz.[ch] files to version.[ch]. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@14824 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/f/ChangeLog.gcc39
-rw-r--r--gcc/f/INSTALL12
-rw-r--r--gcc/f/Make-lang.in12
-rw-r--r--gcc/f/Makefile.in6
-rw-r--r--gcc/f/g77.c6
-rw-r--r--gcc/f/install.texi33
-rw-r--r--gcc/f/parse.c7
-rw-r--r--gcc/f/version.c (renamed from gcc/f/zzz.c)32
-rw-r--r--gcc/f/version.h (renamed from gcc/f/zzz.h)14
9 files changed, 38 insertions, 93 deletions
diff --git a/gcc/f/ChangeLog.gcc3 b/gcc/f/ChangeLog.gcc3
index 28b71e6a4dc..56f34dac485 100644
--- a/gcc/f/ChangeLog.gcc3
+++ b/gcc/f/ChangeLog.gcc3
@@ -1,5 +1,14 @@
Sun Aug 17 08:35:11 1997 Jeffrey A Law (law@cygnus.com)
+ * INSTALL: Rebuilt.
+ * install.texi: Remove "Object File Differences" section. Remove
+ all references to zzz.o failing comparison tests.
+ * version.c, version.h: Renamed from zzz.c and zzz.h. Remove
+ date and time stamps so a 3 stage build reports no differences.
+ * Make-lang.in: Corresponding changes.
+ * Makefile.in: Likewise.
+ * g77.c, parse.c: Likewise.
+
* intdoc.texi: Remove generated file from distribution.
Fri Aug 15 13:44:14 1997 Jeffrey A Law (law@cygnus.com)
diff --git a/gcc/f/INSTALL b/gcc/f/INSTALL
index 97423be1498..c26e5fba54a 100644
--- a/gcc/f/INSTALL
+++ b/gcc/f/INSTALL
@@ -207,18 +207,6 @@ their systems had a complete, working one. Unfortunately, this meant
inconveniencing users of systems not having `strtoul()', but they're
using obsolete (and generally unsupported) systems anyway.
-Object File Differences
-.......................
-
- A comparison of object files after building Stage 3 during a
-bootstrap build will result in `gcc/f/zzz.o' being flagged as different
-from the Stage 2 version. That is because it contains a string with an
-expansion of the `__TIME__' macro, which expands to the current time of
-day. It is nothing to worry about, since `gcc/f/zzz.c' doesn't contain
-any actual code. It does allow you to override its use of `__DATE__'
-and `__TIME__' by defining macros for the compilation--see the source
-code for details.
-
Cleanup Kills Stage Directories
...............................
diff --git a/gcc/f/Make-lang.in b/gcc/f/Make-lang.in
index e74174a6abe..53d2f530511 100644
--- a/gcc/f/Make-lang.in
+++ b/gcc/f/Make-lang.in
@@ -108,21 +108,21 @@ F77 f77: f771 f77-runtime
f77.stage4 f77.distdir f77.rebuilt
# Create the compiler driver for g77 (only if `f77' is in LANGUAGES).
-g77: $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(CONFIG_H) $(LIBDEPS)
+g77: $(srcdir)/f/g77.c $(srcdir)/f/version.c $(CONFIG_H) $(LIBDEPS)
case '$(LANGUAGES)' in \
*f77*) \
$(CC) $(ALL_CFLAGS) $(INCLUDES) $(LDFLAGS) \
- -o $@ $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(LIBS) ;; \
+ -o $@ $(srcdir)/f/g77.c $(srcdir)/f/version.c $(LIBS) ;; \
esac
# Create a version of the g77 driver which calls the cross-compiler
# (only if `f77' is in LANGUAGES).
-g77-cross: $(srcdir)/f/g77.c $(srcdir)/f/zzz.c version.o $(LIBDEPS)
+g77-cross: $(srcdir)/f/g77.c $(srcdir)/f/version.c version.o $(LIBDEPS)
case '$(LANGUAGES)' in \
*f77*) \
$(CC) $(ALL_CFLAGS) $(INCLUDES) $(LDFLAGS) \
-DGCC_NAME=\"$(GCC_CROSS_NAME)\" \
- -o $@ $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(LIBS) ;; \
+ -o $@ $(srcdir)/f/g77.c $(srcdir)/f/version.c $(LIBS) ;; \
esac
F77_SRCS = \
@@ -226,8 +226,8 @@ F77_SRCS = \
$(srcdir)/f/type.h \
$(srcdir)/f/where.c \
$(srcdir)/f/where.h \
- $(srcdir)/f/zzz.c \
- $(srcdir)/f/zzz.h
+ $(srcdir)/f/version.c \
+ $(srcdir)/f/version.h
f771: $(P) $(F77_SRCS) $(LIBDEPS) stamp-objlist f/Makefile
$(MAKE) -f f/Makefile $(FLAGS_TO_PASS) VPATH=$(srcdir) srcdir=$(srcdir) f771
diff --git a/gcc/f/Makefile.in b/gcc/f/Makefile.in
index 44e3d1914e6..f110408109e 100644
--- a/gcc/f/Makefile.in
+++ b/gcc/f/Makefile.in
@@ -243,7 +243,7 @@ F77_OBJS = \
f/top.o \
f/type.o \
f/where.o \
- f/zzz.o
+ f/version.o
# Language-independent object files.
OBJS = `cat stamp-objlist | sed -e "s: : :g" -e "s: : f/:g"`
@@ -374,7 +374,7 @@ f/parse.o: f/parse.c f/proj.h $(ASSERT_H) f/top.h f/malloc.h f/where.h $(GLIMITS
f/com.h f/com-rt.def $(TREE_H) f/bld.h f/bld-op.def f/bit.h f/info.h \
f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def f/lex.h \
f/type.h f/intrin.h f/intrin.def f/lab.h f/symbol.h f/symbol.def f/equiv.h \
- f/storag.h f/global.h f/name.h f/zzz.h $(FLAGS_H)
+ f/storag.h f/global.h f/name.h f/version.h $(FLAGS_H)
f/proj.o: f/proj.c f/proj.h $(ASSERT_H) $(GLIMITS_H)
f/src.o: f/src.c f/proj.h $(ASSERT_H) f/src.h f/bad.h f/bad.def f/where.h \
$(GLIMITS_H) f/top.h f/malloc.h
@@ -467,7 +467,7 @@ f/top.o: f/top.c f/proj.h $(ASSERT_H) f/top.h f/malloc.h f/where.h $(GLIMITS_H)
f/type.o: f/type.c f/proj.h $(ASSERT_H) f/type.h f/malloc.h
f/where.o: f/where.c f/proj.h $(ASSERT_H) f/where.h $(GLIMITS_H) f/top.h f/malloc.h \
f/lex.h
-f/zzz.o: f/zzz.c f/proj.h $(ASSERT_H) f/zzz.h
+f/version.o: f/version.c f/proj.h $(ASSERT_H) f/version.h
# The rest of this list (Fortran 77 language-specific files) is hand-generated.
diff --git a/gcc/f/g77.c b/gcc/f/g77.c
index 0d6f07fae30..dc9f7764b26 100644
--- a/gcc/f/g77.c
+++ b/gcc/f/g77.c
@@ -72,7 +72,7 @@ g77: `f77' language not included in list of languages\n\
#else /* LANGUAGE_F77 == 1 */
#include "config.j"
-#include "zzz.h"
+#include "version.h"
#include <sys/types.h>
#include <errno.h>
@@ -1264,7 +1264,7 @@ main (argc, argv)
case OPTION_v:
if (!verbose)
- fprintf (stderr, "g77 version %s\n", ffezzz_version_string);
+ fprintf (stderr, "g77 version %s\n", ffe_version_string);
verbose = 1;
break;
@@ -1291,7 +1291,7 @@ You may redistribute copies of GNU Fortran\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the file named COPYING\n\
or type the command `info -f g77 Copying'.\n\
-", ffezzz_version_string);
+", ffe_version_string);
exit (0);
break;
diff --git a/gcc/f/install.texi b/gcc/f/install.texi
index f6f403ddfdd..0159c15e975 100644
--- a/gcc/f/install.texi
+++ b/gcc/f/install.texi
@@ -195,8 +195,6 @@ These problems can occur on most or all systems.
* Building GNU CC Necessary:: Why you can't build @emph{just} Fortran.
* Missing strtoul:: If linking @code{f771} fails due to an
unresolved reference to @code{strtoul}.
-* Object File Differences:: It's okay that @samp{make compare} will
- flag @file{f/zzz.o}.
* Cleanup Kills Stage Directories:: A minor nit for @code{g77} developers.
* Missing gperf?:: When building requires @code{gperf}.
@end menu
@@ -288,26 +286,6 @@ Unfortunately, this meant inconveniencing users of systems not
having @code{strtoul()}, but they're using obsolete (and generally
unsupported) systems anyway.
-@node Object File Differences
-@subsubsection Object File Differences
-@cindex zzz.o
-@cindex zzz.c
-@cindex object file, differences
-@cindex differences between object files
-@cindex make compare
-
-A comparison of object files after building Stage 3 during a
-bootstrap build will result in @file{gcc/f/zzz.o} being flagged
-as different from the Stage 2 version.
-That is because it
-contains a string with an expansion of the @code{__TIME__} macro,
-which expands to the current time of day.
-It is nothing to worry about, since
-@file{gcc/f/zzz.c} doesn't contain any actual code.
-It does allow you to override its use of @code{__DATE__} and
-@code{__TIME__} by defining macros for the compilation---see the
-source code for details.
-
@node Cleanup Kills Stage Directories
@subsubsection Cleanup Kills Stage Directories
@cindex stage directories
@@ -750,11 +728,8 @@ sh[12]# @kbd{make bootstrap}
[This takes a long time, and is where most problems occur.]
@set build-gcc 12
sh[13]# @kbd{make compare}
-[This verifies that the compiler is `sane'. Only
-the file `f/zzz.o' (aka `tmp-foo1' and `tmp-foo2')
-should be in the list of object files this command
-prints as having different contents. If other files
-are printed, you have likely found a g77 bug.]
+[This verifies that the compiler is `sane'.
+If any files are printed, you have likely found a g77 bug.]
@set compare-gcc 13
sh[14]# @kbd{rm -fr stage1}
@set rm-stage1 14
@@ -894,8 +869,8 @@ information on this step.
@item Step @value{compare-gcc}: @kbd{make compare}
@xref{Bug Lists,,Where to Port Bugs}, for information
-on where to report that you observed more than
-@file{f/zzz.o} having different contents during this
+on where to report that you observed files
+having different contents during this
phase.
@xref{Bug Reporting,,How to Report Bugs}, for
diff --git a/gcc/f/parse.c b/gcc/f/parse.c
index 7a48fbb58f5..62b98f31930 100644
--- a/gcc/f/parse.c
+++ b/gcc/f/parse.c
@@ -25,7 +25,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "top.h"
#include "com.h"
#include "where.h"
-#include "zzz.h"
+#include "version.h"
#if FFECOM_targetCURRENT == FFECOM_targetGCC
#include "flags.j"
#endif
@@ -47,10 +47,7 @@ yyparse ()
ffewhereFile wf;
if (ffe_is_version ())
- fprintf (stderr, "GNU Fortran Front End version %s compiled: %s %s\n",
- ffezzz_version_string,
- ffezzz_date,
- ffezzz_time);
+ fprintf (stderr, "GNU Fortran Front End version %s\n", ffe_version_string);
#if FFECOM_targetCURRENT == FFECOM_targetFFE
ffe_init_0 ();
diff --git a/gcc/f/zzz.c b/gcc/f/version.c
index cff8e54143f..7bc758eb83b 100644
--- a/gcc/f/zzz.c
+++ b/gcc/f/version.c
@@ -1,5 +1,5 @@
-/* zzz.c -- Implementation File (module.c template V1.0)
- Copyright (C) 1995 Free Software Foundation, Inc.
+/* version.c -- Implementation File (module.c template V1.0)
+ Copyright (C) 1995, 1997 Free Software Foundation, Inc.
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
This file is part of GNU Fortran.
@@ -29,28 +29,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
Modifications:
*/
-#include "zzz.h"
-
-/* If you want to override the version date/time info with your own
- macros, e.g. for a consistent distribution when bootstrapping,
- go ahead! */
-
-#ifndef FFEZZZ_DATE
-#ifdef __DATE__
-#define FFEZZZ_DATE __DATE__
-#else /* !defined (__DATE__) */
-#define FFEZZZ_DATE "date unknown"
-#endif /* !defined (__DATE__) */
-#endif /* !defined (FFEZZZ_DATE) */
-
-#ifndef FFEZZZ_TIME
-#ifdef __TIME__
-#define FFEZZZ_TIME __TIME__
-#else /* !defined (__TIME__) */
-#define FFEZZZ_TIME "time unknown"
-#endif /* !defined (__TIME__) */
-#endif /* !defined (FFEZZZ_TIME) */
-
-char *ffezzz_version_string = "0.5.21-19970811";
-char *ffezzz_date = FFEZZZ_DATE;
-char *ffezzz_time = FFEZZZ_TIME;
+#include "version.h"
+
+char *ffe_version_string = "0.5.21-19970811";
diff --git a/gcc/f/zzz.h b/gcc/f/version.h
index 9414f97f43e..f8dcd327e27 100644
--- a/gcc/f/zzz.h
+++ b/gcc/f/version.h
@@ -1,5 +1,5 @@
-/* zzz.h -- Public #include File (module.h template V1.0)
- Copyright (C) 1995 Free Software Foundation, Inc.
+/* version.h -- Public #include File (module.h template V1.0)
+ Copyright (C) 1995, 1997 Free Software Foundation, Inc.
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
This file is part of GNU Fortran.
@@ -20,16 +20,14 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
Owning Modules:
- zzz.c
+ version.c
Modifications:
*/
-#ifndef _H_f_zzz
-#define _H_f_zzz
+#ifndef _H_f_version
+#define _H_f_version
-extern char *ffezzz_version_string;
-extern char *ffezzz_date;
-extern char *ffezzz_time;
+extern char *ffe_version_string;
#endif