This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] gcc/config/sparc/sparc.c:8795: error: too many arguments to function `gen_compare_reg'
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Christian Joensson <christian dot joensson at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 Dec 2005 07:18:34 -0500
- Subject: Re: [gomp] gcc/config/sparc/sparc.c:8795: error: too many arguments to function `gen_compare_reg'
- References: <5460e3330512062142v68b0f9f1i74522a55fee6a6a0@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Dec 07, 2005 at 06:42:45AM +0100, Christian Joensson wrote:
> Bootstrapping on sparc linux fails for me (revision 108129M)
>
> gcc -m32 -c -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC
> -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition -Wmissing-format-attribute -fno-common
> -DHAVE_CONFIG_H -I. -I. -I../../gcc.gomp/gcc -I../../gcc.gomp/gcc/.
> -I../../gcc.gomp/gcc/../include -I../../gcc.gomp/gcc/../libcpp/include
> -I../../gcc.gomp/gcc/../libdecnumber \
> ../../gcc.gomp/gcc/config/sparc/sparc.c -o sparc.o
> ../../gcc.gomp/gcc/config/sparc/sparc.c: In function
> `sparc_expand_compare_and_swap_12':
> ../../gcc.gomp/gcc/config/sparc/sparc.c:8795: error: too many
> arguments to function `gen_compare_reg'
> make[2]: *** [sparc.o] Error 1
Fixed thusly:
2005-12-07 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Adjust
for 2005-11-27 compare_reg changes.
--- gcc/config/sparc/sparc.c.jj 2005-12-04 21:29:49.000000000 +0100
+++ gcc/config/sparc/sparc.c 2005-12-07 13:12:30.000000000 +0100
@@ -8792,12 +8792,12 @@ sparc_expand_compare_and_swap_12 (rtx re
gen_rtx_AND (SImode, gen_rtx_NOT (SImode, mask),
res)));
- cc = gen_compare_reg (NE, resv, val);
+ sparc_compare_op0 = resv;
+ sparc_compare_op1 = val;
+ cc = gen_compare_reg (NE);
emit_insn (gen_rtx_SET (VOIDmode, val, resv));
- sparc_compare_op0 = resv;
- sparc_compare_op1 = val;
sparc_compare_emitted = cc;
emit_jump_insn (gen_bne (loop_label));
Jakub