summaryrefslogtreecommitdiff
path: root/gcc/ada/s-stchop.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 10:45:39 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-30 10:45:39 +0000
commit04409526edd351b982136e99acaaa3189fc427ce (patch)
tree3b261d5a5445f547021de9cc6066149576f1ce31 /gcc/ada/s-stchop.adb
parentc5075621cead05f7caadcdce311e5df903faf602 (diff)
downloadgcc-04409526edd351b982136e99acaaa3189fc427ce.tar.gz
2009-11-30 Robert Dewar <dewar@adacore.com>
* osint.ads, prj.adb, prj.ads: Minor reformatting * s-stchop.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb, s-taprop-solaris.adb, s-strxdr.adb, s-taprop-irix.adb, s-osinte-hpux-dce.adb, s-osinte-tru64.adb, s-taenca.adb, s-taprop-hpux-dce.adb, s-stausa.adb, s-taprop-posix.adb: Minor code reorganization (use conditional expressions). 2009-11-30 Bob Duff <duff@adacore.com> * g-sttsne-locking.adb (Copy_Service_Entry): Complete previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154779 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-stchop.adb')
-rw-r--r--gcc/ada/s-stchop.adb8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/ada/s-stchop.adb b/gcc/ada/s-stchop.adb
index 7c62aa5e550..d4aa675a857 100644
--- a/gcc/ada/s-stchop.adb
+++ b/gcc/ada/s-stchop.adb
@@ -149,11 +149,9 @@ package body System.Stack_Checking.Operations is
-- If a stack base address has been registered, honor it. Fallback to
-- the address of a local object otherwise.
- if My_Stack.Limit /= System.Null_Address then
- My_Stack.Base := My_Stack.Limit;
- else
- My_Stack.Base := Frame_Address;
- end if;
+ My_Stack.Base :=
+ (if My_Stack.Limit /= System.Null_Address
+ then My_Stack.Limit else Frame_Address);
if Stack_Grows_Down then