OSDN Git Service

Restore Ada bootstrap on Solaris 8, 9/x86
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 10:54:33 +0000 (10:54 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 10:54:33 +0000 (10:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179189 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/s-atocou-x86.adb

index 15ef0b5..a7900c3 100644 (file)
@@ -4,6 +4,11 @@
        dereference of the pointer to the storage area.  Remove useless type
        conversions and factor out common code.
 
+2011-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * s-atocou-x86.adb (Decrement): Use %;.
+       (Increment): Likewise.
+
 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/utils.c (maybe_unconstrained_array): Declare TYPE local
index f7c0bcb..bd02c35 100644 (file)
@@ -50,7 +50,7 @@ package body System.Atomic_Counters is
    begin
       System.Machine_Code.Asm
         (Template =>
-           "lock decl" & ASCII.HT & "%0" & ASCII.LF & ASCII.HT
+           "lock%; decl" & ASCII.HT & "%0" & ASCII.LF & ASCII.HT
              & "sete %1",
          Outputs  =>
            (Unsigned_32'Asm_Output ("=m", Item.Value),
@@ -68,7 +68,7 @@ package body System.Atomic_Counters is
    procedure Increment (Item : in out Atomic_Counter) is
    begin
       System.Machine_Code.Asm
-        (Template => "lock incl" & ASCII.HT & "%0",
+        (Template => "lock%; incl" & ASCII.HT & "%0",
          Outputs  => Unsigned_32'Asm_Output ("=m", Item.Value),
          Inputs   => Unsigned_32'Asm_Input ("m", Item.Value),
          Volatile => True);