public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
@ 2015-03-27  9:09 ` trippels at gcc dot gnu.org
  2015-03-27  9:13 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-03-27  9:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Started with r221707.


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
  2015-03-27  9:09 ` [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192 trippels at gcc dot gnu.org
@ 2015-03-27  9:13 ` rguenth at gcc dot gnu.org
  2015-03-27  9:33 ` hubicka at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-27  9:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
   Target Milestone|---                         |5.0


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
  2015-03-27  9:09 ` [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192 trippels at gcc dot gnu.org
  2015-03-27  9:13 ` rguenth at gcc dot gnu.org
@ 2015-03-27  9:33 ` hubicka at gcc dot gnu.org
  2015-03-27  9:41 ` hubicka at ucw dot cz
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-03-27  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-03-27
           Assignee|unassigned at gcc dot gnu.org      |hubicka at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Mine, will look into it tomorrow.


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-03-27  9:33 ` hubicka at gcc dot gnu.org
@ 2015-03-27  9:41 ` hubicka at ucw dot cz
  2015-03-27 11:01 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: hubicka at ucw dot cz @ 2015-03-27  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jan Hubicka <hubicka at ucw dot cz> ---
Hi,
the ICE does not reproduce for me, but from backtrace it seems quite clear
that the following fix should work:
Index: cgraph.c
===================================================================
--- cgraph.c    (revision 221707)
+++ cgraph.c    (working copy)
@@ -1516,7 +1516,7 @@ cgraph_update_edges_for_call_stmt_node (
       if (e)
        {
          /* Keep calls marked as dead dead.  */
-         if (e->callee
+         if (new_call && e->callee
              && DECL_BUILT_IN_CLASS (e->callee->decl) == BUILT_IN_NORMAL
              && DECL_FUNCTION_CODE (e->callee->decl) == BUILT_IN_UNREACHABLE)
            {

It is late here, so I will return to it only at morning.  If the patch fixes
the
ICE and passes testing, please just go ahead and commit it.

Honza


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-03-27  9:41 ` hubicka at ucw dot cz
@ 2015-03-27 11:01 ` hubicka at gcc dot gnu.org
  2015-03-27 11:07 ` hubicka at gcc dot gnu.org
  2015-03-27 14:48 ` trippels at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-03-27 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Fri Mar 27 10:33:17 2015
New Revision: 221726

URL: https://gcc.gnu.org/viewcvs?rev=221726&root=gcc&view=rev
Log:

    PR middle-end/65595
    * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
    do redirection if the call is not optimized out.

    * gcc.c-torture/compile/pr65595.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr65595.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cgraph.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2015-03-27 11:01 ` hubicka at gcc dot gnu.org
@ 2015-03-27 11:07 ` hubicka at gcc dot gnu.org
  2015-03-27 14:48 ` trippels at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2015-03-27 11:07 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.


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

* [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192
       [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2015-03-27 11:07 ` hubicka at gcc dot gnu.org
@ 2015-03-27 14:48 ` trippels at gcc dot gnu.org
  6 siblings, 0 replies; 7+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-03-27 14:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 65603 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2015-03-27 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-65595-4@http.gcc.gnu.org/bugzilla/>
2015-03-27  9:09 ` [Bug middle-end/65595] [5 Regression] Linux kernel build failure: ICE: in as_a, at is-a.h:192 trippels at gcc dot gnu.org
2015-03-27  9:13 ` rguenth at gcc dot gnu.org
2015-03-27  9:33 ` hubicka at gcc dot gnu.org
2015-03-27  9:41 ` hubicka at ucw dot cz
2015-03-27 11:01 ` hubicka at gcc dot gnu.org
2015-03-27 11:07 ` hubicka at gcc dot gnu.org
2015-03-27 14:48 ` 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).