]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cppexp.c (parse_charconst): Initialize c.
authorZack Weinberg <zack@rabi.columbia.edu>
Tue, 6 Apr 1999 10:04:10 +0000 (10:04 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 6 Apr 1999 10:04:10 +0000 (10:04 +0000)
1999-04-06 12:56 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
* cppexp.c (parse_charconst): Initialize c.
(cpp_parse_expr): Initialize rprio.
* cppfiles.c (merge_include_chains): Initialize prev.
(finclude) Set fp->line_base to fp->buf before returning.
* cpphash.c (macroexpand): Initialize token.
* cppspec.c (lang_specific_driver): Change suff to
const char *const *.

From-SVN: r26213

gcc/ChangeLog
gcc/cppexp.c
gcc/cppfiles.c
gcc/cpphash.c
gcc/cppspec.c

index 20fd4a2f9d38e51fa1145f9880d7d4aecb2a87ee..634060a1a0d2c7f8ce3626b9462238a6b3ce0179 100644 (file)
@@ -1,3 +1,13 @@
+1999-04-06 12:56 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * cppexp.c (parse_charconst): Initialize c.
+       (cpp_parse_expr): Initialize rprio.
+       * cppfiles.c (merge_include_chains): Initialize prev.
+       (finclude) Set fp->line_base to fp->buf before returning.
+       * cpphash.c (macroexpand): Initialize token.
+       * cppspec.c (lang_specific_driver): Change suff to 
+       const char *const *.
+
 1999-04-06 12:51 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
 
        * cppinit.c (install_predefs): Delete function.
index eaec4686d7590ad84eed8ddf76adf83147558456..24e7c2313d929d495f09e50609411a581167bf84 100644 (file)
@@ -254,10 +254,10 @@ parse_charconst (pfile, start, end)
 
   /* FIXME: Should use reentrant multibyte functions.  */
 #ifdef MULTIBYTE_CHARS
-  wchar_t c;
+  wchar_t c = (wchar_t)-1;
   (void) mbtowc (NULL_PTR, NULL_PTR, 0);
 #else
-  int c;
+  int c = -1;
 #endif
 
   if (*ptr == 'L')
@@ -701,7 +701,7 @@ cpp_parse_expr (pfile)
   struct operation *stack = init_stack;
   struct operation *limit = stack + INIT_STACK_SIZE;
   register struct operation *top = stack;
-  int lprio, rprio;
+  int lprio, rprio = 0;
   int skip_evaluation = 0;
 
   top->rprio = 0;
index aac49bd5437212117ece5de99f395f1282056b8c..4c64b9be69fd19f13201a913aacfa454dffb9b99 100644 (file)
@@ -112,7 +112,7 @@ merge_include_chains (opts)
      Note that this algorithm is quadratic in the number of -I switches,
      which is acceptable since there aren't usually that many of them.  */
 
-  for (cur = quote; cur; cur = cur->next)
+  for (cur = quote, prev = NULL; cur; cur = cur->next)
     {
       for (other = quote; other != cur; other = other->next)
         if (INO_T_EQ (cur->ino, other->ino)
@@ -680,6 +680,7 @@ finclude (pfile, fd, ihash)
       fp->system_header_p = ihash->foundhere->sysp;
   fp->lineno = 1;
   fp->colno = 1;
+  fp->line_base = fp->buf;
   fp->cleanup = file_cleanup;
 
   /* The ->actual_dir field is only used when ignore_srcdir is not in effect;
index ff63bd816811b1955d330b18ecb47e342983d458..87946f2524ba595111ec169dd61d8ac0556ea3ad 100644 (file)
@@ -1081,7 +1081,7 @@ macroexpand (pfile, hp)
 
   if (nargs >= 0)
     {
-      enum cpp_token token;
+      enum cpp_token token = CPP_EOF;
 
       args = (struct argdata *) alloca ((nargs + 1) * sizeof (struct argdata));
 
index 387b1ce4d1f7fcddc4114b6237a6e3093e3f2f53..4a1ee3315e72ee05ae59de9fd00103a457897298 100644 (file)
@@ -146,7 +146,7 @@ lang_specific_driver (errfn, in_argc, in_argv, in_added_libraries)
        {
          int l = strlen (argv[i]);
          int known = 0;
-         const char **suff;
+         const char *const *suff;
          
          read_stdin = 0;
          for (suff = known_suffixes; *suff; suff++)