public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition
@ 2013-06-25 21:36 linuxsquirrel.dev at gmail dot com
  2013-07-10  6:11 ` [Bug lto/57715] " tvijlbrief at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: linuxsquirrel.dev at gmail dot com @ 2013-06-25 21:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

            Bug ID: 57715
           Summary: lto1.exe: internal compiler error: in
                    add_symbol_to_partition
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: linuxsquirrel.dev at gmail dot com

Using MinGW-builds, 4.8.1 version. I try to compile Qt 4.8.4 with -flto on
Windows 7 32-bit:


> jom

...

g++ -c -include tmp\obj\release_shared\qt_gui_pch.h -pipe
-fno-keep-inline-dllexport -flto -O2 -Wall -Wextra -frtti -fexceptions
-mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE-DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER
-D_USE_MATH_DEFINES -DQT_NO_DIRECTDRAW -DQT_USE_BUNDLED_LIBPNG
-DPNG_NO_ASSEMBLER_CODE -DQT_NO_CUPS -DQT_NO_LPR -DQT_NO_OPENTYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE
-DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQT_NO_EGL -DQ_INTERNAL_QAPP_SRC
-DQT_NO_DIRECTWRITE -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\include\QtCore"
-I"..\..\include" -I"..\..\extra\openssl\include" -I"..\..\include\QtGui"
-I"tmp\rcc\release_shared" -I"tmp" -I"..\3rdparty\wintab" -I"image"
-I"..\3rdparty\libpng" -I"..\3rdparty\zlib" -I"..\3rdparty\zlib"
-I"..\3rdparty\harfbuzz\src" -I"dialogs" -I"..\..\include\ActiveQt"
-I"tmp\moc\release_shared" -I"." -I"..\..\mkspecs\win32-g++-4.6" -o
tmp\obj\release_shared\qlistwidget.o itemviews\qlistwidget.cpp

g++ -flto -Wl,-s -mthreads -shared
-Wl,--out-implib,f:\qt4-tht-toolchain\lib\libQtGui4.a -o ..\..\lib\QtGui4.dll
object_script.QtGui.Release  -L"f:\qt4-tht-toolchain\lib"
-L"f:\qt4-tht-toolchain\lib" -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm
-lwinspool -lws2_32 -lole32 -luuid -luser32 -ladvapi32
tmp\obj\release_shared\QtGui_resource_res.o
-LF:\qt4-tht-toolchain\extra\openssl\lib
-LF:\qt4-tht-toolchain\extra\openssl\bin -lmsimg32 -lshell32 -lQtCore4
lto1.exe: internal compiler error: in add_symbol_to_partition, at
lto/lto-partition.c:284
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://sourceforge.net/projects/mingwbuilds/> for instructions.
lto-wrapper: g++ returned 1 exit status
f:/qt4-tht-toolchain/mingw/bin/../lib/gcc/i686-w64-mingw32/4.8.1/../../../../i686-w64
-mingw32/bin/ld.exe: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status


---


>gcc -v
Using built-in specs.
COLLECT_GCC=F:\dev\Qt4-THT-toolchain\mingw\bin\gcc.EXE
COLLECT_LTO_WRAPPER=f:/dev/qt4-tht-toolchain/mingw/bin/../libexec/gcc/i686-w64-mingw3
2/4.8.1/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.8.1/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/tmp/x32-481-posix-sjlj-r1/mingw32 --enable-shared
--enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=posix --enable-libgomp --enable-lto --enable-graphite
--enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --enable-sjlj-exceptions
--disable-isl-version-check --disable-cloog-version-check
--disable-libstdcxx-pch --disable-libstdcxx-debug --disable-bootstrap
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686
--with-arch-64=nocona --with-tune-32=generic --with-tune-64=core2
--with-host-libstdcxx='-static -lstdc++' --with-libiconv --with-system-zlib
--with-gmp=/tmp/mingw-prereq/i686-w64-mingw32-static
--with-mpfr=/tmp/mingw-prereq/i686-w64-mingw32-static
--with-mpc=/tmp/mingw-prereq/i686-w64-mingw32-static
--with-isl=/tmp/mingw-prereq/i686-w64-mingw32-static
--with-cloog=/tmp/mingw-prereq/i686-w64-mingw32-static
--enable-cloog-backend=isl --with-pkgversion='rev1, Built by MinGW-builds
project' --with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2
-pipe -I/tmp/x32-481-posix-sjlj-r1/libs/include
-I/tmp/mingw-prereq/x32-zlib/include
-I/tmp/mingw-prereq/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe
-I/tmp/x32-481-posix-sjlj-r1/libs/include -I/tmp/mingw-prereq/x32-zlib/include
-I/tmp/mingw-prereq/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe
-L/tmp/x32-481-posix-sjlj-r1/libs/lib -L/tmp/mingw-prereq/x32-zlib/lib
-L/tmp/mingw-prereq/i686-w64-mingw32-static/lib
-L/tmp/x32-481-posix-sjlj-r1/mingw32/opt/lib'
Thread model: posix
gcc version 4.8.1 (rev1, Built by MinGW-builds project)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
  2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
@ 2013-07-10  6:11 ` tvijlbrief at gmail dot com
  2014-03-20 20:36 ` burnus at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tvijlbrief at gmail dot com @ 2013-07-10  6:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

Tom Vijlbrief <tvijlbrief at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tvijlbrief at gmail dot com

--- Comment #1 from Tom Vijlbrief <tvijlbrief at gmail dot com> ---
This bug also effects the compilation of the Stockfish chess program, see:

https://github.com/mcostalba/Stockfish/pull/68


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
  2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
  2013-07-10  6:11 ` [Bug lto/57715] " tvijlbrief at gmail dot com
