Patch installed for warning regression in except.c

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu Nov 28 12:14:00 GMT 2002


Patch below fixes this recent warning regression:
 > except.c:3600: warning: unused variable `tt_format'

Bootstrapped on sparc-sun-solaris2.7 and installed as "obvious".

		--Kaveh


2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* except.c (default_exception_section): Move variable into the
	scope where it is used.

diff -rup orig/egcc-CVS20021126/gcc/except.c egcc-CVS20021126/gcc/except.c
--- orig/egcc-CVS20021126/gcc/except.c	2002-11-26 16:00:36.000000000 -0500
+++ egcc-CVS20021126/gcc/except.c	2002-11-27 20:36:52.385584879 -0500
@@ -3597,10 +3597,10 @@ default_exception_section ()
 {
   if (targetm.have_named_sections)
     {
-      int tt_format = ASM_PREFERRED_EH_DATA_FORMAT (/*code=*/0, /*global=*/1);
       int flags;
-
 #ifdef HAVE_LD_RO_RW_SECTION_MIXING
+      int tt_format = ASM_PREFERRED_EH_DATA_FORMAT (/*code=*/0, /*global=*/1);
+
       flags = (! flag_pic
 	       || ((tt_format & 0x70) != DW_EH_PE_absptr
 		   && (tt_format & 0x70) != DW_EH_PE_aligned))



More information about the Gcc-patches mailing list