patch for machine-dependent builtins in C++

Geoff Keating geoffk@cygnus.com
Sat Oct 21 18:28:00 GMT 2000


This trivial patch adds support for MD_INIT_BUILTINS for C++.

I tested it (bootstrap, C++ frontend tests) for egcs on i386-linux,
but the original patch was to support a MIPS-based part.

Note that this by itself won't necessarily cause the builtins to work.
In the original patch, I had to use pass void_list_node as a parameter
to the actual XXX_init_builtins() routine in mips.c (as of course
there's not necessarily a void_list_node in non-C non-C++ backends).
It may be other ports need to do the same thing.

-- 
- Geoffrey Keating <geoffk@cygnus.com>

===File ~/patches/cygnus/nband-c++-egcs-mdbuiltin.patch=====
2000-10-21  Geoffrey Keating  <geoffk@cygnus.com>

	* decl.c (init_decl_processing): Call MD_INIT_BUILTINS.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.701
diff -u -p -r1.701 decl.c
--- decl.c	2000/10/20 16:06:05	1.701
+++ decl.c	2000/10/22 01:19:01
@@ -6544,6 +6544,10 @@ init_decl_processing ()
   void_ftype_ptr
     = build_exception_variant (void_ftype_ptr, empty_except_spec);
 
+#ifdef MD_INIT_BUILTINS
+  MD_INIT_BUILTINS;
+#endif
+
   /* C++ extensions */
 
   unknown_type_node = make_node (UNKNOWN_TYPE);
============================================================


More information about the Gcc-patches mailing list