@ 2014-03-20 20:36 ` burnus at gcc dot gnu.org
  2014-03-21 15:01 ` vhaisman at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-03-20 20:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
This PR might have the same reason as PR60567.

Namely, your GCC has not been compiled on a system with working linker plugin -
and thus, lto1 is not invoked with -fresolution=.

Try compiling with "-fuse-linker-plugin" - if that gives an error, try a GCC
which has been configured with --with-plugin-ld= pointing to a newer Binutils -
2.21 or newer. If that helps, it is a duplicate of PR60567.

If it doesn't help: Create a reduced test case as described at
http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
  2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
  2013-07-10  6:11 ` [Bug lto/57715] " tvijlbrief at gmail dot com
  2014-03-20 20:36 ` burnus at gcc dot gnu.org
@ 2014-03-21 15:01 ` vhaisman at gmail dot com
  2014-03-21 15:04 ` vhaisman at gmail dot com
  2021-12-07  7:21 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vhaisman at gmail dot com @ 2014-03-21 15:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

Václav Zeman <vhaisman at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vhaisman at gmail dot com

--- Comment #3 from Václav Zeman <vhaisman at gmail dot com> ---
Created attachment 32421
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32421&action=edit
preprocessed source
>From gcc-bugs-return-447106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:02:33 2014
Return-Path: <gcc-bugs-return-447106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5487 invoked by alias); 21 Mar 2014 15:02:33 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5450 invoked by uid 48); 21 Mar 2014 15:02:29 -0000
From: "vhaisman at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
Date: Fri, 21 Mar 2014 15:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vhaisman at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-57715-4-iq5dfsgUys@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57715-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57715-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01975.txt.bz2
Content-length: 927

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

--- Comment #4 from Václav Zeman <vhaisman at gmail dot com> ---
(In reply to Tobias Burnus from comment #2)
> This PR might have the same reason as PR60567.
> 
> Namely, your GCC has not been compiled on a system with working linker
> plugin - and thus, lto1 is not invoked with -fresolution=.
> 
> Try compiling with "-fuse-linker-plugin" - if that gives an error, try a GCC
> which has been configured with --with-plugin-ld= pointing to a newer
> Binutils - 2.21 or newer. If that helps, it is a duplicate of PR60567.

I was able to (manually) reduce the test to 

g++  -r -nostdlib  src/.libs/liblog4cplus_la-rootlogger.ii -flto -o
.libs/cyglog4cplus-1-2-2.dll

The preprocessed file is attached compressed.

> 
> If it doesn't help: Create a reduced test case as described at
> http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs
>From gcc-bugs-return-447107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:04:37 2014
Return-Path: <gcc-bugs-return-447107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6856 invoked by alias); 21 Mar 2014 15:04:37 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6773 invoked by uid 48); 21 Mar 2014 15:04:32 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/60600] [4.9 Regression] ICE in ipa_get_indirect_edge_target_1
Date: Fri, 21 Mar 2014 15:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60600-4-OmUXc1Yj7o@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60600-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60600-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01976.txt.bz2
Content-length: 362

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`600

--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Or we might produce a call to __builtin_unreachable (we already do
that in ipa_get_indirect_edge_target_1 in similar cases) or
__builtin_abort.  Tough decision, although I'll probably go for
__builtin_unreachable, for the sake of consistency.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
  2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
                   ` (2 preceding siblings ...)
  2014-03-21 15:01 ` vhaisman at gmail dot com
@ 2014-03-21 15:04 ` vhaisman at gmail dot com
  2021-12-07  7:21 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vhaisman at gmail dot com @ 2014-03-21 15:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57715

