From: jps@quarry.zk3.dec.com (Jeff Sullivan USG)
To: ici@osk.threewebnet.or.jp (Toshinao Ishii)
Subject: Re: compiler internal error in building xemacs-20.x
Date: 1997/05/01 [thread overview]
Message-ID: <5kadds$dhe$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 5jqo7n$3jh@news.osk.threewebnet.or.jp
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
next prev parent reply other threads:[~1997-05-01 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-04-25 4:00 compiler internal error in building xemacs-20.x Toshinao Ishii
[not found] ` <m2n2qnx96y.fsf@altair.xemacs.org>
1997-04-28 4:00 ` Joe Mario
1997-05-01 4:00 ` Jeff Sullivan USG [this message]
1997-05-01 4:00 ` Steven L Baur
-- strict thread matches above, loose matches on Subject: below --
1997-05-12 4:00 Joe Mario
1997-05-14 4:00 ` Steven L Baur
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox