Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2009 16:50:49 +0000 (UTC)
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r195764 - stable/7/contrib/gcc
Message-ID:  <200907191650.n6JGons0048592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bms
Date: Sun Jul 19 16:50:48 2009
New Revision: 195764
URL: http://svn.freebsd.org/changeset/base/195764

Log:
  Output debug information for global 'using' declarations, instead
  of just blowing up. A very similar change to this exists which is
  GPLv3 licensed, this is my own change.
  
  See also:	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899
  Reviewed by:	luigi

Modified:
  stable/7/contrib/gcc/dwarf2out.c

Modified: stable/7/contrib/gcc/dwarf2out.c
==============================================================================
--- stable/7/contrib/gcc/dwarf2out.c	Sun Jul 19 16:48:25 2009	(r195763)
+++ stable/7/contrib/gcc/dwarf2out.c	Sun Jul 19 16:50:48 2009	(r195764)
@@ -10007,7 +10007,7 @@ reference_to_unused (tree * tp, int * wa
     return NULL_TREE;
   else if (!cgraph_global_info_ready
 	   && (TREE_CODE (*tp) == VAR_DECL || TREE_CODE (*tp) == FUNCTION_DECL))
-    gcc_unreachable ();
+    return *tp;
   else if (DECL_P (*tp) && TREE_CODE (*tp) == VAR_DECL)
     {
       struct cgraph_varpool_node *node = cgraph_varpool_node (*tp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907191650.n6JGons0048592>