Re: compilation warnings on DEC alpha platform
- From: Owen Taylor <otaylor gtk org>
- To: Rubber_Buccaneer Galactic Headquarters org
- Cc: gtk-list redhat com
- Subject: Re: compilation warnings on DEC alpha platform
- Date: 22 Apr 1998 10:34:58 -0400
Rubber_Buccaneer@Galactic.Headquarters.org writes:
> Just a quick note to say that I see numerous warnings in both gnome and gtk
> code of the form
> warning: casts pointer to integer of different size
> and vice versa. This is due to void* and int being 8 and 4 bytes respectively
> on the DEC alpha (running linux at least). Execution, if these warnings are
> ignored, is fraught! Arithmetic traps galore and unaligned accesses galore!
> Oh yes!
I can't speak to the GNOME code, but for the GTK+ code:
It should be quite easy to fix up the warnings; they can be
removed by simply changing
(gpointer) some_int
to
(gpointer) (glong) some_int
There are, to my count, 7 places in GTK, and 1 in GDK that would
need this.
It would be interesting to see if this does anything to remove
the problems you are reporting. I wouldn't have expected GCC to
generate different code, but if it does, I can just possibly
imagine how it would produce arithmetic traps. I can't see
how it could create unaligned accesses.
If you can produce the arithmetic traps and unaligned accesses
with the testgtk program in GTK+ (gtk/testgtk) I would be quite
interested in details in where they are occuring. (Backtraces
would be useful)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]