+2001-11-28 Zack Weinberg <zack@codesourcery.com>
+
+ * misc.c (gnat_expand_constant): Move declaration above
+ definition of lang_hooks.
+ (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
+ (gnat_init): lang_expand_constant no longer exists.
+
+ (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
+ always have vprintf.
+ (gnat_init): Always call set_internal_error_function.
+
2001-11-27 Andreas Jaeger <aj@suse.de>
* Makefile.in (stamp-tool_src_dir): Use symbolic link.
* *
* C Implementation File *
* *
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
* *
* Copyright (C) 1992-2001 Free Software Foundation, Inc. *
* *
static void gnat_print_decl PARAMS ((FILE *, tree, int));
static void gnat_print_type PARAMS ((FILE *, tree, int));
extern void gnat_init_decl_processing PARAMS ((void));
+static tree gnat_expand_constant PARAMS ((tree));
/* Structure giving our language-specific hooks. */
#define LANG_HOOKS_PRINT_DECL gnat_print_decl
#undef LANG_HOOKS_PRINT_TYPE
#define LANG_HOOKS_PRINT_TYPE gnat_print_type
+#undef LANG_HOOKS_EXPAND_CONSTANT
+#define LANG_HOOKS_EXPAND_CONSTANT gnat_expand_constant
const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
static void internal_error_function PARAMS ((const char *, va_list *));
static rtx gnat_expand_expr PARAMS ((tree, rtx, enum machine_mode,
enum expand_modifier));
-static tree gnat_expand_constant PARAMS ((tree));
static void gnat_adjust_rli PARAMS ((record_layout_info));
#if defined(MIPS_DEBUGGING_INFO) && defined(DWARF2_DEBUGGING_INFO)
}
}
-/* Here we have the function to handle the compiler error processing in GCC.
- Do this only if VPRINTF is available. */
-
-#if defined(HAVE_VPRINTF)
-#define DO_INTERNAL_ERROR_FUNCTION
+/* Here we have the function to handle the compiler error processing in GCC. */
static void
internal_error_function (msgid, ap)
Current_Error_Node = error_gnat_node;
Compiler_Abort (fp, -1);
}
-#endif
/* Perform all the initialization steps that are language-specific. */
it, but it's where g++ does it. */
lang_expand_expr = gnat_expand_expr;
- lang_expand_constant = gnat_expand_constant;
memcpy ((char *) (tree_code_type + (int) LAST_AND_UNUSED_TREE_CODE),
(char *) gnat_tree_code_type,
gnat_argc++;
gnat_argv [gnat_argc] = 0;
-#ifdef DO_INTERNAL_ERROR_FUNCTION
set_internal_error_function (internal_error_function);
-#endif
/* Show that REFERENCE_TYPEs are internal and should be Pmode. */
internal_reference_types ();