public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/59332] New: Segmentation fault in inline_summary with LTO + attribute optimize
@ 2013-11-28 16:43 d.g.gorbachev at gmail dot com
  2013-11-29  4:39 ` [Bug lto/59332] " d.g.gorbachev at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2013-11-28 16:43 UTC (permalink / raw)
  To: gcc-bugs

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.


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

end of thread, other threads:[~2021-08-08  6:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-28 16:43 [Bug lto/59332] New: Segmentation fault in inline_summary with LTO + attribute optimize d.g.gorbachev at gmail dot com
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

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).