This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for warning regression in except.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Nov 2002 21:14:34 -0500 (EST)
- Subject: Patch installed for warning regression in except.c
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))