flex disable register decls

This commit is contained in:
James Cherry 2020-11-11 08:32:25 -07:00
parent 19925c3a7d
commit b4851a6c7d
7 changed files with 13 additions and 0 deletions

View File

@ -236,6 +236,9 @@ set(STA_TCL_FILES
#
################################################################
# Earlier versions of flex use 'register' declarations are deprecated in c++11
# and illegal in c++17.
#find_package(FLEX 2.6.4)
find_package(FLEX)
find_package(BISON)

View File

@ -18,6 +18,7 @@
// Liberty function expression lexical analyzer
#include "util/FlexDisableRegister.hh"
#include "Debug.hh"
#include "StringUtil.hh"
#include "liberty/LibertyExprPvt.hh"

View File

@ -18,6 +18,7 @@
#include <ctype.h>
#include <string.h>
#include "util/FlexDisableRegister.hh"
#include "liberty/LibertyParser.hh"
#include "LibertyParse.hh"

View File

@ -19,6 +19,7 @@
#include <string.h>
#include <string>
#include "util/FlexDisableRegister.hh"
#include "StringUtil.hh"
#include "parasitics/SpefReaderPvt.hh"
#include "SpefParse.hh"

View File

@ -16,6 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "util/FlexDisableRegister.hh"
#include "sdf/Sdf.hh"
#include "SdfParse.hh"

View File

@ -0,0 +1,5 @@
// workaround for flex versions that insert register declarations
#if !(YY_FLEX_MAJOR_VERSION >= 2 && YY_FLEX_MINOR_VERSION >= 6) && __cplusplus > 199711L
#define register
#endif

View File

@ -16,6 +16,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "util/FlexDisableRegister.hh"
#include "Debug.hh"
#include "VerilogNamespace.hh"
#include "verilog/VerilogReaderPvt.hh"