[Bug c/90677] [9 Regression] gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node' is not defined as a type
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 20 16:57:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90677
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 20 16:56:30 2019
New Revision: 279650
URL: https://gcc.gnu.org/viewcvs?rev=279650&root=gcc&view=rev
Log:
Backported from mainline
2019-11-22 Jakub Jelinek <jakub@redhat.com>
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-decl.c (identifier_global_tag): Define.
* cp-objcp-common.c (identifier_global_tag): Define.
* c-c++-common/pr90677.c: New test.
Added:
branches/gcc-9-branch/gcc/testsuite/c-c++-common/pr90677.c
Modified:
branches/gcc-9-branch/gcc/c-family/ChangeLog
branches/gcc-9-branch/gcc/c-family/c-common.h
branches/gcc-9-branch/gcc/c-family/c-format.c
branches/gcc-9-branch/gcc/c/ChangeLog
branches/gcc-9-branch/gcc/c/c-decl.c
branches/gcc-9-branch/gcc/cp/ChangeLog
branches/gcc-9-branch/gcc/cp/cp-objcp-common.c
branches/gcc-9-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list