summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 15:58:01 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-27 15:58:01 +0000
commit35718364fe53fa324a63f12a01ffd995d1eb49a1 (patch)
treebb7a338367b193011409401ea881dc277748ada3
parent83de9b44256e69686c347b9a27d7230c18dbea42 (diff)
downloadppe42-gcc-35718364fe53fa324a63f12a01ffd995d1eb49a1.tar.gz
ppe42-gcc-35718364fe53fa324a63f12a01ffd995d1eb49a1.zip
* fini.c (main): Avoid automatic aggregate initialization.
* proj.h: Indent #error directive. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35294 138bc75d-0d04-0410-961f-82ee72b054a4
-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 bfeb7cf0036..72a63b0cb53 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 e5eb5391ac1..f685df1847a 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 8671fdaf431..d0b41a23f9a 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().
OpenPOWER on IntegriCloud