回复: 回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-21 Thread yunqiang.su
> -邮件原件- > 发件人: Jeff Law > 发送时间: 2021年3月20日 23:42 > 收件人: yunqiang...@cipunited.com; gcc-patches@gcc.gnu.org > 抄送: ma...@orcam.me.uk; l...@redhat.com; d...@debian.org; > s...@debian.org; jiaxun.y...@flygoat.com > 主题: Re: 回复: [PATCH v4 1/2] MIPS: Not trigger

Re: 回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-20 Thread Maciej W. Rozycki
On Sat, 20 Mar 2021, Jeff Law wrote: > > > I think what you're trying to do here is set up a scenario where you're > > > defaulting to mips32r6 and compact-branches, but not error if something > > > specifies -mcpu=mips32r2 or something similar, right? > > > > > Yes. If we introduce the build tim

Re: 回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-20 Thread Jeff Law via Gcc-patches
On 3/3/2021 8:33 PM, yunqiang...@cipunited.com wrote: On 2/23/21 3:14 AM, YunQiang Su wrote: For MIPSr6, we may wish to use compact-branches only. Currently, we have to use `always' option, while it is mark as conflict with pre-R6. cc1: error: unsupported combination: ‘mips32r2’ -mcompact-b

回复: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-03 Thread yunqiang.su
> > On 2/23/21 3:14 AM, YunQiang Su wrote: > > For MIPSr6, we may wish to use compact-branches only. > > Currently, we have to use `always' option, while it is mark as > > conflict with pre-R6. > > cc1: error: unsupported combination: ‘mips32r2’ > > -mcompact-branches=always Just ignore -mcompac

Re: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-03 Thread Maciej W. Rozycki
On Wed, 3 Mar 2021, Jeff Law wrote: > > gcc/testsuite/ChangeLog: > > * gcc.target/mips/compact-branches-1.c: add isa_rev>=6. > > * gcc.target/mips/mips.exp: don't add -mipsXXr6 option for > > -mcompact-branches=always. It is usable for pre-R6 now. > > * gcc.target/mips/compact-bran

Re: [PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-03-03 Thread Jeff Law via Gcc-patches
On 2/23/21 3:14 AM, YunQiang Su wrote: > For MIPSr6, we may wish to use compact-branches only. > Currently, we have to use `always' option, while it is mark as conflict > with pre-R6. > cc1: error: unsupported combination: ‘mips32r2’ -mcompact-branches=always > Just ignore -mcompact-branches=a

[PATCH v4 1/2] MIPS: Not trigger error for pre-R6 and -mcompact-branches=always

2021-02-23 Thread YunQiang Su
For MIPSr6, we may wish to use compact-branches only. Currently, we have to use `always' option, while it is mark as conflict with pre-R6. cc1: error: unsupported combination: ‘mips32r2’ -mcompact-branches=always Just ignore -mcompact-branches=always for pre-R6. This patch also defines __mip