summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2009-07-22 01:07:11 +0000
committerbms <bms@FreeBSD.org>2009-07-22 01:07:11 +0000
commit062f7fc07c204cab2f68787e1ea1af490f20a8d0 (patch)
tree194c71c924e202742dcb3ec46875af3a3afa4be5 /contrib
parent1f4b104d4db1667a601af3c0725a15f5e503203e (diff)
downloadFreeBSD-src-062f7fc07c204cab2f68787e1ea1af490f20a8d0.zip
FreeBSD-src-062f7fc07c204cab2f68787e1ea1af490f20a8d0.tar.gz
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)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc/dwarf2out.c b/contrib/gcc/dwarf2out.c
index 30bb90f..18ea2ad 100644
--- a/contrib/gcc/dwarf2out.c
+++ b/contrib/gcc/dwarf2out.c
@@ -10007,7 +10007,7 @@ reference_to_unused (tree * tp, int * walk_subtrees,
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);
OpenPOWER on IntegriCloud