Skip to content

gcc 14.2.0 optimization tolerant - #342

Open
dmisol wants to merge 1 commit into
paullouisageneau:masterfrom
dmisol:master
Open

gcc 14.2.0 optimization tolerant#342
dmisol wants to merge 1 commit into
paullouisageneau:masterfrom
dmisol:master

Conversation

@dmisol

@dmisol dmisol commented Jun 10, 2026

Copy link
Copy Markdown

when using gcc (Ubuntu 14.2.0-19ubuntu2) 14.2.0, test continued gathering candidates, ignoring 'success' variable.

Comment thread test/gathering.c
Comment on lines +26 to +27
volatile bool success = false;
volatile bool done = false;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables should still be static:

Suggested change
volatile bool success = false;
volatile bool done = false;
static volatile bool success = false;
static volatile bool done = false;

@paullouisageneau

Copy link
Copy Markdown
Owner

Thanks, it would also be good to fix the global booleans in other tests.

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