Landing: 080af1a675d9
Project / Subsystem
gcc / gcc/tree-optimization
Date
2026-07-13
Author
Richard Biener
Commit
080af1a675d94dc25d248b2638e82c03e1476c01
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/tree-optimization
- patch_id
- —
- commit_hash
- 080af1a675d94dc25d248b2638e82c03e1476c01
- source_type
- github
- headline
- Fixes bogus Pointer Analysis with C++ delete calls
- tldr
- Correctly handles C++ delete expressions in Pointer Analysis (PTA) to avoid incorrect aliasing information.
- author
- Richard Biener
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • pointer_analysis
- • c++
- • gcc
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-13T00:00:00.000Z
This commit corrects an error in GCC’s Pointer Analysis (PTA) that incorrectly ignored delete calls originating from C++ delete expressions. A previous change intended to simplify pointer analysis by eliding new/delete pairs globally was too broad. This fix restores the original behavior, only ignoring calls to the standard library’s delete, and adds a check for the -fassume-sane-operators-new-delete flag. This ensures that PTA accurately reflects memory management, preventing potential bugs related to aliasing.