Skip to content

Fix build error in zrotg.c with FUNCTION_PROFILE=1 from Makefile.rule - #5944

Merged
martin-frbg merged 1 commit into
OpenMathLib:developfrom
lujiaweics:fix/zrotg-missing-profile-end
Jul 30, 2026
Merged

Fix build error in zrotg.c with FUNCTION_PROFILE=1 from Makefile.rule#5944
martin-frbg merged 1 commit into
OpenMathLib:developfrom
lujiaweics:fix/zrotg-missing-profile-end

Conversation

@lujiaweics

Copy link
Copy Markdown
Contributor

When FUNCTION_PROFILE is enabled in Makefile.rule, zrotg.c fails to compile because FUNCTION_PROFILE_START introduces an unmatched opening brace. This PR inserts FUNCTION_PROFILE_END and IDEBUG_END at the single exit point behind a do-while(0) wrapper.

Add missing FUNCTION_PROFILE_END / IDEBUG_END after all return
paths to properly close the brace opened by FUNCTION_PROFILE_START.
Use a do { … } while(0) wrapper so the macros stay outside any
nested block.
@martin-frbg martin-frbg added this to the 0.3.35 milestone Jul 29, 2026
@martin-frbg

Copy link
Copy Markdown
Collaborator

Thank you - this was probably broken in my effort to realign ROTG with changes in the reference implementation a few years ago.

@martin-frbg
martin-frbg merged commit 80920a3 into OpenMathLib:develop Jul 30, 2026
106 of 108 checks passed
@lujiaweics
lujiaweics deleted the fix/zrotg-missing-profile-end branch July 31, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants