From 76bf77467a6fc20a57a1f6e50b75e89e83c4f76f Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 6 Jul 2003 19:01:21 +0000 Subject: * c-common.h (c_comon_handle_filename, c_common_missing_arguement): New. * c-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. * c-opts.c (missing_arg): Rename c_common_missing_argument, update to be an appropriate langhook. (c_common_handle_option): Don't handle filenames. (c_common_handle_filename): New. * hooks.c (hook_void_constcharptr, hook_bool_constcharptr_size_t_false): New. * hooks.h (hook_void_constcharptr, hook_bool_constcharptr_size_t_false): New. * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct lang_hooks): Add handle_filename and missing_argument. * opts.c (handle_option): Don't handle filenames here, but ... (handle_options): ... here. (common_handle_option): Don't handle missing arguments here. * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): New. ada: * misc.c (gnat_handle_option): Don't handle filenames. cp: * cp-lang.c (LANG_HOOKS_HANDLE_FILENAME, LANG_HOOKS_MISSING_ARGUMENT): Override. f: * top.c (ffe_handle_option): Don't handle filenames. java: * lang.c (java_handle_option): Don't handle filenames. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69011 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/hooks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/hooks.c') diff --git a/gcc/hooks.c b/gcc/hooks.c index d737000620b..c022eb38853 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -68,6 +68,11 @@ hook_void_FILEptr_constcharptr (FILE *a ATTRIBUTE_UNUSED, const char *b ATTRIBUT { } +void +hook_void_constcharptr (const char *a ATTRIBUTE_UNUSED) +{ +} + /* Used for the TARGET_ASM_CAN_OUTPUT_MI_THUNK hook. */ bool hook_bool_tree_hwi_hwi_tree_false (tree a ATTRIBUTE_UNUSED, @@ -87,6 +92,13 @@ hook_bool_tree_hwi_hwi_tree_true (tree a ATTRIBUTE_UNUSED, return true; } +bool +hook_bool_constcharptr_size_t_false (const char *a ATTRIBUTE_UNUSED, + size_t b ATTRIBUTE_UNUSED) +{ + return false; +} + bool default_can_output_mi_thunk_no_vcall (tree a ATTRIBUTE_UNUSED, HOST_WIDE_INT b ATTRIBUTE_UNUSED, -- cgit v1.2.1