--- Comment #5 from Václav Zeman <vhaisman at gmail dot com> ---
(In reply to Václav Zeman from comment #4)
> (In reply to Tobias Burnus from comment #2)
> > This PR might have the same reason as PR60567.
> > 
> > Namely, your GCC has not been compiled on a system with working linker
> > plugin - and thus, lto1 is not invoked with -fresolution=.
> > 
> > Try compiling with "-fuse-linker-plugin" - if that gives an error, try a GCC
> > which has been configured with --with-plugin-ld= pointing to a newer
> > Binutils - 2.21 or newer. If that helps, it is a duplicate of PR60567.
> 
> I was able to (manually) reduce the test to 
> 
> g++  -r -nostdlib  src/.libs/liblog4cplus_la-rootlogger.ii -flto -o
> .libs/cyglog4cplus-1-2-2.dll
> 
> The preprocessed file is attached compressed.
> 
> > 
> > If it doesn't help: Create a reduced test case as described at
> > http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs

Oops! All of this should have gone to PR 56963 instead.
>From gcc-bugs-return-447109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:05:22 2014
Return-Path: <gcc-bugs-return-447109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8415 invoked by alias); 21 Mar 2014 15:05:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8359 invoked by uid 48); 21 Mar 2014 15:05:18 -0000
From: "vhaisman at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284
Date: Fri, 21 Mar 2014 15:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vhaisman at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56963-4-s5aIsavpp6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01978.txt.bz2
Content-length: 927

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #6 from Václav Zeman <vhaisman at gmail dot com> ---
(In reply to Tobias Burnus from comment #5)
> This PR might have the same reason as PR60567.
> 
> Namely, your GCC has not been compiled on a system with working linker
> plugin - and thus, lto1 is not invoked with -fresolution=.
> 
> Try compiling with "-fuse-linker-plugin" - if that gives an error, try a GCC
> which has been configured with --with-plugin-ld= pointing to a newer
> Binutils - 2.21 or newer. If that helps, it is a duplicate of PR60567.

I was able to (manually) reduce the test to 

g++  -r -nostdlib  src/.libs/liblog4cplus_la-rootlogger.ii -flto -o
.libs/cyglog4cplus-1-2-2.dll

The preprocessed file is attached compressed.

> 
> If it doesn't help: Create a reduced test case as described at
> http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction#Reducing_LTO_bugs
>From gcc-bugs-return-447110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:05:48 2014
Return-Path: <gcc-bugs-return-447110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9130 invoked by alias); 21 Mar 2014 15:05:48 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9087 invoked by uid 48); 21 Mar 2014 15:05:45 -0000
From: "vhaisman at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284
Date: Fri, 21 Mar 2014 15:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vhaisman at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-56963-4-mNzeO5Fphr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01979.txt.bz2
Content-length: 242

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #7 from Václav Zeman <vhaisman at gmail dot com> ---
Created attachment 32422
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32422&action=edit
preprocessed source
>From gcc-bugs-return-447111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:06:47 2014
Return-Path: <gcc-bugs-return-447111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9933 invoked by alias); 21 Mar 2014 15:06:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9885 invoked by uid 48); 21 Mar 2014 15:06:42 -0000
From: "vhaisman at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/56963] GCC 4.8.0 LTO issue: lto1: internal compiler error: in add_symbol_to_partition, at lto/lto-partition.c:284
Date: Fri, 21 Mar 2014 15:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords: lto
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vhaisman at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56963-4-3jn5GebsTp@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56963-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01980.txt.bz2
Content-length: 1701

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56963

--- Comment #8 from Václav Zeman <vhaisman at gmail dot com> ---
BTW, the current version with which I have reduced the test case is this:

