RTL_FLAG_CHECK patch

John David Anglin dave@hiauly1.hia.nrc.ca
Fri May 10 12:26:00 GMT 2002


> 2002-05-09  David S. Miller  <davem@redhat.com>
> 
> 	* rtl.h (struct rtx_def): Document unchanging and in_struct flags
> 	more accurately.
> 	(INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
> 	comment.
> 	(INSN_FROM_TARGET_P): Valid also for CALL_INSN.
> 	* doc/rtl.texi: Document these macros more accurately.
> 	* recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
> 	JUMP_INSNs and CALL_INSNs.
> 	* resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
> 	or INSN_FROM_TARGET_P if the code is appropriate.

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

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-bugs mailing list