public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/59332] New: Segmentation fault in inline_summary with LTO + attribute optimize
Date: Thu, 28 Nov 2013 16:43:00 -0000	[thread overview]
Message-ID: <bug-59332-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 59332
           Summary: Segmentation fault in inline_summary with LTO +
                    attribute optimize
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: d.g.gorbachev at gmail dot com

$ echo '__attribute__((optimize("no-lto"))) void foo(void) { }' > 1.c
$ gcc -S -flto 1.c
1.c:1:1: internal compiler error: Segmentation fault
 __attribute__((optimize("no-lto"))) void foo(void) { }
 ^
0x86dfff0 crash_signal
    ../../gcc-4.9/gcc/toplev.c:336
0x85230d4 vec<inline_summary, va_gc, vl_embed>::operator[](unsigned int)
    ../../gcc-4.9/gcc/vec.h:718
0x85230d4 inline_summary
    ../../gcc-4.9/gcc/ipa-inline.h:242
0x85230d4 inline_write_summary()
    ../../gcc-4.9/gcc/ipa-inline-analysis.c:4079
0x86172ee ipa_write_summaries_2
    ../../gcc-4.9/gcc/passes.c:2310
0x86173a4 ipa_write_summaries_1
    ../../gcc-4.9/gcc/passes.c:2340
0x8618148 ipa_write_summaries()
    ../../gcc-4.9/gcc/passes.c:2399
0x82f22a0 ipa_passes
    ../../gcc-4.9/gcc/cgraphunit.c:2030
0x82f31b4 compile()
    ../../gcc-4.9/gcc/cgraphunit.c:2126
0x82f3519 finalize_compilation_unit()
    ../../gcc-4.9/gcc/cgraphunit.c:2280
0x8143690 c_write_global_declarations()
    ../../gcc-4.9/gcc/c/c-decl.c:10388

GCC 4.9.0 20131124. Also fails with GCC 4.7, 4.8.


             reply	other threads:[~2013-11-28 16:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-28 16:43 d.g.gorbachev at gmail dot com [this message]
2013-11-29  4:39 ` [Bug lto/59332] " d.g.gorbachev at gmail dot com
2013-11-29  6:07 ` pinskia at gcc dot gnu.org
2013-11-29 10:01 ` [Bug c/59332] " rguenth at gcc dot gnu.org
2013-11-29 13:17 ` d.g.gorbachev at gmail dot com
2013-11-29 13:22 ` mpolacek at gcc dot gnu.org
2013-11-29 14:09 ` d.g.gorbachev at gmail dot com
2021-08-08  6:32 ` [Bug lto/59332] " pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59332-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).