Skip to content

gcc -O3: Fix compilation inline error with -O3 - #295

Merged
boaks merged 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:gcc_o3
Oct 5, 2026
Merged

boaks merged 1 commit into
eclipse-tinydtls:mainfrom
mrdeep1:gcc_o3

Conversation

@mrdeep1

@mrdeep1 mrdeep1 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Fix various

dtls.c:2155:1: warning: inlining failed in call to ‘dtls_send_alert.constprop’: call is unlikely and code size would grow [-Winline]

Fix various

dtls.c:2155:1: warning: inlining failed in call to ‘dtls_send_alert.constprop’:
call is unlikely and code size would grow [-Winline]

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
@boaks

boaks commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

LGTM

@obgm obgm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, this function most likely never gets inlined by any compiler. So:

LGTM

@boaks
boaks merged commit 501d93c into eclipse-tinydtls:main Oct 5, 2026
8 checks passed
@mrdeep1
mrdeep1 deleted the gcc_o3 branch October 5, 2026 08:21
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.

3 participants