public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/40785]  New: Powerpc bootstrap is broken due to problems in boehm-gc
@ 2009-07-17 14:49 meissner at gcc dot gnu dot org
  2009-07-17 14:53 ` [Bug boehm-gc/40785] " meissner at gcc dot gnu dot org
  2009-09-26 19:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: meissner at gcc dot gnu dot org @ 2009-07-17 14:49 UTC (permalink / raw)
  To: gcc-bugs

The test and set locks in boehm-gc/include/private/gc_locks.h have invalid asm
for creating the test and set locks and the current Powerpc GCC compiler
generates errors when enabling java in a bootstrap.

In addition, GCC 4.4 has added the __sync_lock_test_and_set and
__sync_lock_release builtins which abstract these functions, so the asm is not
needed for 4.4 and beyond.


-- 
           Summary: Powerpc bootstrap is broken due to problems in boehm-gc
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: boehm-gc
        AssignedTo: meissner at linux dot vnet dot ibm dot com
        ReportedBy: meissner at gcc dot gnu dot org
 GCC build triplet: powerpc64-unknown-linux-gnu
  GCC host triplet: powerpc64-unknown-linux-gnu
GCC target triplet: powerpc64-unknown-linux-gnu


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


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

* [Bug boehm-gc/40785] Powerpc bootstrap is broken due to problems in boehm-gc
  2009-07-17 14:49 [Bug boehm-gc/40785] New: Powerpc bootstrap is broken due to problems in boehm-gc meissner at gcc dot gnu dot org
@ 2009-07-17 14:53 ` meissner at gcc dot gnu dot org
  2009-09-26 19:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: meissner at gcc dot gnu dot org @ 2009-07-17 14:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from meissner at gcc dot gnu dot org  2009-07-17 14:53 -------
Created an attachment (id=18213)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18213&action=view)
Patch to use sync builtins if we can, and fix asm constraints if we have an
older compiler


-- 


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


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

* [Bug boehm-gc/40785] Powerpc bootstrap is broken due to problems in boehm-gc
  2009-07-17 14:49 [Bug boehm-gc/40785] New: Powerpc bootstrap is broken due to problems in boehm-gc meissner at gcc dot gnu dot org
  2009-07-17 14:53 ` [Bug boehm-gc/40785] " meissner at gcc dot gnu dot org
@ 2009-09-26 19:48 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-26 19:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-09-26 19:48 -------
Fixed.
2009-07-17  Michael Meissner  <meissner@linux.vnet.ibm.com>

        PR boehm-gc/40785
        * include/private/gc_locks.h (GC_test_and_set): If GCC 4.4, use
        the __sync_lock_test_and _set and __sync_lock_release builtins on
        the powerpc.  If not GCC 4.4, fix up the constraints so that it
        builds without error.
        (GC_clear): Ditto.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |build
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

end of thread, other threads:[~2009-09-26 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-17 14:49 [Bug boehm-gc/40785] New: Powerpc bootstrap is broken due to problems in boehm-gc meissner at gcc dot gnu dot org
2009-07-17 14:53 ` [Bug boehm-gc/40785] " meissner at gcc dot gnu dot org
2009-09-26 19:48 ` pinskia at gcc dot gnu dot 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).