diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-05-15 12:54:04 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-05-15 12:54:04 +0200 |
commit | 3ee8dde59cd9a08b9ad51aabed67dea280720fdf (patch) | |
tree | ea3dff69eb8b6ccc51bd09a5f53585414b0d7da0 /gcc | |
parent | 4169b895e85cd78da39ec821149672567ed6f609 (diff) | |
download | gcc-3ee8dde59cd9a08b9ad51aabed67dea280720fdf.zip gcc-3ee8dde59cd9a08b9ad51aabed67dea280720fdf.tar.gz gcc-3ee8dde59cd9a08b9ad51aabed67dea280720fdf.tar.bz2 |
gnat1drv.adb: Enable Exception_Extra_Info in CodePeer_Mode.
2012-05-15 Arnaud Charlet <charlet@adacore.com>
* gnat1drv.adb: Enable Exception_Extra_Info in CodePeer_Mode.
2012-05-15 Sergey Rybin <rybin@adacore.com frybin>
* gnat_ugn.texi (Complexity Metrics Control section): Fix
reference to McCabe's book defining complexity metrics.
From-SVN: r187524
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/gnat1drv.adb | 6 | ||||
-rw-r--r-- | gcc/ada/gnat_ugn.texi | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/gnat1drv.adb b/gcc/ada/gnat1drv.adb index 783babd..93c16f2 100644 --- a/gcc/ada/gnat1drv.adb +++ b/gcc/ada/gnat1drv.adb @@ -267,6 +267,12 @@ procedure Gnat1drv is Force_ALI_Tree_File := True; Try_Semantics := True; + + -- Enable Exception_Extra_Info for now, to avoid extra messages + -- on controlled operations. + -- ??? To be revised. + + Exception_Extra_Info := True; end if; -- Set Configurable_Run_Time mode if system.ads flag set diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 6adfb207..ca7a188 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -14779,7 +14779,7 @@ statements unless @option{^-ne^NO_EXITS_AS_GOTOS^} option is specified. The Ada essential complexity metric defined here is intended to quantify the extent to which the software is unstructured. It is adapted from the McCabe essential complexity metric defined in -http://www.mccabe.com/pdf/nist235r.pdf but is modified to be more +@url{http://www.mccabe.com/pdf/mccabe-nist235r.pdf} but is modified to be more suitable for typical Ada usage. For example, short circuit forms are not penalized as unstructured in the Ada essential complexity metric. |