This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFC] SH: libstdc++-v3 testsuite failures
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: kkojima at rr dot iij4u dot or dot jp (Kaz Kojima)
- Cc: joern dot rennecke at superh dot com, gcc-patches at gcc dot gnu dot org, aoliva at redhat dot com
- Date: Wed, 18 Aug 2004 12:22:47 +0100 (BST)
- Subject: Re: [PATCH/RFC] SH: libstdc++-v3 testsuite failures
> Then the next_active_insn for the above call_insn returns NULL
> and causes the segfault. So the first check for the variable
> next in my patch might be useless. The patch below gets rid of
> all 4 failures of this type. How this looks like?
>
> --- ORIG/gcc/gcc/config/sh/sh.c 2004-08-08 10:19:34.000000000 +0900
> +++ LOCAL/gcc/gcc/config/sh/sh.c 2004-08-18 09:28:04.000000000 +0900
> @@ -4599,7 +4599,8 @@ split_branches (rtx first)
> next = next_active_insn (insn);
>
> if ((GET_CODE (next) == JUMP_INSN
> - || GET_CODE (next = next_active_insn (next)) == JUMP_INSN)
> + || ((next = next_active_insn (next))
> + && GET_CODE (next) == JUMP_INSN))
> && GET_CODE (PATTERN (next)) == SET
> && recog_memoized (next) == CODE_FOR_jump_compact
> && ((INSN_ADDRESSES
OK.