Landing: 5fe8c017dbb0

Project / Subsystem

gcc / openmp

Date

2026-07-23

Author

Thomas Schwinge

Commit

5fe8c017dbb0fe085f72a4308eb93082e124e3c2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
openmp
patch_id
—
commit_hash
5fe8c017dbb0fe085f72a4308eb93082e124e3c2
source_type
github
headline
OpenMP: Simplify error reporting for 'device_type(nohost)'
tldr
Streamlines GOMP_error calls in OpenMP offloading code generation.
author
Thomas Schwinge
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • openmp
  • • offloading
discussion_id_link
—
bugzilla_pr
—
date
2026-07-23T00:00:00.000Z

This commit simplifies the OpenMP compiler’s handling of the device_type(nohost) clause when targeting offload devices. It refactors the code generation logic in gimplify.cc to use helper functions like build_string_literal and build_int_cst for constructing error messages and values. This change also adjusts related test cases for accuracy, making the code cleaner and easier to maintain.