You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Clang] Increase the default expression nesting limit (#132021)
This iterates on #104717 (which we had to revert)
In a bid to increase our chances of success, we try to avoid blowing up
the stack by
- Using `runWithSufficientStackSpace` in ParseCompoundStatement
- Reducing the size of `StmtVector` a bit
- Reducing the size of `DeclsInGroup` a bit
- Removing a few `ParsedAttributes` from the stacks in places where they
are not strictly necessary. `ParsedAttributes` is a _huge_ object
On a 64 bits system, the following stack size reductions are observed
```
ParseStatementOrDeclarationAfterAttributes: 344 -> 264
ParseStatementOrDeclaration: 520 -> 376
ParseCompoundStatementBody: 1080 -> 1016
ParseDeclaration: 264 -> 120
```
Fixes#94728
Copy file name to clipboardExpand all lines: clang/docs/ReleaseNotes.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,8 @@ Modified Compiler Flags
174
174
the behavior of ``-mtp`` in gcc. This changes the default behavior for ARM targets that provide the ``TPIDRURO`` register as this will be used instead of a call to the ``__aeabi_read_tp``.
175
175
Programs that use ``__aeabi_read_tp`` but do not use the ``TPIDRURO`` register must use ``-mtp=soft``. Fixes #123864
176
176
177
+
- The compiler flag `-fbracket-depth` default value is increased from 256 to 2048. (#GH94728)
178
+
177
179
Removed Compiler Flags
178
180
-------------------------
179
181
@@ -269,7 +271,7 @@ Improvements to Clang's diagnostics
269
271
as function arguments or return value respectively. Note that
270
272
:doc:`ThreadSafetyAnalysis` still does not perform alias analysis. The
271
273
feature will be default-enabled with ``-Wthread-safety`` in a future release.
272
-
- The ``-Wsign-compare`` warning now treats expressions with bitwise not(~) and minus(-) as signed integers
274
+
- The ``-Wsign-compare`` warning now treats expressions with bitwise not(~) and minus(-) as signed integers
273
275
except for the case where the operand is an unsigned integer
274
276
and throws warning if they are compared with unsigned integers (##18878).
275
277
- The ``-Wunnecessary-virtual-specifier`` warning has been added to warn about
0 commit comments