diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-12-08 12:24:50 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2004-12-08 12:24:50 +0100 |
commit | 87f07a97ade1d99594ede4e334ea7dbbd907aabc (patch) | |
tree | 10eab9dc34a26b27f29f988613150db488f745bb | |
parent | 8cd9e2ac305d008905732657978f2fb26981a2d8 (diff) | |
download | gcc-87f07a97ade1d99594ede4e334ea7dbbd907aabc.zip gcc-87f07a97ade1d99594ede4e334ea7dbbd907aabc.tar.gz gcc-87f07a97ade1d99594ede4e334ea7dbbd907aabc.tar.bz2 |
a-exexpr.adb (Others_Value, [...]): Change initial values from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last...
* a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
targets (such as AAMP).
From-SVN: r91874
-rw-r--r-- | gcc/ada/a-exexpr.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/a-exexpr.adb b/gcc/ada/a-exexpr.adb index ea9ce67..4c1a04c 100644 --- a/gcc/ada/a-exexpr.adb +++ b/gcc/ada/a-exexpr.adb @@ -275,11 +275,13 @@ package body Exception_Propagation is -- Currently, these only have their address taken and compared so there is -- no real point having whole exception data blocks allocated. In any case -- the types should match what gigi and the personality routine expect. + -- The initial value is an arbitrary value that will not exceed the range + -- of Integer on 16-bit targets (such as AAMP). - Others_Value : constant Integer := 16#BEEF#; + Others_Value : constant Integer := 16#7FFF#; pragma Export (C, Others_Value, "__gnat_others_value"); - All_Others_Value : constant Integer := 16#BEEF#; + All_Others_Value : constant Integer := 16#7FFF#; pragma Export (C, All_Others_Value, "__gnat_all_others_value"); ------------ |