diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-10-17 22:11:00 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-10-17 22:11:00 +0200 |
commit | 8e7014b45585b89418564db079f9ad469a581ea2 (patch) | |
tree | 288005a9e12bb983c162c9ab78066db8227ce818 /gcc/langhooks.c | |
parent | eaf95345d33a727885761fa48d7481405614351a (diff) | |
download | gcc-8e7014b45585b89418564db079f9ad469a581ea2.zip gcc-8e7014b45585b89418564db079f9ad469a581ea2.tar.gz gcc-8e7014b45585b89418564db079f9ad469a581ea2.tar.bz2 |
langhooks.h (struct lang_hooks): Document that tree_size langhook may be also called on tcc_type nodes.
* langhooks.h (struct lang_hooks): Document that tree_size langhook
may be also called on tcc_type nodes.
* langhooks.c (lhd_tree_size): Likewise.
* gcc-interface/misc.c (gnat_tree_size): New function.
(LANG_HOOKS_TREE_SIZE): Redefine.
From-SVN: r253829
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index c54b790..9b3212b 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -266,8 +266,8 @@ lhd_gimplify_expr (tree *expr_p ATTRIBUTE_UNUSED, } /* lang_hooks.tree_size: Determine the size of a tree with code C, - which is a language-specific tree code in category tcc_constant or - tcc_exceptional. The default expects never to be called. */ + which is a language-specific tree code in category tcc_constant, + tcc_exceptional or tcc_type. The default expects never to be called. */ size_t lhd_tree_size (enum tree_code c ATTRIBUTE_UNUSED) { |