public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto
@ 2015-08-08 14:58 dilyan.palauzov at aegee dot org
  2015-08-09  7:51 ` [Bug bootstrap/67158] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dilyan.palauzov at aegee dot org @ 2015-08-08 14:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67158
           Summary: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at :
                    Compiling gcc6.0 with gcc6.0 -flto
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

I run

/git/gcc/configure --enable-host-shared --enable-threads=posix
--with-arch=haswell --enable-__cxa_atexit --enable-languages=c,c++,lto,jit
--enable-targets=all --enable-nls --with-linker-hash-style=gnu
--with-system-zlib --disable-multilib --prefix=/usr/local/gcc60

/usr/local/gcc60/etc/config.site contains:

export CC=/usr/local/gcc60/bin/gcc
export CXX=/usr/local/gcc60/bin/g++
export   CFLAGS="-pipe -O3 -flto -fno-fat-lto-objects"
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="-Wl,-O1,-z,relro,-s -flto=4"

where/usr/local/gcc60/bin contains a freshly compiled gcc6.0 (but without
passing -flto when building it)

and still at stage1:
$ make
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/src/gcc/gcc4'
make[2]: Entering directory '/src/gcc/gcc4'
make[3]: Entering directory '/src/gcc/gcc4'
rm -f stage_current
make[3]: Leaving directory '/src/gcc/gcc4'
make[2]: Leaving directory '/src/gcc/gcc4'
make[2]: Entering directory '/src/gcc/gcc4'
make[3]: Entering directory '/src/gcc/gcc4/libiberty'
make[4]: Entering directory '/src/gcc/gcc4/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/src/gcc/gcc4/libiberty/testsuite'
make[3]: Leaving directory '/src/gcc/gcc4/libiberty'
make[3]: Entering directory '/src/gcc/gcc4/lto-plugin'
make  all-am
make[4]: Entering directory '/src/gcc/gcc4/lto-plugin'
make[4]: Leaving directory '/src/gcc/gcc4/lto-plugin'
make[3]: Leaving directory '/src/gcc/gcc4/lto-plugin'
make[3]: Entering directory '/src/gcc/gcc4/intl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/gcc/gcc4/intl'
make[3]: Entering directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty'
make[4]: Entering directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty/testsuite'
make[3]: Leaving directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libiberty'
make[3]: Entering directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory
'/src/gcc/gcc4/build-x86_64-pc-linux-gnu/fixincludes'
make[3]: Entering directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory '/src/gcc/gcc4/build-x86_64-pc-linux-gnu/libcpp'
make[3]: Entering directory '/src/gcc/gcc4/libbacktrace'
make  all-am
make[4]: Entering directory '/src/gcc/gcc4/libbacktrace'
true  DO=all multi-do # make
make[4]: Leaving directory '/src/gcc/gcc4/libbacktrace'
make[3]: Leaving directory '/src/gcc/gcc4/libbacktrace'
make[3]: Entering directory '/src/gcc/gcc4/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[3]: Leaving directory '/src/gcc/gcc4/libcpp'
make[3]: Entering directory '/src/gcc/gcc4/libdecnumber'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/src/gcc/gcc4/libdecnumber'
make[3]: Entering directory '/src/gcc/gcc4/gcc'
/usr/local/gcc60/bin/g++ -std=gnu++98   -g -DIN_GCC -fPIC    -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++
-static-libgcc -Wl,-O1,-z,relro,-s -flto=4 -no-pie -o build/genmatch \
    build/genmatch.o ../build-x86_64-pc-linux-gnu/libcpp/libcpp.a
build/errors.o build/vec.o build/hash-table.o
../build-x86_64-pc-linux-gnu/libiberty/pic/libiberty.a
/git/gcc/libcpp/macro.c: In function ‘_cpp_create_definition’:
/git/gcc/libcpp/macro.c:3268:1: internal compiler error: in
gen_inlined_subroutine_die, at dwarf2out.c:19910
 }
 ^
0x6ecde1 gen_inlined_subroutine_die
        /git/gcc/gcc/dwarf2out.c:19909
0x6ecde1 gen_block_die
        /git/gcc/gcc/dwarf2out.c:20966
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eca8a gen_lexical_block_die
        /git/gcc/gcc/dwarf2out.c:19892
0x6eca8a gen_block_die
        /git/gcc/gcc/dwarf2out.c:20969
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eca8a gen_lexical_block_die
        /git/gcc/gcc/dwarf2out.c:19892
0x6eca8a gen_block_die
        /git/gcc/gcc/dwarf2out.c:20969
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6ecbcf gen_block_die
        /git/gcc/gcc/dwarf2out.c:20972
0x6ecf6a decls_for_scope
        /git/gcc/gcc/dwarf2out.c:21039
0x6eda6e gen_subprogram_die
        /git/gcc/gcc/dwarf2out.c:19188
0x6f2d84 gen_decl_die
        /git/gcc/gcc/dwarf2out.c:21442
0x6f3d3f dwarf2out_decl
        /git/gcc/gcc/dwarf2out.c:21915
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [/tmp/ccJAAnYp.ltrans5.ltrans.o] Error 1
make[4]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/local/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:2641: recipe for target 'build/genmatch' failed
make[3]: *** [build/genmatch] Error 1
make[3]: Leaving directory '/src/gcc/gcc4/gcc'
Makefile:4376: recipe for target 'all-stage1-gcc' failed
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory '/src/gcc/gcc4'
Makefile:19773: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/src/gcc/gcc4'
Makefile:908: recipe for target 'all' failed
make: *** [all] Error 2
>From gcc-bugs-return-494418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 08 15:05:05 2015
Return-Path: <gcc-bugs-return-494418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 75881 invoked by alias); 8 Aug 2015 15:05:05 -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 75809 invoked by uid 48); 8 Aug 2015 15:05:02 -0000
From: "tim.ruehsen at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/16351] NULL dereference warnings
Date: Sat, 08 Aug 2015 15:05:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.0.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: tim.ruehsen at gmx dot de
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-16351-4-As8pTovZPV@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-16351-4@http.gcc.gnu.org/bugzilla/>
References: <bug-16351-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: 2015-08/txt/msg00560.txt.bz2
Content-length: 430

https://gcc.gnu.org/bugzilla/show_bug.cgi?id\x16351

--- Comment #42 from Tim Ruehsen <tim.ruehsen at gmx dot de> ---
(In reply to Jeffrey A. Law from comment #41)
> Actually I think we want the concept of never returns NULL, both as an
> attribute and as a property the compiler can discover by analysis.  Given
> that property on the return value, it can be propagated into call sites.

++ That sounds like very useful feature.


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

* [Bug bootstrap/67158] ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto
  2015-08-08 14:58 [Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto dilyan.palauzov at aegee dot org
@ 2015-08-09  7:51 ` rguenth at gcc dot gnu.org
  2015-08-15  7:55 ` dcb314 at hotmail dot com
  2015-08-15  7:59 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-08-09  7:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Possibly also happens with bootstrap-lto and BOOT_CFLAGS=-g, that is, during
stage2/3 when not optimizing (?)


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

* [Bug bootstrap/67158] ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto
  2015-08-08 14:58 [Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto dilyan.palauzov at aegee dot org
  2015-08-09  7:51 ` [Bug bootstrap/67158] " rguenth at gcc dot gnu.org
@ 2015-08-15  7:55 ` dcb314 at hotmail dot com
  2015-08-15  7:59 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2015-08-15  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
I am also seeing this problem when compiling some packages of Redhat Linux
with gcc trunk dated 20150813.


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

* [Bug bootstrap/67158] ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto
  2015-08-08 14:58 [Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto dilyan.palauzov at aegee dot org
  2015-08-09  7:51 ` [Bug bootstrap/67158] " rguenth at gcc dot gnu.org
  2015-08-15  7:55 ` dcb314 at hotmail dot com
@ 2015-08-15  7:59 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-15  7:59 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

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


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

end of thread, other threads:[~2015-08-15  7:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-08 14:58 [Bug bootstrap/67158] New: ICE dwarf2out.c:19910/gen_inlined_subroutine_die, at : Compiling gcc6.0 with gcc6.0 -flto dilyan.palauzov at aegee dot org
2015-08-09  7:51 ` [Bug bootstrap/67158] " rguenth at gcc dot gnu.org
2015-08-15  7:55 ` dcb314 at hotmail dot com
2015-08-15  7:59 ` trippels 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).