https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #7 from Sami Kantoluoto ---
Yes, that seems to fix it:
.skipblk:
.LFB0:
movq_ctype_tab_ptr(%rip), %r8
xorl%eax, %eax
.L2:
movq(%rdi), %rdx
movq(%r8), %rsi
movzbl (%rdx), %ecx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #5 from Sami Kantoluoto ---
When compiled with
$ gcc-arm-none-eabi-4_6-2012q4/bin/arm-none-eabi-gcc -v -save-temps -Wall
-Werror -Os -c skipblk.c -o skipblk.o
The following assembly is generated:
skipblk:
@ Function support
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #4 from Sami Kantoluoto ---
Created attachment 44184
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44184&action=edit
generated arm asm code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #3 from Sami Kantoluoto ---
When compiled with:
$ gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc -v -save-temps -Wall
-Werror -Os -c skipblk.c -o skipblk.o
The following assembly is generated:
skipblk:
@ Function s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #2 from Sami Kantoluoto ---
Created attachment 44183
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44183&action=edit
generated x86 asm code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85923
--- Comment #1 from Sami Kantoluoto ---
Created attachment 44182
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44182&action=edit
stripped preprocessed source
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sami.kantoluoto at embedtronics dot fi
Target Milestone: ---
Created attachment 44181
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44181&action=edit
source code to