summaryrefslogtreecommitdiff
path: root/gcc/c-objc-common.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-03-23 01:35:06 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2005-03-23 01:35:06 +0000
commit8549882418f574245c42afc3a927c7da59015843 (patch)
tree2dc0be928c289ceb6e2df4ae5cf04396eb70721e /gcc/c-objc-common.h
parent522ddfa2543f57daddbb9cd8e2a44d8f6425396e (diff)
downloadgcc-8549882418f574245c42afc3a927c7da59015843.tar.gz
c-common.c (c_common_truthvalue_conversion): Adjust comment.
* c-common.c (c_common_truthvalue_conversion): Adjust comment. Call c_common_truthvalue_conversion rather than lang_hooks.truthvalue_conversion. * c-convert.c (convert): Call c_objc_common_truthvalue_conversion. * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to c-typeck.c. * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to c_common_truthvalue_conversion. * c-parser.c (c_parser_paren_condition, c_parser_for_statement, c_parser_conditional_expression, c_parser_binary_expression): Call c_objc_common_truthvalue_conversion. * c-typeck.c (build_unary_op): Call c_objc_common_truthvalue_conversion. (build_conditional_expr): Do not call lang_hooks.truthvalue_conversion. (build_binary_op): Call c_common_truthvalue_conversion. (c_objc_common_truthvalue_conversion): Moved from c-objc-common.c. Call default_function_array_conversion instead of default_conversion. objc: * objc-act.c (next_sjlj_build_enter_and_setjmp, next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally): Call c_common_truthvalue_conversion. From-SVN: r96917
Diffstat (limited to 'gcc/c-objc-common.h')
-rw-r--r--gcc/c-objc-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-objc-common.h b/gcc/c-objc-common.h
index 5107dce068d..c6cca43d3c0 100644
--- a/gcc/c-objc-common.h
+++ b/gcc/c-objc-common.h
@@ -53,7 +53,7 @@ extern void c_initialize_diagnostics (diagnostic_context *);
#undef LANG_HOOKS_PARSE_FILE
#define LANG_HOOKS_PARSE_FILE c_common_parse_file
#undef LANG_HOOKS_TRUTHVALUE_CONVERSION
-#define LANG_HOOKS_TRUTHVALUE_CONVERSION c_objc_common_truthvalue_conversion
+#define LANG_HOOKS_TRUTHVALUE_CONVERSION c_common_truthvalue_conversion
#undef LANG_HOOKS_FINISH_INCOMPLETE_DECL
#define LANG_HOOKS_FINISH_INCOMPLETE_DECL c_finish_incomplete_decl
#undef LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS