]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/infra/v2_0/cdl/infra.cdl
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / infra / v2_0 / cdl / infra.cdl
index 18aac2bde2444a771761d56ff8c7813ccaeaf46f..adfe752d88d3f8338b3b664e6ff09a732d4d62d7 100644 (file)
@@ -177,6 +177,21 @@ cdl_package CYGPKG_INFRA {
             so that new and delete can be used, if that is what is required."
     }
 
+    cdl_option CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD {
+        display       "Threshold for valid number of delete calls"
+        flavor        data
+        default_value 100
+        active_if     CYGPKG_INFRA_DEBUG
+        description   "
+            Some users don't know about the empty delete function and then
+            wonder why their C++ classes are leaking memory. If
+            INFRA_DEBUG is enabled we keep a counter for the number of
+            times delete is called. If it goes above this threshold we throw
+            an assertion failure. This should point heavy users of
+            delete in the right direction without upsetting those who want
+            an empty delete function. "
+    }
+    
     # ========================================================================
 
     cdl_option CYGFUN_INFRA_DUMMY_ABORT {
@@ -272,7 +287,7 @@ cdl_package CYGPKG_INFRA {
             display "Additional compiler flags"
             flavor  data
             no_define
-            default_value { "" }
+            default_value { "-fno-rtti -Woverloaded-virtual" }
             description   "
                 This option modifies the set of compiler flags for
                 building the eCos infra package. These flags are used
@@ -283,7 +298,7 @@ cdl_package CYGPKG_INFRA {
             display "Suppressed compiler flags"
             flavor  data
             no_define
-            default_value { "" }
+            default_value { "-Wno-pointer-sign" }
             description   "
                 This option modifies the set of compiler flags for
                 building the eCos infra package. These flags are removed from