Subject: What optimization causes this?
To: None <tech-toolchain@netbsd.org>
From: None <kpneal@pobox.com>
List: tech-toolchain
Date: 01/16/2002 00:05:07
NetBSD/alpha 1.5.2

I'm trying to get a package for neXtaw together. I've gotten to the
point where it begins to compile, proceeds for a while, and then
blows up like so:

cc -DPACKAGE=\"neXtaw\" -DVERSION=\"0.10\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DNO_WIDEC_H=1 -DHAS_WCHAR_H=1 -DHAS_XMU_H=1 -DUSE_XWCHAR_STRING=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBXMU=1 -I. -I. -DUSEGRAY -DNO_MENU_LINES -DNeedFunctionPrototypes -I../.. -I/usr/pkg/obj/x11/neXtaw/work/.buildlink/include -I/usr/pkg/share/x11-links/include -Wall -O -c  -fPIC -DPIC Scrollbar.c -o .libs/Scrollbar.lo
Scrollbar.c: In function `RepeatNotify':
Scrollbar.c:1004: warning: cast to pointer from integer of different size
Scrollbar.c: In function `NotifyScroll':
Scrollbar.c:1050: warning: cast to pointer from integer of different size
Scrollbar.c:1062: warning: cast to pointer from integer of different size
Scrollbar.c:1074: warning: cast to pointer from integer of different size
Scrollbar.c:1080: warning: cast to pointer from integer of different size
Scrollbar.c:1088: warning: cast to pointer from integer of different size
Scrollbar.c:1100: warning: cast to pointer from integer of different size
Scrollbar.c:1113: warning: cast to pointer from integer of different size
Scrollbar.c:1117: warning: cast to pointer from integer of different size
/usr/src/gnu/usr.bin/egcs/common/../../../dist/gcc/function.c:2392: Internal compiler error in function fixup_memory_subreg
*** Error code 1

This happens with -O2 and -O, but not when optimization is off. Any 
suggestions on what causes this failure? I suppose I could try turning
off random optimizations until I get lucky, but I'm hoping for a 
heuristic a little better than that.

Thanks.
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

Seen on bottom of IBM part number 1887724:
DO NOT EXPOSE MOUSE PAD TO DIRECT SUNLIGHT FOR EXTENDED PERIODS OF TIME.