summaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-02 15:47:39 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-02 15:47:39 +0000
commit4ecb1318b5412249a2c174b89924fd3cdb7e1ec2 (patch)
tree1c61ba45242501b4c599f20f31fce9d6bb99de5b /gcc/ada/debug.adb
parentcda81c7b01f6402830becce1bb858a63e38b3f4f (diff)
downloadgcc-4ecb1318b5412249a2c174b89924fd3cdb7e1ec2.tar.gz
2011-08-02 Robert Dewar <dewar@adacore.com>
* a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or code reorganization. 2011-08-02 Robert Dewar <dewar@adacore.com> * debug.adb: Debug flag d.P to suppress length comparison optimization * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize comparison of Length by comparing First/Last instead. 2011-08-02 Matthew Heaney <heaney@adacore.com> * a-cobove.ads: Code clean up. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177190 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/debug.adb')
-rw-r--r--gcc/ada/debug.adb7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/debug.adb b/gcc/ada/debug.adb
index 8f386093957..65af4de796d 100644
--- a/gcc/ada/debug.adb
+++ b/gcc/ada/debug.adb
@@ -133,7 +133,7 @@ package body Debug is
-- d.M
-- d.N
-- d.O Dump internal SCO tables
- -- d.P
+ -- d.P Previous (non-optimized) handling of length comparisons
-- d.Q
-- d.R
-- d.S Force Optimize_Alignment (Space)
@@ -597,6 +597,11 @@ package body Debug is
-- the ALI file, the internal SCO tables (SCO_Table/SCO_Unit_Table)
-- are dumped for debugging purposes.
+ -- d.P Previous non-optimized handling of length comparisons. Setting this
+ -- flag inhibits the effect of Optimize_Length_Comparison in Exp_Ch4.
+ -- This is there in case we find a situation where the optimization
+ -- malfunctions, to provide a work around.
+
-- d.S Force Optimize_Alignment (Space) mode as the default
-- d.T Force Optimize_Alignment (Time) mode as the default