This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
varasm.c --enable-checking fix
- To: gcc-patches at gcc dot gnu dot org
- Subject: varasm.c --enable-checking fix
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 02 Sep 1999 00:31:21 -0600
- Reply-To: law at cygnus dot com
Fixes an enable-checking failure Graham pointed out.
* varasm.c (mark_constant_pool): When marking indirect references,
only look at SYMBOL_REFs.
Index: varasm.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/varasm.c,v
retrieving revision 1.70
diff -c -3 -p -r1.70 varasm.c
*** varasm.c 1999/08/31 19:39:08 1.70
--- varasm.c 1999/09/02 06:37:05
*************** mark_constant_pool ()
*** 3745,3752 ****
if (!pool->mark)
continue;
! /* skip CONST_DOUBLEs too - correct? */
! if (GET_CODE (pool->constant) == CONST_DOUBLE)
continue;
label = XSTR (pool->constant, 0);
--- 3745,3752 ----
if (!pool->mark)
continue;
! /* Skip everything except SYMBOL_REFs. */
! if (GET_CODE (pool->constant) != SYMBOL_REF)
continue;
label = XSTR (pool->constant, 0);