Landing: b3275d4a1f19

Project / Subsystem

gcc / gcc

Date

2026-08-12

Author

Gaius Mulley

Commit

b3275d4a1f199872dffd9df4967673722f270671

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
b3275d4a1f199872dffd9df4967673722f270671
source_type
github
headline
PR modula2/125129: Improve Modula-2 library linking on FreeBSD
tldr
Introduces a new tool and flags to manage Modula-2 library intrinsics, resolving linking failures on systems lacking specific math functions.
author
Gaius Mulley
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • modula-2
  • • build system
  • • FreeBSD
discussion_id_link
—
bugzilla_pr
—
date
2026-08-12T00:00:00.000Z

This commit addresses linking failures on FreeBSD for Modula-2 programs that use specific math intrinsics like csin[l], ccos[l], and ctan[l]. It introduces a new tool, mktargetsrc, which generates target-specific Modula-2 libraries, pruning missing intrinsics at compile time rather than failing at link time. Additionally, a new -fdump-builtins flag is added to aid mktargetsrc in processing built-in functions. The changes improve the build process and error handling for Modula-2 development on various platforms.