aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-07-27 15:58:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-07-27 15:58:01 +0000
commitf25aa0d32d0cbb9fc2f60bd793d0ed8af8e210ec (patch)
treebb7a338367b193011409401ea881dc277748ada3 /gcc
parentbebe2280058086f18f66e4fc163eb0f03539abc2 (diff)
downloadgcc-f25aa0d32d0cbb9fc2f60bd793d0ed8af8e210ec.zip
gcc-f25aa0d32d0cbb9fc2f60bd793d0ed8af8e210ec.tar.gz
gcc-f25aa0d32d0cbb9fc2f60bd793d0ed8af8e210ec.tar.bz2
fini.c (main): Avoid automatic aggregate initialization.
* fini.c (main): Avoid automatic aggregate initialization. * proj.h: Indent #error directive. From-SVN: r35294
Diffstat (limited to 'gcc')
-rw-r--r--gcc/f/ChangeLog6
-rw-r--r--gcc/f/fini.c4
-rw-r--r--gcc/f/proj.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index bfeb7cf..72a63b0 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jul 27 11:50:08 2000 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * fini.c (main): Avoid automatic aggregate initialization.
+
+ * proj.h: Indent #error directive.
+
2000-07-26 Toon Moene <toon@moene.indiv.nluug.nl>
* lang-specs.h: Remove one /dev/null from tradcpp invocation.
diff --git a/gcc/f/fini.c b/gcc/f/fini.c
index e5eb539..f685df1 100644
--- a/gcc/f/fini.c
+++ b/gcc/f/fini.c
@@ -234,7 +234,7 @@ int
main (int argc, char **argv)
{
char buf[MAXNAMELEN];
- char last_buf[MAXNAMELEN] = "";
+ char last_buf[MAXNAMELEN];
char kwname[MAXNAMELEN];
char routine[32];
char type[32];
@@ -256,6 +256,8 @@ main (int argc, char **argv)
int cc;
bool do_exit = FALSE;
+ last_buf[0] = '\0';
+
for (i = 0; ((size_t) i) < ARRAY_SIZE (names); ++i)
{ /* Initialize length/name ordered list roots. */
names[i].first = (name) &names[i];
diff --git a/gcc/f/proj.h b/gcc/f/proj.h
index 8671fda..d0b41a2 100644
--- a/gcc/f/proj.h
+++ b/gcc/f/proj.h
@@ -32,7 +32,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "system.h"
#if (GCC_VERSION < 2000)
-#error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)."
+ #error "You have to use gcc 2.x to build g77 (might be fixed in g77-0.6)."
#endif
/* Include files everyone gets. <assert.h> is needed for assert().