This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: New C++ ABI: patches.
- To: apbianco at cygnus dot com
- Subject: Re: New C++ ABI: patches.
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 07 Jan 2001 12:46:15 -0800
- Cc: java-discuss at sources dot redhat dot com, gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200101071950.LAA24951@deliverance.cygnus.com>
Oh, actually, I noticed one thing:
+ /* Mangle the class$ field. */
+ for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field))
+ if (DECL_NAME (field) == CL_suffix)
+ {
+ name = mangle_decl (field);
+ break;
+ }
+ if (!field)
+ fatal ("Can't find class$");
+
This new code will fire even in the old ABI, and mangle_decl probably
isn't the right thing to use in the old ABI. Do you want to bracket
this new code with:
if (!flag_new_abi)
? You know best -- this code only fires for Java types...
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com