Landing: 221d38405f99

Project / Subsystem

gcc / lto_input_mode_table

Date

2026-09-25

Author

Tobias Burnus

Commit

221d38405f99e5c51f26e09759e79aee482611fa

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
lto_input_mode_table
patch_id
—
commit_hash
221d38405f99e5c51f26e09759e79aee482611fa
source_type
github
headline
LTO: Check mode availability on offload targets
tldr
Ensures that compiler modes used in LTO are actually supported on the offload target device.
author
Tobias Burnus
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • lto
  • • offloading
  • • target support
  • • compiler modes
discussion_id_link
—
bugzilla_pr
—
date
2026-09-25T00:00:00.000Z

This change enhances the LTO input mode table to verify that floating-point and integer modes are supported at runtime on offload targets. Previously, only a general check for mode existence was performed. Now, for ACCEL_COMPILER targets, it calls targetm.scalar_mode_supported_p to confirm runtime availability. This is crucial for modes like _Float16 which may have device-specific or conditional support, preventing errors caused by using unsupported data types on the target hardware. New test cases are added to verify this functionality.