Landing: ea9ca5b61117

Project / Subsystem

gcc / testsuite

Date

2026-08-13

Author

Andrea Pinski

Commit

ea9ca5b61117e57899e848def9124ea9f40aca49

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
testsuite
patch_id
—
commit_hash
ea9ca5b61117e57899e848def9124ea9f40aca49
source_type
github
headline
Add returns_twice testcase for PR126815
tldr
Adds a new test case to the GCC test suite to verify a fix for an ICE related to functions with `__attribute__((returns_twice))`.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • testsuite
  • • gcc
  • • attribute
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

A new test case, returns_twice-1.c, has been added to the GCC test suite. This test specifically targets an ICE (Internal Compiler Error) identified in PR126815, which occurred when compiling functions declared with the __attribute__((returns_twice)) attribute. The testcase demonstrates that inserting a statement before the function call does not resolve the issue and verifies the fix. It was tested on x86_64-linux-gnu and passes.