[Bug inline-asm/88559] New: error: Stack Pointer register clobbered by '%rsp' in 'asm'

jamrial at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Dec 20 04:50:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88559

            Bug ID: 88559
           Summary: error: Stack Pointer register clobbered by '%rsp' in
                    'asm'
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamrial at gmail dot com
  Target Milestone: ---

Created attachment 45265
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45265&action=edit
Failing pre processed output

[jamrial@ArchVM ~]$ /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
--with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --enable-default-pie --enable-default-ssp
--enable-cet=auto
Thread model: posix
gcc version 8.2.1 20181127 (GCC)

[jamrial@ArchVM ~]$ /usr/bin/gcc -std=c11 -fPIC -pthread -g -O3 -c -o
postproc.o postproc.i

/-----------/

[jamrial@ArchVM ~]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/jamrial/gcc-svn/configure --prefix=/usr/local
--libdir=/usr/local/lib --libexecdir=/usr/local/lib
--mandir=/usr/local/share/man --infodir=/usr/local/share/info
--enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-libmpx
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp
--enable-gnu-unique-object --enable-linker-build-id --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --disable-multilib --disable-bootstrap
--disable-werror --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 9.0.0 20181220 (experimental) (GCC)

[jamrial@ArchVM ~]$ gcc -std=c11 -fPIC -pthread -g -O3 -c -o postproc.o
postproc.i
In file included from src/libpostproc/postprocess.c:538:
src/libpostproc/postprocess_template.c: In function 'dering_MMX2':
src/libpostproc/postprocess_template.c:1097:5: error: Stack Pointer register
clobbered by '%rsp' in 'asm'
In file included from src/libpostproc/postprocess.c:540:
src/libpostproc/postprocess_template.c: In function 'dering_3DNow':
src/libpostproc/postprocess_template.c:1097:5: error: Stack Pointer register
clobbered by '%rsp' in 'asm'

/-------/

This regression was introduced by a change committed between Dec 10 and Dec 17.


More information about the Gcc-bugs mailing list