Landing: 7da47d53d716

Project / Subsystem

gcc / testsuite

Date

2026-07-05

Author

Jakub Jelinek

Commit

7da47d53d716b689784eaad20ebe26fdbb33982a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
7da47d53d716b689784eaad20ebe26fdbb33982a
source_type
github
headline
testsuite: Add C++ testcase for the recent PTA bug
tldr
Adds a C++ test case to cover a Pointer Analysis regression.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • pta
  • optimization
discussion_id_link
bugzilla_pr
date
2026-07-05T00:00:00.000Z

This commit adds a new C++ test case to the GCC testsuite. The testcase is designed to expose a regression related to Pointer Analysis (PTA) and function return values, specifically involving __builtin_memcpy and conditional memory allocation. This regression was introduced by a previous fix for PR tree-optimization/112653 and affects multiple GCC branches. The new test ensures this specific scenario is covered and verified.