gnat1drv.adb: Enable Exception_Extra_Info in CodePeer_Mode.
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 15 May 2012 10:54:04 +0000 (12:54 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 15 May 2012 10:54:04 +0000 (12:54 +0200)
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

gcc/ada/gnat1drv.adb
gcc/ada/gnat_ugn.texi

index 783babda0568753894c1f65bccbdafed4902bfc7..93c16f21e9bf7d969628f22574f3856048ca08fb 100644 (file)
@@ -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
index 6adfb207cc495cd4d66458cc7db637b5eafd6fa4..ca7a18859bda91c3b8e7769989c396e545d62845 100644 (file)
@@ -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.