Landing: d97947a3067c

Project / Subsystem

gcc / testsuite

Date

2026-07-20

Author

Torbjörn SVENSSON

Commit

d97947a3067c13dcd33eb1ef7aef14ca279316cf

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
commit_hash
d97947a3067c13dcd33eb1ef7aef14ca279316cf
source_type
github
headline
Testsuite: Fix null dereference check with char* cast.
tldr
Added a cast to char* in `check_effective_target_can_deref_null` to fix a potential type issue in the testsuite.
author
Torbjörn SVENSSON
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • testsuite
  • bugfix
discussion_id_link
bugzilla_pr
date
2026-07-20T00:00:00.000Z

This commit addresses a potential type issue in the GCC testsuite related to null pointer dereferencing checks. In the check_effective_target_can_deref_null function within target-supports.exp, the argument passed to the null dereference check is now explicitly cast to char*. This resolves bug PR126261.