Skip to content

Commit 0de9b5f

Browse files
[Warnings] Suppressed Bison Deprecation Warnings
Suppressed the Bison deprecation warnings for SDCParse and BlifParse since the fix for the deprecation requires Bison 3.3, but the current minimum version of Bison is 3.0 Some development machines using VPR cannot be upgraded to Bison 3.3 easily, so for now the deprecation warnings are just being suppressed until all machines are on Bison 3.3 PR verilog-to-routing#2529 tracks this issue and contains the code to fix the deprecations.
1 parent f4bd1be commit 0de9b5f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libs/EXTERNAL/libblifparse/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ file(GLOB_RECURSE PARSER_SOURCES src/blif*.y)
2727
#Make the flex and bison targets
2828
flex_target(BlifLexer ${LEXER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.cpp
2929
COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/blif_lexer.gen.hpp)
30-
bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp)
30+
# Suppress deprecation warnings. See PR #2529
31+
bison_target(BlifParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/blif_parser.gen.cpp
32+
COMPILE_FLAGS -Wno-deprecated)
3133
add_flex_bison_dependency(BlifLexer BlifParser)
3234

3335
#Suppress warnings in Flex/Bison generated files

libs/EXTERNAL/libsdcparse/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ file(GLOB_RECURSE PARSER_SOURCES src/sdc*.y)
2727
#Make the flex and bison targets
2828
flex_target(SdcLexer ${LEXER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_lexer.gen.cpp
2929
COMPILE_FLAGS --header-file=${CMAKE_CURRENT_BINARY_DIR}/sdc_lexer.gen.hpp)
30-
bison_target(SdcParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_parser.gen.cpp)
30+
# Suppress deprecation warnings. See PR #2529
31+
bison_target(SdcParser ${PARSER_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/sdc_parser.gen.cpp
32+
COMPILE_FLAGS -Wno-deprecated)
3133
add_flex_bison_dependency(SdcLexer SdcParser)
3234

3335

0 commit comments

Comments
 (0)