This is the mail archive of the gcc-patches@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]

[tree-ssa] Reset DECL_TOO_LATE for copy of decl


Hello,

DECL_TOO_LATE should be cleared for labels in copy of inlined functions,
as otherwise we get bogus
"jump to `...' invalidly jumps into binding contour" errors.

Zdenek

	* integrate.c (copy_decl_for_inlining): Reset DECL_TOO_LATE.

Index: integrate.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/integrate.c,v
retrieving revision 1.197.2.21
diff -c -3 -p -r1.197.2.21 integrate.c
*** integrate.c	23 Jul 2003 16:59:49 -0000	1.197.2.21
--- integrate.c	19 Aug 2003 21:04:42 -0000
*************** copy_decl_for_inlining (tree decl, tree 
*** 376,382 ****
  	 address has been taken; it's for internal bookkeeping in
  	 expand_goto_internal.  */
        if (TREE_CODE (copy) == LABEL_DECL)
! 	TREE_ADDRESSABLE (copy) = 0;
      }
  
    /* Set the DECL_ABSTRACT_ORIGIN so the debugging routines know what
--- 376,385 ----
  	 address has been taken; it's for internal bookkeeping in
  	 expand_goto_internal.  */
        if (TREE_CODE (copy) == LABEL_DECL)
! 	{
! 	  TREE_ADDRESSABLE (copy) = 0;
!  	  DECL_TOO_LATE (copy) = 0;
! 	}
      }
  
    /* Set the DECL_ABSTRACT_ORIGIN so the debugging routines know what


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