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]

[C++ PATCH]: Remove unreachable code


Hi,
I've installed this patch to remove some unreachable code I discoveded
in fixing 11282

booted & tested on i686-pc-linux-gnu

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>

	* decl.c (reshape_init): Remove unreachable code.

Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1096
diff -c -3 -p -r1.1096 decl.c
*** cp/decl.c	22 Jul 2003 23:30:14 -0000	1.1096
--- cp/decl.c	24 Jul 2003 12:16:34 -0000
*************** reshape_init (tree type, tree *initp)
*** 7465,7477 ****
    old_init_value = (TREE_CODE (*initp) == TREE_LIST
  		    ? TREE_VALUE (*initp) : old_init);
  
!   /* For some parse errors, OLD_INIT_VALUE may be NULL.  */
!   if (!old_init_value)
!     {
!       my_friendly_assert (TREE_CODE (old_init) == TREE_LIST, 20021202);
!       TREE_VALUE (old_init) = error_mark_node;
!       return old_init;
!     }
  
    /* If the initializer is brace-enclosed, pull initializers from the
       enclosed elements.  Advance past the brace-enclosed initializer
--- 7465,7471 ----
    old_init_value = (TREE_CODE (*initp) == TREE_LIST
  		    ? TREE_VALUE (*initp) : old_init);
  
!   my_friendly_assert (old_init_value, 20030723);
  
    /* If the initializer is brace-enclosed, pull initializers from the
       enclosed elements.  Advance past the brace-enclosed initializer

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