diff options
author | Bruce M Simpson <bms@FreeBSD.org> | 2009-07-22 01:07:11 +0000 |
---|---|---|
committer | Bruce M Simpson <bms@FreeBSD.org> | 2009-07-22 01:07:11 +0000 |
commit | f667763060d71572b9e911e776d1c9ef578381a1 (patch) | |
tree | 194c71c924e202742dcb3ec46875af3a3afa4be5 /contrib | |
parent | a08362ce46087f91e82c8dbadb33591c33e6c1e4 (diff) | |
download | src-f667763060d71572b9e911e776d1c9ef578381a1.tar.gz src-f667763060d71572b9e911e776d1c9ef578381a1.zip |
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)
Notes
Notes:
svn path=/head/; revision=195815
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc/dwarf2out.c b/contrib/gcc/dwarf2out.c index 30bb90f1b5b9..18ea2ad4b5d8 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); |