`--> g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.8.2/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.2-2/src/gcc-4.8.2/configure
--srcdir=/cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.2-2/src/gcc-4.8.2 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share
--docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C
--build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin
--without-libiconv-prefix --without-libintl-prefix --enable-shared
--enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs
--enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686
--with-tune=generic --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite
--enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm
--enable-libquadmath --enable-libquadmath-support --enable-libssp
--enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt
--disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld
--with-gnu-as --with-cloog-include=/usr/include/cloog-isl
--without-libiconv-prefix --without-libintl-prefix --with-system-zlib
--libexecdir=/usr/lib
Thread model: posix
gcc version 4.8.2 (GCC)
>From gcc-bugs-return-447112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:10:23 2014
Return-Path: <gcc-bugs-return-447112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11565 invoked by alias); 21 Mar 2014 15:10:22 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 11533 invoked by uid 48); 21 Mar 2014 15:10:18 -0000
From: "hjp at liab dot dk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60614] New: -Wtype-limits fails to warn on unsigned bitfields
Date: Fri, 21 Mar 2014 15:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: hjp at liab dot dk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-60614-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01981.txt.bz2
Content-length: 2222

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60614

            Bug ID: 60614
           Summary: -Wtype-limits fails to warn on unsigned bitfields
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjp at liab dot dk

This is possibly related to #54787, but with a different case.

After finding a bug in code compiled with avr-gcc, I created this test case, as
no warning was issued when I expected it. The following test case is tested on:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.8-20140206/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 --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-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.2 20140206 (prerelease) (GCC)

Test case:
#include <stdio.h>

struct {
    unsigned char field1 :3;
    unsigned char field2 :5;
} teststruct;

int main ( void ) {

    unsigned char test;

    if (teststruct.field1 < 0) //issues no warning
        printf("Field1 was negative\n");

    if (test < 0) //issues warning
        printf("Test was negative\n");

    return 0;
}


// Compilation:
$ gcc -Wall -Wextra test.c -o test
test.c: In function ‘main’:
test.c:17:2: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
  if (test < 0)
  ^


==
The warning is not issued on test for negative unsigned bitfield as I expected
it.
>From gcc-bugs-return-447113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Mar 21 15:16:11 2014
Return-Path: <gcc-bugs-return-447113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14578 invoked by alias); 21 Mar 2014 15:16:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14284 invoked by uid 48); 21 Mar 2014 15:16:06 -0000
From: "jamborm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/60600] [4.9 Regression] ICE in ipa_get_indirect_edge_target_1
Date: Fri, 21 Mar 2014 15:16:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jamborm at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jamborm at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to
Message-ID: <bug-60600-4-fBf4UAUrke@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60600-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60600-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-03/txt/msg01982.txt.bz2
Content-length: 1652

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`600

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jamborm at gcc dot gnu.org

--- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> ---
This is what I'm about to bootstrap and test and then try with Mozilla
Firefox.

It might be worthwhile to report the error in the library from which
the testcase is derived.  You can even try and build and test the
library with this patch but with BUILT_IN_UNREACHABLE replaced with
BUILT_IN_ABORT to track the issue.

--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -1639,11 +1639,18 @@ ipa_get_indirect_edge_target_1 (struct cgraph_edge *ie,
        return NULL_TREE;
       target = gimple_get_virt_method_for_binfo (token, binfo);
     }
-#ifdef ENABLE_CHECKING
-  if (target)
-    gcc_assert (possible_polymorphic_call_target_p
-                (ie, cgraph_get_node (target)));
-#endif
+
+  if (target && !possible_polymorphic_call_target_p (ie,
+                                                    cgraph_get_node (target)))
+    {
+      if (dump_file)
+       fprintf (dump_file,
+                "Type inconsident devirtualization: %s/%i->%s\n",
+                ie->caller->name (), ie->caller->order,
+                IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (target)));
+      target = builtin_decl_implicit (BUILT_IN_UNREACHABLE);
+      cgraph_get_create_node (target);
+    }

   return target;
 }


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/57715] lto1.exe: internal compiler error: in add_symbol_to_partition
  2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
                   ` (3 preceding siblings ...)
  2014-03-21 15:04 ` vhaisman at gmail dot com
@ 2021-12-07  7:21 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-12-07  7:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Closing as duplicate in the attempt to weed out old bugs that lack reproducers.

*** This bug has been marked as a duplicate of bug 56963 ***

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-07  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25 21:36 [Bug lto/57715] New: lto1.exe: internal compiler error: in add_symbol_to_partition linuxsquirrel.dev at gmail dot com
2013-07-10  6:11 ` [Bug lto/57715] " tvijlbrief at gmail dot com
2014-03-20 20:36 ` burnus at gcc dot gnu.org
2014-03-21 15:01 ` vhaisman at gmail dot com
2014-03-21 15:04 ` vhaisman at gmail dot com
2021-12-07  7:21 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).