Landing: 8cb4d3dd75c4

Project / Subsystem

gcc / libgm2

Date

2026-09-10

Author

Iain Sandoe

Commit

8cb4d3dd75c42fdc27cd3df196fe5a65188c9a93

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
libgm2
patch_id
—
commit_hash
8cb4d3dd75c42fdc27cd3df196fe5a65188c9a93
source_type
github
headline
libgm2: Add fallback for GetTimeRealtime when clock_getttime is unavailable.
tldr
libgm2 now uses getttimeofday as a fallback for GetTimeRealtime if clock_getttime is not available.
author
Iain Sandoe
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • libgm2
  • • compatibility
  • • time
discussion_id_link
—
bugzilla_pr
—
date
2026-09-10T00:00:00.000Z

This commit provides a fallback mechanism in libgm2 for the GetTimeRealtime function. If the clock_getttime function is not available on a system, the library will now attempt to use getttimeofday instead, mirroring the approach taken by libstdc++.

This change ensures that time-related functionality remains available on a wider range of systems by providing a compatible alternative when the preferred POSIX API is missing.