public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: [ARM cortex-m0] sync built-in functions for atomic memory access
@ 2014-07-30  8:39 Sandeep Kumar Singh
  2014-07-31  8:26 ` Mallikarjun Goudar
  0 siblings, 1 reply; 3+ messages in thread
From: Sandeep Kumar Singh @ 2014-07-30  8:39 UTC (permalink / raw)
  To: mallikarjun.gouda; +Cc: gcc-help

Hi Mallikarjun,

>> arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -c test.c
I built toolchain with gcc-4.9.0 source code and I just ran your test case with your used provided
Command. It is running without any error.

Regards,
Sandeep Kumar Singh
Senior Technical member staff, AESBU - Infotainment & Clusters
KPIT Technologies Limited
Phone: +91-20-66525000 | cell: +91-9730704579



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ARM cortex-m0] sync built-in functions for atomic memory access
  2014-07-30  8:39 [ARM cortex-m0] sync built-in functions for atomic memory access Sandeep Kumar Singh
@ 2014-07-31  8:26 ` Mallikarjun Goudar
  0 siblings, 0 replies; 3+ messages in thread
From: Mallikarjun Goudar @ 2014-07-31  8:26 UTC (permalink / raw)
  To: gcc-help

Hi Sandeep,
Thanks for the information. I will try with 4.9.0. Previously i was
using 4.7.3 gcc tools.

//mallikarjuna

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ARM cortex-m0] sync built-in functions for atomic memory access
@ 2014-07-30  5:59 Mallikarjun Goudar
  0 siblings, 0 replies; 3+ messages in thread
From: Mallikarjun Goudar @ 2014-07-30  5:59 UTC (permalink / raw)
  To: gcc-help

Hi,
I would like to use sync built-in functions for atomic memory access
fro the target arm cortex-m0.
But i do get error when i use them.

For example:
int main(void)
{
   int x = 2;
   __sync_add_and_fetch(&x, 1);

    return x;
}


I get following error:
undefined reference to `__sync_add_and_fetch_4'

I used following command:
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -c test.c

Thanks for your help,
Mallikarjuna

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-31  8:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-30  8:39 [ARM cortex-m0] sync built-in functions for atomic memory access Sandeep Kumar Singh
2014-07-31  8:26 ` Mallikarjun Goudar
  -- strict thread matches above, loose matches on Subject: below --
2014-07-30  5:59 Mallikarjun Goudar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).