This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: atomic support for LEON3 platform
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Deng Hengyi <wei dot a dot yang at gmail dot com>, Sebastian Huber <sebastian dot huber at embedded-brains dot de>, David Miller <davem at davemloft dot net>
- Date: Tue, 23 Jul 2013 19:07:21 +0200
- 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>
> 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