public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets.
@ 2003-08-04  1:15 bernie at develer dot com
  2003-08-04  1:17 ` [Bug libstdc++/11784] " bernie at develer dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bernie at develer dot com @ 2003-08-04  1:15 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784

           Summary: atomic __exchange_and_add() broken for ColdFire and
                    68000 targets.
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: bernie at develer dot com
        ReportedBy: bernie at develer dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: m68k-elf

User apps linking with libstdc++ segfault on ColdFire targets because 
__exchange_and_add() for vxWorks/__embedded__ targets tries to disable 
interrupts with the "move #0,%sr" privileged opcode. 
 
Patch attached.


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
@ 2003-08-04  1:17 ` bernie at develer dot com
  2003-08-04 11:11 ` pinskia at physics dot uc dot edu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bernie at develer dot com @ 2003-08-04  1:17 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784



------- Additional Comments From bernie at develer dot com  2003-08-04 01:17 -------
Created an attachment (id=4557)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4557&action=view)
Fix PR11784 by using BSET instead of disabling interrupts on Coldfire targets.


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
  2003-08-04  1:17 ` [Bug libstdc++/11784] " bernie at develer dot com
@ 2003-08-04 11:11 ` pinskia at physics dot uc dot edu
  2003-08-07 20:54 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-04 11:11 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-04 11:11:31
               date|                            |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-04 11:11 -------
I can confirm the problem is there in the mainline (20030804).


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
  2003-08-04  1:17 ` [Bug libstdc++/11784] " bernie at develer dot com
  2003-08-04 11:11 ` pinskia at physics dot uc dot edu
@ 2003-08-07 20:54 ` cvs-commit at gcc dot gnu dot org
  2003-08-07 20:55 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-07 20:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-07 20:54 -------
Subject: Bug 11784

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bkoz@gcc.gnu.org	2003-08-07 20:53:57

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config/cpu/m68k: atomicity.h 

Log message:
	2003-08-07  Bernardo Innocenti  <bernie@develer.com>
	
	PR libstdc++/11784
	* libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
	Replace variants with new BSET-based version.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.1921&r2=1.1922
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/cpu/m68k/atomicity.h.diff?cvsroot=gcc&r1=1.3&r2=1.4


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
                   ` (2 preceding siblings ...)
  2003-08-07 20:54 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-07 20:55 ` cvs-commit at gcc dot gnu dot org
  2003-08-07 20:58 ` cvs-commit at gcc dot gnu dot org
  2003-08-07 21:08 ` pinskia at physics dot uc dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-07 20:55 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-07 20:55 -------
Subject: Bug 11784

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bkoz@gcc.gnu.org	2003-08-07 20:55:22

Modified files:
	libstdc++-v3/config/cpu/m68k: atomicity.h 

Log message:
	2003-08-07  Bernardo Innocenti  <bernie@develer.com>
	
	PR libstdc++/11784
	* libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
	Replace variants with new BSET-based version.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/cpu/m68k/atomicity.h.diff?cvsroot=gcc&r1=1.4&r2=1.5


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
                   ` (3 preceding siblings ...)
  2003-08-07 20:55 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-07 20:58 ` cvs-commit at gcc dot gnu dot org
  2003-08-07 21:08 ` pinskia at physics dot uc dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-07 20:58 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-07 20:58 -------
Subject: Bug 11784

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	bkoz@gcc.gnu.org	2003-08-07 20:58:05

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config/cpu/m68k: atomicity.h 

Log message:
	2003-08-07  Bernardo Innocenti  <bernie@develer.com>
	
	PR libstdc++/11784
	* libstdc++-v3/config/cpu/m68k/atomicity.h (__exchange_and_add):
	Replace variants with new BSET-based version.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1464.2.141&r2=1.1464.2.142
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/cpu/m68k/atomicity.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1&r2=1.1.22.1


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

* [Bug libstdc++/11784] atomic __exchange_and_add() broken for ColdFire and 68000 targets.
  2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
                   ` (4 preceding siblings ...)
  2003-08-07 20:58 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-07 21:08 ` pinskia at physics dot uc dot edu
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 21:08 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11784


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at physics dot uc dot edu  2003-08-07 21:08 -------
Fixed for 3.3.2 and 3.4.


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

end of thread, other threads:[~2003-08-07 21:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-04  1:15 [Bug libstdc++/11784] New: atomic __exchange_and_add() broken for ColdFire and 68000 targets bernie at develer dot com
2003-08-04  1:17 ` [Bug libstdc++/11784] " bernie at develer dot com
2003-08-04 11:11 ` pinskia at physics dot uc dot edu
2003-08-07 20:54 ` cvs-commit at gcc dot gnu dot org
2003-08-07 20:55 ` cvs-commit at gcc dot gnu dot org
2003-08-07 20:58 ` cvs-commit at gcc dot gnu dot org
2003-08-07 21:08 ` pinskia at physics dot uc dot edu

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).