Skip to content

Backport fixes for compilation with GCC 15.1#28

Merged
mmilata merged 2 commits intotrezor-v1.19.1from
mmilata/gcc-151
Apr 10, 2026
Merged

Backport fixes for compilation with GCC 15.1#28
mmilata merged 2 commits intotrezor-v1.19.1from
mmilata/gcc-151

Conversation

@mmilata
Copy link
Copy Markdown
Member

@mmilata mmilata commented Apr 1, 2026

Errors out on -Wunterminated-string-initialization. See also micropython#17269, micropython#16736.

projectgus and others added 2 commits April 1, 2026 10:37
Avoids the new Wunterminated-string-literal when compiled with gcc 15.1.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>

(cherry picked from commit 9f86005)
This commit changes the Xtensa inline assembly parser to use a slightly
simpler (and probably a tiny bit more efficient) way to look up register
names when decoding instruction parameters.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>

(cherry picked from commit 50fab08)
@mmilata
Copy link
Copy Markdown
Member Author

mmilata commented Apr 9, 2026

Lukas is hitting this on his Mac so I suppose it's not unique to my system. Still not sure where gcc 15.1 comes from, or if it's clang 21 masquerading as gcc?

Comment thread py/emitinlinethumb.c
Comment thread py/emitinlinextensa.c
Copy link
Copy Markdown

@cepetr cepetr left a comment

Choose a reason for hiding this comment

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

LGTM

@mmilata mmilata merged commit c2a5481 into trezor-v1.19.1 Apr 10, 2026
15 of 74 checks passed
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.

4 participants