This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: eliminate warning in mips.h INITIAL_ELIMINATION_OFFSET
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch: eliminate warning in mips.h INITIAL_ELIMINATION_OFFSET
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 31 Aug 2001 11:50:39 -0400 (EDT)
- Cc: echristo at redhat dot com
This patch zaps the warning below by adding an `else abort' clause.
That eliminates a path where the OFFSET parameter to
INITIAL_ELIMINATION_OFFSET would be uninitialized.
(If OFFSET really should get a default value, let me know and I'll
change the patch.)
> reload1.c:3308: warning: `t' might be used uninitialized in this function
Bootstrapped on mips-sgi-irix6.2. Okay to install?
--Kaveh
2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
diff -rup orig/egcs-CVS20010829/gcc/config/mips/mips.h egcs-CVS20010829/gcc/config/mips/mips.h
--- orig/egcs-CVS20010829/gcc/config/mips/mips.h Wed Aug 29 07:42:51 2001
+++ egcs-CVS20010829/gcc/config/mips/mips.h Thu Aug 30 19:21:11 2001
@@ -2308,6 +2308,8 @@ extern struct mips_frame_info current_fr
+ ((UNITS_PER_WORD - (POINTER_SIZE / BITS_PER_UNIT)) \
* (BYTES_BIG_ENDIAN != 0)); \
} \
+ else \
+ abort(); \
}
/* If we generate an insn to push BYTES bytes,