From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24711 invoked from network); 14 Nov 1998 17:37:33 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 14 Nov 1998 17:37:33 -0000 Received: from nile.intac.com (root@nile.intac.com [198.6.114.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA00793 for ; Sat, 14 Nov 1998 12:37:33 -0500 Received: from sherlock.intercall.com (sherlock.intac.com [199.173.0.227]) by nile.intac.com (8.9.1a/8.9.1/dman) with ESMTP id MAA08257 for ; Sat, 14 Nov 1998 12:37:31 -0500 (EST) Message-ID: X-Mailer: XFMail 1.3-alpha-031298 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <19981114132051.23174.qmail@io.nu> Date: Sat, 14 Nov 1998 12:37:09 -0500 (EST) Reply-To: beww@intac.com Organization: Unix Dilletante Sender: beww@sherlock.intercall.com From: "Brian E.W. Wood" To: axp-list@redhat.com Subject: Re: Any C++ on Alpha gfurus out there? Content-Transfer-Encoding: 7bit On 14-Nov-98 sterwill@io.nu wrote: > > Well, as part of the AbiWord team, I can assure you that we're doing many > such assignment tests in the code (not good news, huh? :). In fact, the new > toolbar framework is similar to the implementation of the menu layout > framework. > In short, this looks like a compiler issue on the Alpha, but without access > to an > Alpha (which I may have shortly if I buy one) it's hard to tell. It's > a very legal C++ test; I'm using EGCS 1.1b with -Wall and often -pedantic > to keep out "that which is not ANSI," but on an Intel, which is all we > have available now. First, much thanks to all who responded to my question. My main point is that the code *does* run on an Intel machine but not on (at least my) Alpha, so this list seemed an appropriate place to ask. > > You know, this may be completely off here, but I'm wondering if the "&&" > is somehow not correct in ANDing the result of (wd->m_id == id) on a > platform where the size of "wd" (pointer) is not the same size as > "(wd->m_id == id)" (bool same as int which is != size of pointer?). Wild > guess here. :) I would assume this possibility is very remote > since the evaluation is essentially "if(wd){if(wd->m_id==id) {} }", but > I haven't looked at the compiler source; it may be optimizing something > funny. Most problems where code runs on an Intel and not on an Alpha seem to be related to the pointer/integer size difference so what you say may make sense. I'm considering dropping back from egcs 1.1b to 1.0.3a to see what happens. As you know the code is already being compiled with no optimizations. Heinz Ulrich Stille asked whether callback_action was 32 or 64 bit, I'm not enough of a programmer to know the answer to this. The lack of a decent WP for the alpha platform has been a real bugaboo for me, so I'd really like to see this problem resolved, any additional alpha-guru suggestions are always appreciated. --- Brian E.W. Wood beww@intac.com