This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure to bootstrap gcc cvs HEAD: calls.c:2215: warning: `old_stack_pointer_delta'might be used uninitialized in this function


Christian Joensson wrote:
I have just tried to bootstrap gcc cvs HEAD (LAST_UPDATED: Sat Apr 19 08:03:47 GMT 2003) on an up to date cygwin system, I get to this point:

/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/. -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/config -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/../include /usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/calls.c -o calls.o
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/calls.c: In function `expand_call':
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/calls.c:2215: warning: `old_stack_pointer_delta' might be used uninitialized in this function

This one should help. Though, not sure if correct. At least bootstrap completes on my platforms....


Andreas

RCS file: /cvs/gcc/gcc/gcc/calls.c,v
retrieving revision 1.266
diff -u -r1.266 calls.c
--- gcc/calls.c 18 Apr 2003 22:20:55 -0000      1.266
+++ gcc/calls.c 19 Apr 2003 06:01:40 -0000
@@ -2212,7 +2212,7 @@
   /* Some stack pointer alterations we make are performed via
      allocate_dynamic_stack_space. This modifies the stack_pointer_delta,
      which we then also need to save/restore along the way.  */
-  int old_stack_pointer_delta;
+  int old_stack_pointer_delta = 0;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]