From a4f3199427ffb42922ba30bf902b86e3c6ab5802 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 2 Jul 2008 06:48:50 -0400 Subject: [PATCH] Add informational warning when -Og is used --- src/V3Error.cpp | 5 ++++- src/V3Error.h | 4 +++- src/Verilator.cpp | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/V3Error.cpp b/src/V3Error.cpp index 8fe7ed9ad..8e6bd914c 100644 --- a/src/V3Error.cpp +++ b/src/V3Error.cpp @@ -261,6 +261,7 @@ void V3Error::abortIfWarnings() { bool V3Error::isError(V3ErrorCode code) { if (code==V3ErrorCode::SUPPRESS) return false; + else if (code==V3ErrorCode::INFO) return false; else if (code==V3ErrorCode::FATAL) return true; else if (code==V3ErrorCode::ERROR) return true; else if (codedumpTreeFile(v3Global.debugFilename("gate.tree")); // V3Gate calls constant propagation itself. + } else { + v3info("Command Line disabled gate optimization with -Og/-O0. This may cause ordering problems."); } // Remove unused vars