Skip to content

FDS Source: Remove PUBLIC attribute for subroutine#16029

Merged
mcgratta merged 1 commit intofiremodels:masterfrom
mcgratta:master
Mar 9, 2026
Merged

FDS Source: Remove PUBLIC attribute for subroutine#16029
mcgratta merged 1 commit intofiremodels:masterfrom
mcgratta:master

Conversation

@mcgratta
Copy link
Contributor

@mcgratta mcgratta commented Mar 9, 2026

FYI, I am debugging a case that seg faults in an HVAC routine when compiled with -O2 -ipo and not with -O1. I am eliminating a possible source of confusion for the inter-procedural optimization. Probably a long-shot, but there is no need to assign PUBLIC to a subroutine called from within the module.

@mcgratta mcgratta merged commit 7b66499 into firemodels:master Mar 9, 2026
19 checks passed
@drjfloyd
Copy link
Contributor

drjfloyd commented Mar 9, 2026

Thanks for catching that. I made some recent changes to HVAC initialization and that routine is no longer externally called.

@drjfloyd
Copy link
Contributor

drjfloyd commented Mar 9, 2026

When I was fixing that bug where changed init I did get a segfault in a deallocation which led me to simplify/streamline some of the allocations. You may be seeing something similar.

@mcgratta
Copy link
Contributor Author

mcgratta commented Mar 9, 2026

I'm going to run the problem case with and without -ipo to see if the problem is with -ipo or -O2.

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