diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-22 22:45:27 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-22 22:45:27 +0100 |
commit | bdaf8be1b2e3514b8bbcdd1042136e7d91b3c3f3 (patch) | |
tree | 45bcd47159e0eaa0651fa0f09f2a27ff62f35a14 /gcc/c-family/c-common.h | |
parent | df418f1d3cba53a4d3d20c2f640a250dd4c1bfa3 (diff) | |
download | gcc-bdaf8be1b2e3514b8bbcdd1042136e7d91b3c3f3.zip gcc-bdaf8be1b2e3514b8bbcdd1042136e7d91b3c3f3.tar.gz gcc-bdaf8be1b2e3514b8bbcdd1042136e7d91b3c3f3.tar.bz2 |
re PR c/90677 (gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node' is not defined as a type)
PR c/90677
* c-common.h (identifier_global_tag): Declare.
* c-format.c (get_pointer_to_named_type): Renamed to ...
(get_named_type): ... this. Use identifier_global_tag instead of
identifier_global_value, handle the return value being a TYPE_P.
(init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
to call get_named_type instead. Formatting fixes.
c/
* c-decl.c (identifier_global_tag): Define.
cp/
* cp-objcp-common.c (identifier_global_tag): Define.
testsuite/
* c-c++-common/pr90677.c: New test.
From-SVN: r278634
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r-- | gcc/c-family/c-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index bed4d0c..2bcb54f 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -811,6 +811,7 @@ extern void c_register_addr_space (const char *str, addr_space_t as); extern bool in_late_binary_op; extern const char *c_addr_space_name (addr_space_t as); extern tree identifier_global_value (tree); +extern tree identifier_global_tag (tree); extern bool names_builtin_p (const char *); extern tree c_linkage_bindings (tree); extern void record_builtin_type (enum rid, const char *, tree); |