From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Klein To: Per Bothner Cc: egcs@egcs.cygnus.com, java-discuss@sourceware.cygnus.com Subject: Re: assemble_external on .class files Date: Mon, 31 May 1999 21:36:00 -0000 Message-ID: <4.1.19990531143757.00cb5d60@garfield.dis.com> References: <"Tue,> <25> <1999> <22:19:07> <-0700> <4.1.19990525220502.00ca56a0@garfield.dis.com> X-SW-Source: 1999-05n/msg00878.html Message-ID: <19990531213600.4yw-g45XGIDGnvgbHOUOl0PlF_yFhAqTicPKksJtt2o@z> At 10:55 PM 5/25/99 -0700, Per Bothner wrote: >METHOD_NATIVE does need to be split from DECL_EXTERNAL. >There doesn't seem to be any available DECL_LANG_FLAGs, >but there are some TREE_LANG_FLAGSs available (in FUNCTION_DECLs). Grabbed TREE_LANG_FLAG_6. >That means that we need to set DECL_EXTERNAL separately. >I think it should be true for any methods that has METHOD_NATIVE, >*or* if is_compiled_class (DECL_CONTEXT (method_decl)) < 2. The latter doesn't appear to be complete either since there are certain classes which are external (e.g. java.lang.Object) where is_compiled_class (DECL_CONTEXT (method_decl)) is returning 2. Regards, M. -- Mark Klein DIS International, Ltd. http://www.dis.com 415-892-8400 PGP Public Key Available