From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106243,62452b62521434ce X-Google-Attributes: gid106243,public X-Google-Thread: 1164f8,62452b62521434ce X-Google-Attributes: gid1164f8,public From: jps@quarry.zk3.dec.com (Jeff Sullivan USG) Subject: Re: compiler internal error in building xemacs-20.x Date: 1997/05/01 Message-ID: <5kadds$dhe$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 238686145 References: <5jqo7n$3jh@news.osk.threewebnet.or.jp> To: ici@osk.threewebnet.or.jp (Toshinao Ishii) Organization: Digital Equipment Corporation Newsgroups: comp.sys.dec,comp.emacs.xemacs We were able to reproduce the problem and are now investigating a compiler fix. There appears to be a problem in the xemacs abbrev.c source code, given the preprocessed file that you sent us. Below is the (simplified) code that is causing the compiler error: int SYNTAX_CODE (struct Lisp_Char_Table *table, int c) { return ((((c) < 160 ? (table)->ascii[c] : CHAR_TABLE_NON_ASCII_VALUE_UNSAFE (table, c))).val); } There appears to be a few problems with this: - the function returns "int" (in the original) - (table)->ascii[c] is of type "Lisp_Object" - CHAR_TABLE_NON_ASCII_VALUE_UNSAFE (table, c))).val is of type "long" To see the a compilation error (not internal error), try: FIX1 : Change the function to return "Lisp_Object" A compile error is generated for the conditional expression (I think this is acceptable) FIX2 : Change the conditional expression to an if/then/else A compile error is generated for the returns, since the types do not match "int". (I think this is acceptable) Note that with either of these "fixes", it will point to a real source code problem and ultimately, the source code should be fixed. If you could, please send me a non-preprocessed version of this same file/routine, so we can determine how the source code should be changed. Thanks, -Jeff -- Jeff Sullivan | Digital Equipment Corp | sullivan@decc.enet.dec.com DEC C and C++ | Nashua, NH ZK3-2/2X09 | or jps@zk3.dec.com