This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [ARC] Various small miscellaneous fixes.
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "gnu at amylaar dot uk" <gnu at amylaar dot uk>, "Francois dot Bedard at synopsys dot com" <Francois dot Bedard at synopsys dot com>
- Date: Fri, 8 Jul 2016 11:48:11 +0100
- Subject: Re: [PATCH] [ARC] Various small miscellaneous fixes.
- Authentication-results: sourceware.org; auth=none
- References: <1467282970-8161-1-git-send-email-claziss@synopsys.com> <20160707192247.GI10229@embecosm.com> <098ECE41A0A6114BB2A07F1EC238DE89661B0426@de02wembxa.internal.synopsys.com>
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2016-07-08 08:18:00 +0000]:
> > > + && (register_operand (operands[1], SFmode)
> > > + || register_operand (operands[2], SFmode))"
>
> This condition is necessary for reload cases.
>
> > And, with this patch applied, I get a build error:
> >
> > In file included from ./tm.h:43:0,
> > from /path/to/gcc/gcc/backend.h:28,
> > from insn-opinit.c:7:
> > insn-opinit.c: In function ‘void init_all_optabs(target_optabs*)’:
> > ./insn-flags.h:160:26: error: ‘operands’ was not declared in this scope
> > && (register_operand (operands[1], SFmode) \
> > ^
> > insn-opinit.c:220:13: note: in expansion of macro ‘HAVE_divsf3’
> > ena[46] = HAVE_divsf3;
>
> I applied this patch on the current trunk, but I've got no error.
That's strange. I doubled checked fresh this morning, and I still see
the same error.
Could you confirm how you're configuring & building, maybe that's why
we're seeing different behaviours.
I'm using the official GNU GCC git mirror, commit 798fc30 (2 days old
now) with your patch applied on top.
Then just
../src/configure --target=arc-elf32 --enable-languages=c --with-cpu=arc700
make all-gcc
And I still hit the error above. Can you offer any advice?
Thanks,
Andrew