aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2006-01-14 08:15:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2006-01-14 08:15:59 +0000
commitdd5827cb6ffcd1991ac139a1df62ccf4421a3aef (patch)
tree17c9dc2ef96d5fc56b7b2b3d989e5a93eeaa38b7 /gcc/tree.h
parentce99549f58527066c820d5a8c26983a2db9ee925 (diff)
downloadgcc-dd5827cb6ffcd1991ac139a1df62ccf4421a3aef.zip
gcc-dd5827cb6ffcd1991ac139a1df62ccf4421a3aef.tar.gz
gcc-dd5827cb6ffcd1991ac139a1df62ccf4421a3aef.tar.bz2
tree.c (tree_not_class_check_failed): New function.
* tree.c (tree_not_class_check_failed): New function. * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed. (tree_not_class_check_failed): Declare. From-SVN: r109699
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 78c3bc3..afeaf1e 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -592,8 +592,8 @@ enum tree_node_structure_enum {
#define NON_TYPE_CHECK(T) __extension__ \
({ const tree __t = (T); \
if (TYPE_P (__t)) \
- tree_class_check_failed (__t, tcc_type, __FILE__, __LINE__, \
- __FUNCTION__); \
+ tree_not_class_check_failed (__t, tcc_type, __FILE__, __LINE__, \
+ __FUNCTION__); \
__t; })
#define TREE_VEC_ELT_CHECK(T, I) __extension__ \
@@ -660,6 +660,10 @@ extern void tree_not_check_failed (const tree, const char *, int, const char *,
extern void tree_class_check_failed (const tree, const enum tree_code_class,
const char *, int, const char *)
ATTRIBUTE_NORETURN;
+extern void tree_not_class_check_failed (const tree,
+ const enum tree_code_class,
+ const char *, int, const char *)
+ ATTRIBUTE_NORETURN;
extern void tree_vec_elt_check_failed (int, int, const char *,
int, const char *)
ATTRIBUTE_NORETURN;