aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-05-26 17:51:15 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2008-05-26 17:51:15 +0200
commit6054bf2a351ce0cbf86a14d60bea94b85e0004be (patch)
tree9d8bdbd3a06bb8d1d5eb364164ccb27fe91838b7
parent1ce1f005363955236991e5b86f4f6f90619233b9 (diff)
downloadgcc-6054bf2a351ce0cbf86a14d60bea94b85e0004be.zip
gcc-6054bf2a351ce0cbf86a14d60bea94b85e0004be.tar.gz
gcc-6054bf2a351ce0cbf86a14d60bea94b85e0004be.tar.bz2
s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
2008-05-26 Eric Botcazou <ebotcazou@adacore.com> * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment. (Compare_Array_S16): Adjust for above change. * s-casi32.adb (Uword): Likewise. (Compare_Array_S32): Likewise. * s-casi64.adb (Uword): Likewise. (Compare_Array_S64): Likewise. * s-caun16.adb (Uhalf): Likewise. (Compare_Array_U16): Likewise. * s-caun32.adb (Uword): Likewise. (Compare_Array_U32): Likewise. * s-caun64.adb (Uword): Likewise. (Compare_Array_U64): Likewise. From-SVN: r135942
-rw-r--r--gcc/ada/s-casi16.adb11
-rw-r--r--gcc/ada/s-casi32.adb11
-rw-r--r--gcc/ada/s-casi64.adb11
-rw-r--r--gcc/ada/s-caun16.adb11
-rw-r--r--gcc/ada/s-caun32.adb11
-rw-r--r--gcc/ada/s-caun64.adb11
6 files changed, 24 insertions, 42 deletions
diff --git a/gcc/ada/s-casi16.adb b/gcc/ada/s-casi16.adb
index 3980ce7..846ec8d 100644
--- a/gcc/ada/s-casi16.adb
+++ b/gcc/ada/s-casi16.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -44,10 +44,7 @@ package body System.Compare_Array_Signed_16 is
for Half'Size use 16;
-- Used to process operands by half words
- type Uhalf is record
- H : Half;
- end record;
- pragma Pack (Uhalf);
+ type Uhalf is new Half;
for Uhalf'Alignment use 1;
-- Used to process operands when unaligned
@@ -110,8 +107,8 @@ package body System.Compare_Array_Signed_16 is
else
while Clen /= 0 loop
- if U (L).H /= U (R).H then
- if U (L).H > U (R).H then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;
diff --git a/gcc/ada/s-casi32.adb b/gcc/ada/s-casi32.adb
index 7ce89da..7076918 100644
--- a/gcc/ada/s-casi32.adb
+++ b/gcc/ada/s-casi32.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -41,10 +41,7 @@ package body System.Compare_Array_Signed_32 is
for Word'Size use 32;
-- Used to process operands by words
- type Uword is record
- W : Word;
- end record;
- pragma Pack (Uword);
+ type Uword is new Word;
for Uword'Alignment use 1;
-- Used to process operands when unaligned
@@ -93,8 +90,8 @@ package body System.Compare_Array_Signed_32 is
else
while Clen /= 0 loop
- if U (L).W /= U (R).W then
- if U (L).W > U (R).W then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;
diff --git a/gcc/ada/s-casi64.adb b/gcc/ada/s-casi64.adb
index 0cbae74..0bf9745 100644
--- a/gcc/ada/s-casi64.adb
+++ b/gcc/ada/s-casi64.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -41,10 +41,7 @@ package body System.Compare_Array_Signed_64 is
for Word'Size use 64;
-- Used to process operands by words
- type Uword is record
- W : Word;
- end record;
- pragma Pack (Uword);
+ type Uword is new Word;
for Uword'Alignment use 1;
-- Used to process operands when unaligned
@@ -93,8 +90,8 @@ package body System.Compare_Array_Signed_64 is
else
while Clen /= 0 loop
- if U (L).W /= U (R).W then
- if U (L).W > U (R).W then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;
diff --git a/gcc/ada/s-caun16.adb b/gcc/ada/s-caun16.adb
index 9bbbb96..b75d8bb 100644
--- a/gcc/ada/s-caun16.adb
+++ b/gcc/ada/s-caun16.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -44,10 +44,7 @@ package body System.Compare_Array_Unsigned_16 is
for Half'Size use 16;
-- Used to process operands by half words
- type Uhalf is record
- H : Half;
- end record;
- pragma Pack (Uhalf);
+ type Uhalf is new Half;
for Uhalf'Alignment use 1;
-- Used to process operands when unaligned
@@ -110,8 +107,8 @@ package body System.Compare_Array_Unsigned_16 is
else
while Clen /= 0 loop
- if U (L).H /= U (R).H then
- if U (L).H > U (R).H then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;
diff --git a/gcc/ada/s-caun32.adb b/gcc/ada/s-caun32.adb
index c028939..a7dcd8f 100644
--- a/gcc/ada/s-caun32.adb
+++ b/gcc/ada/s-caun32.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -41,10 +41,7 @@ package body System.Compare_Array_Unsigned_32 is
for Word'Size use 32;
-- Used to process operands by words
- type Uword is record
- W : Word;
- end record;
- pragma Pack (Uword);
+ type Uword is new Word;
for Uword'Alignment use 1;
-- Used to process operands when unaligned
@@ -93,8 +90,8 @@ package body System.Compare_Array_Unsigned_32 is
else
while Clen /= 0 loop
- if U (L).W /= U (R).W then
- if U (L).W > U (R).W then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;
diff --git a/gcc/ada/s-caun64.adb b/gcc/ada/s-caun64.adb
index 10ff817..28d2c15 100644
--- a/gcc/ada/s-caun64.adb
+++ b/gcc/ada/s-caun64.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 2002-2007, Free Software Foundation, Inc. --
+-- Copyright (C) 2002-2008, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -40,10 +40,7 @@ package body System.Compare_Array_Unsigned_64 is
type Word is mod 2 ** 64;
-- Used to process operands by words
- type Uword is record
- W : Word;
- end record;
- pragma Pack (Uword);
+ type Uword is new Word;
for Uword'Alignment use 1;
-- Used to process operands when unaligned
@@ -92,8 +89,8 @@ package body System.Compare_Array_Unsigned_64 is
else
while Clen /= 0 loop
- if U (L).W /= U (R).W then
- if U (L).W > U (R).W then
+ if U (L).all /= U (R).all then
+ if U (L).all > U (R).all then
return +1;
else
return -1;