Landing: ddb565d3acb7

Project / Subsystem

gcc / hppa

Date

2026-10-04

Author

John David Anglin

Commit

ddb565d3acb79f37d253b33a8649ab1563fcc918

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
hppa
patch_id
—
commit_hash
ddb565d3acb79f37d253b33a8649ab1563fcc918
source_type
github
headline
Fix canonicalize_funcptr_for_compare for non-function SYMBOL_REFs
tldr
Ensures function pointer comparison handles non-function symbols correctly.
author
John David Anglin
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • hppa
  • • compiler
  • • function pointer
  • • optimization
discussion_id_link
—
bugzilla_pr
—
date
2026-10-04T00:00:00.000Z

This commit corrects the canonicalize_funcptr_for_compare expander on the HPPA architecture. Previously, it could fail when comparing a function pointer with a SYMBOL_REF that did not represent a function address (e.g., a data or text symbol). The fix ensures that such cases are handled directly, emitting a move instruction to bypass unnecessary libcall wrappers and preventing potential issues.