public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
@ 2011-03-10 20:00 ` d.g.gorbachev at gmail dot com
  2011-03-11 10:03 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-03-10 20:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-03-10 20:00:27 UTC ---
Created attachment 23619
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23619
backtrace


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

* [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
@ 2011-03-10 20:00 d.g.gorbachev at gmail dot com
  2011-03-10 20:00 ` [Bug lto/48065] " d.g.gorbachev at gmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-03-10 20:00 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: LTO: assertion failed in optimize_inline_calls, at
                    tree-inline.c:4246
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


Created attachment 23618
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23618
testcase

In file included from :0:0:
main.c: In function 'main':
main.c:3:5: internal compiler error: in optimize_inline_calls, at
tree-inline.c:4246


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
  2011-03-10 20:00 ` [Bug lto/48065] " d.g.gorbachev at gmail dot com
@ 2011-03-11 10:03 ` rguenth at gcc dot gnu.org
  2011-07-14 23:16 ` d.g.gorbachev at gmail dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-11 10:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-checking, lto
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.03.11 10:03:26
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-11 10:03:26 UTC ---
Hum, this checking that triggers is somewhat bogus as at least with LTO
we end up rejecting some inlines late in expand_call_inline.

With the inliner reorg we should try to avoid this more consistently.


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
  2011-03-10 20:00 ` [Bug lto/48065] " d.g.gorbachev at gmail dot com
  2011-03-11 10:03 ` rguenth at gcc dot gnu.org
@ 2011-07-14 23:16 ` d.g.gorbachev at gmail dot com
  2011-07-15  0:02 ` d.g.gorbachev at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-07-14 23:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-07-14 23:14:33 UTC ---
I can't reproduce it now.


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (2 preceding siblings ...)
  2011-07-14 23:16 ` d.g.gorbachev at gmail dot com
@ 2011-07-15  0:02 ` d.g.gorbachev at gmail dot com
  2013-01-03 16:34 ` hubicka at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-07-15  0:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-07-15 00:01:49 UTC ---
Still in GCC 4.6 (when checking is turned on).


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (3 preceding siblings ...)
  2011-07-15  0:02 ` d.g.gorbachev at gmail dot com
@ 2013-01-03 16:34 ` hubicka at gcc dot gnu.org
  2013-01-03 16:37 ` hubicka at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-01-03 16:34 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-01-03 16:33:29 UTC ---
Hmm, rejecting inlines late at ltrans stage really is problem as discussed
earlier - we make assumptions on the optimizations of constant parameters and
we won't export offline function


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (4 preceding siblings ...)
  2013-01-03 16:34 ` hubicka at gcc dot gnu.org
@ 2013-01-03 16:37 ` hubicka at gcc dot gnu.org
  2013-01-03 16:41 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-01-03 16:37 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2013-01-03 16:37:00 UTC ---
Hmm, rejecting inlines late at ltrans stage really is problem as discussed
earlier - we make assumptions on the optimizations of constant parameters and
we won't export offline copy in partitioning so it may lead to undefined
reference.  How do you expect this to work? Where we do the refusal?
I do not see any code there.
I would really preffer inlining to work (and produce wrong code in undefined
cases perhaps with warning) rather than giving up on the inline plan.  If this
is not possible to implement, we can materialize a clone with the expected
constant propagated and redirect call there, but it is tricky to implement,
too.


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (5 preceding siblings ...)
  2013-01-03 16:37 ` hubicka at gcc dot gnu.org
@ 2013-01-03 16:41 ` rguenth at gcc dot gnu.org
  2013-01-04 10:51 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-03 16:41 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-03 16:40:48 UTC ---
We definitely should be able to make it work.  We can simply inline
abort () ;)


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (6 preceding siblings ...)
  2013-01-03 16:41 ` rguenth at gcc dot gnu.org
@ 2013-01-04 10:51 ` rguenth at gcc dot gnu.org
  2013-01-04 21:26 ` hubicka at ucw dot cz
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-04 10:51 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-04 10:51:30 UTC ---
I think we don't fail late now, at least not in expand_call_inline (unless
inline_failed is re-computed at LTRANS stage).


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (7 preceding siblings ...)
  2013-01-04 10:51 ` rguenth at gcc dot gnu.org
@ 2013-01-04 21:26 ` hubicka at ucw dot cz
  2020-04-13 18:41 ` asolokha at gmx dot com
  2020-04-14  6:20 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at ucw dot cz @ 2013-01-04 21:26 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from Jan Hubicka <hubicka at ucw dot cz> 2013-01-04 21:26:04 UTC ---
> I think we don't fail late now, at least not in expand_call_inline (unless
> inline_failed is re-computed at LTRANS stage).
Yes, i think we simply produce invalid gimple and type later on errneous
conversion.
At least we did so last time I hit the issue with Mozilla ;)

Honza


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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (8 preceding siblings ...)
  2013-01-04 21:26 ` hubicka at ucw dot cz
@ 2020-04-13 18:41 ` asolokha at gmx dot com
  2020-04-14  6:20 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: asolokha at gmx dot com @ 2020-04-13 18:41 UTC (permalink / raw)
  To: gcc-bugs

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

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asolokha at gmx dot com

--- Comment #10 from Arseny Solokha <asolokha at gmx dot com> ---
Is it still an issue?

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

* [Bug lto/48065] LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246
  2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
                   ` (9 preceding siblings ...)
  2020-04-13 18:41 ` asolokha at gmx dot com
@ 2020-04-14  6:20 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-14  6:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
Let's assume it's fixed.  The code changed quite a bit meanwhile.

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

end of thread, other threads:[~2020-04-14  6:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 20:00 [Bug lto/48065] New: LTO: assertion failed in optimize_inline_calls, at tree-inline.c:4246 d.g.gorbachev at gmail dot com
2011-03-10 20:00 ` [Bug lto/48065] " d.g.gorbachev at gmail dot com
2011-03-11 10:03 ` rguenth at gcc dot gnu.org
2011-07-14 23:16 ` d.g.gorbachev at gmail dot com
2011-07-15  0:02 ` d.g.gorbachev at gmail dot com
2013-01-03 16:34 ` hubicka at gcc dot gnu.org
2013-01-03 16:37 ` hubicka at gcc dot gnu.org
2013-01-03 16:41 ` rguenth at gcc dot gnu.org
2013-01-04 10:51 ` rguenth at gcc dot gnu.org
2013-01-04 21:26 ` hubicka at ucw dot cz
2020-04-13 18:41 ` asolokha at gmx dot com
2020-04-14  6:20 ` 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).