This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70112] [lto] Segmentation fault in Libreoffice's program gengal.bin when build with LTO
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Mar 2016 15:11:50 +0000
- Subject: [Bug c++/70112] [lto] Segmentation fault in Libreoffice's program gengal.bin when build with LTO
- Auto-submitted: auto-generated
- References: <bug-70112-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70112
--- Comment #5 from Martin LiÅka <marxin at gcc dot gnu.org> ---
Hi.
I've just tried to build libreoffice:
commit abadeb7a4a76e8ea6ec449f3ea564abf8d52a231
Author: Maxim Monastirsky <momonasmon@gmail.com>
Date: Sun Feb 28 16:30:58 2016 +0200
Unused defines
Change-Id: Idc31e498a7223e7827533b24ab26928e21660ff2
with latest GCC:
gcc --version
gcc (GCC) 6.0.0 20160308 (experimental)
Works fine for both -O2 and -O2 and -flto. Unfortunately, due to:
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx: In
function âvoid sax::lcl_AppendTimezone(rtl::OUStringBuffer&, sal_Int16)â:
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx:1271:47:
error: invalid operands of types â__gnu_cxx::__enable_if<true, double>::__type
{aka double}â and âintâ to binary âoperator%â
const sal_Int32 nMinutes(abs(nOffset) % 60);
~~~~~~~~~~~~~^~~~
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx: In
function âvoid sax::lcl_ConvertToUTC(sal_Int16&, sal_uInt16&, sal_uInt16&,
sal_uInt16&, sal_uInt16&, sal_Int16)â:
/home/marxin/Programming/libreoffice/sax/source/tools/converter.cxx:1442:55:
error: invalid operands of types â__gnu_cxx::__enable_if<true, double>::__type
{aka double}â and âintâ to binary âoperator%â
sal_Int16 const nOffsetMinutes(abs(nSourceOffset) % 60);
I was unable to build 'libreoffice-5-0-5' branch. Execution of both binaries is
w/o any problem.
Martin