This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: RTL_FLAG_CHECK patch
From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
Date: Fri, 10 May 2002 15:26:00 -0400 (EDT)
Hit this:
./xgcc -B./ -B/opt/gnu/hppa2.0w-hp-hpux11.11/bin/ -isystem /opt/gnu/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/hppa2.0w-hp-hpux11.11/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include -DL_divdi3 -c ../../gcc/gcc/libgcc2.c -fexceptions -fnon-call-exceptions -o libgcc/./_divdi3.o
../../gcc/gcc/libgcc2.c: In function `__udivmoddi4':
../../gcc/gcc/libgcc2.c:64: RTL flag check: INSN_ANNULLED_BRANCH_P used with une
xpected rtx code `insn' in mark_set_resources, at resource.c:738
Can you print out the RTX it is looking at when this triggers?
There is a lot of code which assumes that the first instruction in a
delay slot sequence emitted by reorg is a branch. Aparently PA
ends up putting something different there or the port is using
sequences for something outside of reorg.