[Bug preprocessor/118168] -Wmisleading-indentation causes 10x+ overhead or higher (visible on mypy-1.13.0)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 3 06:13:55 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118168
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andi Kleen <ak@gcc.gnu.org>:
https://gcc.gnu.org/g:ae814afad900edf1f19850985614398e0875618c
commit r15-7326-gae814afad900edf1f19850985614398e0875618c
Author: Andi Kleen <ak@gcc.gnu.org>
Date: Wed Dec 25 11:54:13 2024 -0800
Add tunables for input buffer
The input machinery to read the source code independent of the lexer
has a range of hard coded maximum array sizes that can impact performance.
Make them tunable.
input.cc is part of libcommon so it cannot direct access params
without a level of indirection.
gcc/ChangeLog:
PR preprocessor/118168
* input.cc (file_cache::tune): New function.
* input.h (class file_cache): Make tunables non const.
* params.opt: Add new tunables.
* toplev.cc (toplev::main): Initialize input buffer context
tunables.
More information about the Gcc-bugs
mailing list