This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: atomic support for LEON3 platform
- From: Deng Hengyi <wei dot a dot yang at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc at gcc dot gnu dot org, Sebastian Huber <sebastian dot huber at embedded-brains dot de>, David Miller <davem at davemloft dot net>
- Date: Wed, 24 Jul 2013 21:28:14 +0800
- Subject: Re: atomic support for LEON3 platform
- References: <3783184A-62C7-4F77-807A-5F5D32482DD7 at gmail dot com> <201307231731 dot 56223 dot ebotcazou at adacore dot com> <67F12DC2-504E-4552-971C-AE980630BA30 at gmail dot com> <201307231907 dot 21508 dot ebotcazou at adacore dot com>
Hi Eric,
Thank you for your interesting on this feature.
Best Regards
WeiY
在 2013-7-24,上午1:07,Eric Botcazou <ebotcazou@adacore.com> 写道:
>> ok, because i am not familiar with compiler implementation. So if you can
>> give me some references i will appreciate you very much. And by the way is
>> there any plan to support this feature in the mainline?
>
> OK, let's go ahead and implement the feature. We first need the binutils side,
> because a 'cas' is currently rejected by the assembler:
>
> eric@hermes:~/leon-elf> gcc/xgcc -Bgcc -c cas.adb -mcpu=leon3
> /tmp/ccOuqOpo.s: Assembler messages:
> /tmp/ccOuqOpo.s:24: Error: Architecture mismatch on "cas".
> /tmp/ccOuqOpo.s:24: (Requires v9|v9a|v9b; requested architecture is v8.)
> /tmp/ccOuqOpo.s:47: Error: Architecture mismatch on "cas".
> /tmp/ccOuqOpo.s:47: (Requires v9|v9a|v9b; requested architecture is v8.)
>
> David, how do you want to handle this on the binutils side? The compiler
> currently passes -Av8 for LEON3 and I don't think that we want to pass -Av9
> instead, so we would need something in between.
>
> --
> Eric Botcazou