https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105814
Bug ID: 105814
Summary: operand has impossible constraints - worked with
previous releases
Product: gcc
Version: 12.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bruce.fleming at gmail dot com
Target Milestone: ---
Created attachment 53069
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53069&action=edit
preprocessed file (*.i)
an __asm__ __volatile__ x86_64 instruction stream placing all 16 gp regs in
consecutive memory locations. Version is 12.1.1
command line: gcc -v -save-temps -c -nostdinc -fmessage-length=0 -fno-builtin
-fno-leading-underscore -fno-stack-protector -fno-exceptions -fno-unwind-tables
-Wall -Wno-multichar -MT obj/x86_64/debug/arch/x86/dbg/kdbg.o -MMD -MP -MF
obj/x86_64/debug/arch/x86/dbg/kdbg.d
-Wa,-adhlns=obj/x86_64/debug/arch/x86/dbg/kdbg.lst -O0 -g3 -DDEBUG
-mcmodel=large -mno-red-zone -mgeneral-regs-only -I"include"
-I"arch/x86/include" -I"/home/bruce/workspace/include" -I"bsos/include"
-save-temps -D__MK__ -D__BSOS__ -O0 -g3 -DDEBUG
-o"obj/x86_64/debug/arch/x86/dbg/kdbg.o" "arch/x86/dbg/kdbg.c"
I have also attached this *.i files.
full output of compile (with -v)
Using built-in specs.
COLLECT_AS_OPTIONS='-adhlns=obj/x86_64/debug/arch/x86/dbg/kdbg.lst'
COLLECT_GCC=/usr/bin/gcc
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap
--enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,lto --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared
--enable-threads=posix --enable-checking=release --enable-multilib
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-gcc-major-version-only --enable-libstdcxx-backtrace
--with-linker-hash-style=gnu --enable-plugin --enable-initfini-array
--with-isl=/builddir/build/BUILD/gcc-12.1.1-20220507/obj-x86_64-redhat-linux/isl-install
--enable-offload-targets=nvptx-none --without-cuda-driver
--enable-offload-defaulted --enable-gnu-indirect-function --enable-cet
--with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
--with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.1.1 20220507 (Red Hat 12.1.1-1) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-nostdinc' '-fmessage-length=0'
'-fno-builtin' '-fno-leading-underscore' '-fno-stack-protector'
'-fno-exceptions' '-fno-unwind-tables' '-Wall' '-Wno-multichar' '-MT'
'obj/x86_64/debug/arch/x86/dbg/kdbg.o' '-MMD' '-MP' '-MF'
'obj/x86_64/debug/arch/x86/dbg/kdbg.d' '-O0' '-g3' '-D' 'DEBUG'
'-mcmodel=large' '-mno-red-zone' '-mgeneral-regs-only' '-I' 'include' '-I'
'arch/x86/include' '-I' '/home/bruce/workspace/include' '-I' 'bsos/include'
'-save-temps' '-D' '__MK__' '-D' '__BSOS__' '-O0' '-g3' '-D' 'DEBUG' '-o'
'obj/x86_64/debug/arch/x86/dbg/kdbg.o' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'obj/x86_64/debug/arch/x86/dbg/'
/usr/libexec/gcc/x86_64-redhat-linux/12/cc1 -E -quiet -nostdinc -v -I include
-I arch/x86/include -I /home/bruce/workspace/include -I bsos/include -MMD
obj/x86_64/debug/arch/x86/dbg/kdbg.d -MF obj/x86_64/debug/arch/x86/dbg/kdbg.d
-MP -MT obj/x86_64/debug/arch/x86/dbg/kdbg.o -dD -D DEBUG -D __MK__ -D __BSOS__
-D DEBUG arch/x86/dbg/kdbg.c -mcmodel=large -mno-red-zone -mgeneral-regs-only
-mtune=generic -march=x86-64 -Wall -Wno-multichar -fmessage-length=0
-fno-builtin -fno-leading-underscore -fno-stack-protector -fno-exceptions
-fno-unwind-tables -g3 -g3 -fworking-directory -O0 -O0 -fpch-preprocess -o
obj/x86_64/debug/arch/x86/dbg/kdbg.i
#include "..." search starts here:
#include <...> search starts here:
include
arch/x86/include
/home/bruce/workspace/include
bsos/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-nostdinc' '-fmessage-length=0'
'-fno-builtin' '-fno-leading-underscore' '-fno-stack-protector'
'-fno-exceptions' '-fno-unwind-tables' '-Wall' '-Wno-multichar' '-MT'
'obj/x86_64/debug/arch/x86/dbg/kdbg.o' '-MMD' '-MP' '-MF'
'obj/x86_64/debug/arch/x86/dbg/kdbg.d' '-O0' '-g3' '-D' 'DEBUG'
'-mcmodel=large' '-mno-red-zone' '-mgeneral-regs-only' '-I' 'include' '-I'
'arch/x86/include' '-I' '/home/bruce/workspace/include' '-I' 'bsos/include'
'-save-temps' '-D' '__MK__' '-D' '__BSOS__' '-O0' '-g3' '-D' 'DEBUG' '-o'
'obj/x86_64/debug/arch/x86/dbg/kdbg.o' '-mtune=generic' '-march=x86-64'
'-dumpdir' 'obj/x86_64/debug/arch/x86/dbg/'
/usr/libexec/gcc/x86_64-redhat-linux/12/cc1 -fpreprocessed
obj/x86_64/debug/arch/x86/dbg/kdbg.i -quiet -dumpdir
obj/x86_64/debug/arch/x86/dbg/ -dumpbase kdbg.c -dumpbase-ext .c -mcmodel=large
-mno-red-zone -mgeneral-regs-only -mtune=generic -m