public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/56300] New: Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets
@ 2013-02-12 22:05 chaoyingfu at gcc dot gnu.org
2013-02-12 22:11 ` [Bug libgcc/56300] " pinskia at gcc dot gnu.org
2013-02-12 22:21 ` chaoyingfu at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: chaoyingfu at gcc dot gnu.org @ 2013-02-12 22:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56300
Bug #: 56300
Summary: Add __sync_fetch_and_add_8 and other 8-byte atomic
functions to 32-bit MIPS targets
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: chaoyingfu@gcc.gnu.org
There is no hardware support for 8 bytes atomic operations on 32-bit MIPS
targets. Unfortunately, programmers still want to use them. Ex: please check
this webkit bug: https://bugs.webkit.org/show_bug.cgi?id=106739 and the
following example.
Ex:
fu@debian6:~/dev/test$ cat sync.c
long long K;
void main()
{
__sync_fetch_and_add(&K, 1);
}
fu@debian6:~/dev/test$ gcc -o sync sync.c
/tmp/ccUoSg9M.o: In function `main':
sync.c:(.text+0x28): undefined reference to `__sync_fetch_and_add_8'
collect2: ld returned 1 exit status
That will be great, if we can add missing atomic functions (via pthread
implementation or other methods) to libgcc for 32-bit MIPS targets.
Thanks a lot!
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/56300] Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets
2013-02-12 22:05 [Bug libgcc/56300] New: Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets chaoyingfu at gcc dot gnu.org
@ 2013-02-12 22:11 ` pinskia at gcc dot gnu.org
2013-02-12 22:21 ` chaoyingfu at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-02-12 22:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56300
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-12 22:10:48 UTC ---
Use libatomic in 4.8 to fix this.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcc/56300] Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets
2013-02-12 22:05 [Bug libgcc/56300] New: Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets chaoyingfu at gcc dot gnu.org
2013-02-12 22:11 ` [Bug libgcc/56300] " pinskia at gcc dot gnu.org
@ 2013-02-12 22:21 ` chaoyingfu at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: chaoyingfu at gcc dot gnu.org @ 2013-02-12 22:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56300
--- Comment #2 from chaoyingfu at gcc dot gnu.org <chaoyingfu at gcc dot gnu.org> 2013-02-12 22:21:09 UTC ---
(In reply to comment #1)
> Use libatomic in 4.8 to fix this.
Good to know this. Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-12 22:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-12 22:05 [Bug libgcc/56300] New: Add __sync_fetch_and_add_8 and other 8-byte atomic functions to 32-bit MIPS targets chaoyingfu at gcc dot gnu.org
2013-02-12 22:11 ` [Bug libgcc/56300] " pinskia at gcc dot gnu.org
2013-02-12 22:21 ` chaoyingfu at gcc dot gnu.org
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).