Author: bms
Date: Wed Jul 22 01:07:11 2009
New Revision: 195815
URL: http://svn.freebsd.org/changeset/base/195815

Log:
  Output DWARF 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.
  
  This problem was triggered by running the Boost regression tests.
  
  See also:     http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31899
  Reviewed by:  luigi
  Approved by:  re (kib)

Modified:
  head/contrib/gcc/dwarf2out.c

Modified: head/contrib/gcc/dwarf2out.c
==============================================================================
--- head/contrib/gcc/dwarf2out.c        Tue Jul 21 21:58:55 2009        
(r195814)
+++ head/contrib/gcc/dwarf2out.c        Wed Jul 22 01:07:11 2009        
(r195815)
@@ -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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to