mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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)
This commit is contained in:
parent
a08362ce46
commit
f667763060
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195815
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user