[Bug target/86048] New: [8/9 Regression] .seh_savexmm offset is negative error when compiling libpng
daniel.f.starke at freenet dot de
gcc-bugzilla@gcc.gnu.org
Mon Jun 4 19:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86048
Bug ID: 86048
Summary: [8/9 Regression] .seh_savexmm offset is negative error
when compiling libpng
Product: gcc
Version: 8.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: daniel.f.starke at freenet dot de
Target Milestone: ---
Created attachment 44232
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44232&action=edit
pre-processed source file
Using GCC 8.1.0 configured as following:
Configured with: ../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32
--enable-languages=c,c++ --enable-seh-exceptions --enable-threads=posix
--disable-nls --disable-shared --enable-static --enable-fully-dynamic-string
--enable-lto --enable-plugins --enable-libgomp --with-dwarf2
--enable-mingw-wildcard=platform --disable-win32-registry
--enable-version-specific-runtime-libs --prefix=/mingw64-64
--with-sysroot=/mingw64-64 --target=x86_64-w64-mingw32 --enable-targets=all
--enable-checking=release --with-gmp=/usr/new-gcc/lib/gmp-5.0.5
--with-mpfr=/usr/new-gcc/lib/mpfr-2.4.2 --with-mpc=/usr/new-gcc/lib/mpc-0.9
--with-isl=/usr/new-gcc/lib/isl-0.18 --with-cloog=/usr/new-gcc/lib/cloog-0.18.4
--with-host-libstdcxx='-lstdc++ -lsupc++' --disable-cloog-version-check
--enable-cloog-backend=isl
The pre-build compiler binaries for x64 Windows can be downloaded from:
https://sourceforge.net/projects/gcc-win64/files/8.1.0/gcc-8.1.0-no-debug.7z/download
When I try to compile libpng 1.6.34 with -O2 I get the following error from the
assembler:
Error: .seh_savexmm offset is negative
The error does not occur when compiling the same pre-processed file with GCC
7.3.0 using the same command-line options.
Attached you can find the pre-processed file in question as well as an
automatically reduced version of it.
The file was compiled with:
gcc -save-temps -O2 -fno-ident -fno-strict-aliasing -fomit-frame-pointer -s
-static -c -o pngvalid.o pngvalid.i
The error was also posted to the libpng library by someone else:
https://sourceforge.net/p/libpng/bugs/280/
And to the libpng library as part of the MinGW packages:
https://github.com/Alexpux/MINGW-packages/issues/3893
I believe the error resists in GCC. I only changed the GCC compiler itself and
the MinGW runtime libraries (this was needed to compile GCC 8.1.0 on Windows).
More information about the Gcc-bugs
mailing list