https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113711
Bug ID: 113711
Summary: Warning: instruction length of 16 bytes exceeds the
limit of 15
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: hongyuw at gcc dot gnu.org
Target Milestone: ---
Target: x86-64
[hjl@gnu-cfl-3 apx-1]$ cat x.c
int
foo (int off, int *ptr)
{
return 2000 + ptr[off + 2000];
}
[hjl@gnu-cfl-3 apx-1]$ make x.s
/export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/ -mapxf
-O3 -mx32 -S x.c
[hjl@gnu-cfl-3 apx-1]$ cat x.s
.file "x.c"
.text
.p2align 4
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
addl $2000, 8000(%esi,%edi,4), %eax
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (GNU) 14.0.1 20240201 (experimental)"
.section .note.GNU-stack,"",@progbits
[hjl@gnu-cfl-3 apx-1]$ gcc -c x.s
x.s: Assembler messages:
x.s:9: Warning: instruction length of 16 bytes exceeds the limit of 15
[hjl@gnu-cfl-3 apx-1]$