------- Comment #7 from nomura at netapp dot com 2006-05-09 01:35 ------- Reproduced with the x86_64-redhat-linux gcc from RHEL4: Red Hat Enterprise Linux WS release 4 (Nahant Update 1) Linux nahant.eng.netapp.com 2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
void foo(int addr) { unsigned char * u8p; unsigned char prefix_in_octet; int num_octets_to_zero; if (prefix_in_octet != 0) u8p++; num_octets_to_zero = u8p - (unsigned char *) &addr; bar (u8p, num_octets_to_zero); } [nahant]$ /usr/bin/gcc -v Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1) [nahant]$ /usr/bin/gcc -c -O1 -fno-omit-frame-pointer bug2.c bug2.c: In function `foo': bug2.c:13: error: unrecognizable insn: (insn 39 19 38 0 (set (reg:SI 0 ax [63]) (subreg:SI (plus:DI (subreg:DI (reg:SI 6 bp) 0) (const_int -4 [0xfffffffffffffffc])) 0)) -1 (nil) (nil)) bug2.c:13: internal compiler error: in extract_insn, at recog.c:2083 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccsKofpQ.out file, please attach this to your bugreport. [nahant]$ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24484