Landing: f81f033bdfda

Project / Subsystem

gcc / contrib

Date

2026-06-24

Author

Jonathan Wakely

Commit

f81f033bdfda4550419805bbb1eef770c2af7b23

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
contrib
patch_id
commit_hash
f81f033bdfda4550419805bbb1eef770c2af7b23
source_type
github
headline
contrib: Fix relpath.sh exit status for invalid arguments
tldr
relpath.sh now exits with a non-zero status and writes usage to stderr on error, fixing libstdc++ build issues.
author
Jonathan Wakely
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • contrib
  • build
  • scripting
discussion_id_link
bugzilla_pr
date
2026-06-24T00:00:00.000Z

The relpath.sh script previously always exited successfully, even when given invalid arguments, and printed usage instructions to standard output. This caused build failures in libstdc++‘s Makefile, which assumed an error status would prevent further processing. This change corrects the script to print usage to standard error and exit with a non-zero status for invalid inputs, resolving the aforementioned build issue.