From 191f76dd90aa6309beb7fea5764a81bea791c726 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 20 Feb 2021 20:55:38 -0500 Subject: [PATCH] Increase LINE_TOKEN_MAX (#2752). --- src/V3PreProc.h | 2 +- test_regress/t/t_pp_circ_subst_bad.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3PreProc.h b/src/V3PreProc.h index a51dab1bf..43d8f3a19 100644 --- a/src/V3PreProc.h +++ b/src/V3PreProc.h @@ -45,7 +45,7 @@ public: // CONSTANTS enum MiscConsts { DEFINE_RECURSION_LEVEL_MAX = 1000, // How many `def substitutions before an error - LINE_TOKEN_MAX = 20000, // How many tokens on a line before an error + LINE_TOKEN_MAX = 40000, // How many tokens on a line before an error INCLUDE_DEPTH_MAX = 500, // How many `includes deep before an error // Streams deep (sometimes `def deep) before an error. // Set more than DEFINE_RECURSION_LEVEL_MAX or INCLUDE_DEPTH_MAX. diff --git a/test_regress/t/t_pp_circ_subst_bad.out b/test_regress/t/t_pp_circ_subst_bad.out index 657d44e8a..1f566721d 100644 --- a/test_regress/t/t_pp_circ_subst_bad.out +++ b/test_regress/t/t_pp_circ_subst_bad.out @@ -1,3 +1,3 @@ -%Error: t/t_pp_circ_subst_bad.v:8:40002: Too many preprocessor tokens on a line (>20000); perhaps recursive `define +%Error: t/t_pp_circ_subst_bad.v:8:80001: Too many preprocessor tokens on a line (>40000); perhaps recursive `define %Error: t/t_pp_circ_subst_bad.v:8:1: syntax error, unexpected IDENTIFIER %Error: Exiting due to