* [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