public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
@ 2015-01-19  7:04 trippels at gcc dot gnu.org
  2015-01-19  7:08 ` [Bug ipa/64664] " trippels at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-19  7:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64664
           Summary: [5 Regression] ICE: tree check: expected
                    function_decl, have <invalid tree code> in
                    opts_for_fn, at tree.h:4706
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org

I guess either r219822 or r219823 caused the following Firefox build error:

/home/trippels/gcc_test/usr/local/bin/c++ -fPIC -Wall -Wempty-body
-Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels
-Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith
-Werror=return-type -Werror=sequence-point -Werror=unused-label
-Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wcast-align
-flto=80 --param lto-partitions=80 -mcpu=power8 -ffunction-sections
-fdata-sections -fno-exceptions -fno-strict-aliasing -frtti -fno-exceptions
-fno-math-errno -std=gnu++0x -pthread -pipe -UDEBUG -DNDEBUG -O3
-DU_STATIC_IMPLEMENTATION -fvisibility=hidden -W -Wall -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-unused
-Wno-unused-parameter   -lpthread
-Wl,--hash-style=gnu,--as-needed,--gc-sections,--icf=all -Wl,-z,noexecstack
-Wl,-z,text -Wl,--build-id -Wl,--gc-sections  -o ../../bin/makeconv makeconv.o
ucnvstat.o genmbcs.o gencnvex.o -L../../lib -licutu -L../../lib -licui18n
-L../../lib -licuuc -L../../stubdata -licudata -lpthread -ldl -lm
lto1: internal compiler error: tree check: expected function_decl, have
<invalid tree code> in opts_for_fn, at tree.h:4706
0x109fcf23 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9290
0x10164e17 tree_check(tree_node const*, char const*, int, char const*,
tree_code)
        ../../gcc/gcc/tree.h:3091
0x10164e17 opts_for_fn
        ../../gcc/gcc/tree.h:4706
0x10d90b33 opts_for_fn
        ../../gcc/gcc/tree.h:2846
0x10d90b33 ipa_icf::sem_item_optimizer::filter_removed_items()
        ../../gcc/gcc/ipa-icf.c:1656
0x10d921bf ipa_icf::sem_item_optimizer::execute()
        ../../gcc/gcc/ipa-icf.c:1703
0x10d930a3 ipa_icf_driver
        ../../gcc/gcc/ipa-icf.c:2460
0x10d930a3 ipa_icf::pass_ipa_icf::execute(function*)
        ../../gcc/gcc/ipa-icf.c:2508
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.
lto-wrapper: fatal error: /home/trippels/gcc_test/usr/local/bin/c++ returned 1
exit status


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

* [Bug ipa/64664] [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
  2015-01-19  7:04 [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 trippels at gcc dot gnu.org
@ 2015-01-19  7:08 ` trippels at gcc dot gnu.org
  2015-01-19 10:50 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-19  7:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-19
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Looking at the patches the culprit is definetely r219823.


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

* [Bug ipa/64664] [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
  2015-01-19  7:04 [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 trippels at gcc dot gnu.org
  2015-01-19  7:08 ` [Bug ipa/64664] " trippels at gcc dot gnu.org
@ 2015-01-19 10:50 ` rguenth at gcc dot gnu.org
  2015-01-19 18:07 ` marxin at gcc dot gnu.org
  2015-01-19 20:43 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-19 10:50 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1


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

* [Bug ipa/64664] [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
  2015-01-19  7:04 [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 trippels at gcc dot gnu.org
  2015-01-19  7:08 ` [Bug ipa/64664] " trippels at gcc dot gnu.org
  2015-01-19 10:50 ` rguenth at gcc dot gnu.org
@ 2015-01-19 18:07 ` marxin at gcc dot gnu.org
  2015-01-19 20:43 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-19 18:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Jan 19 18:07:08 2015
New Revision: 219853

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

        PR ipa/64664
    * ipa-icf.c (sem_item_optimizer::filter_removed_items):
    Handle safe potentially removed nodes during filtering.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-icf.c
>From gcc-bugs-return-473882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 18:08:06 2015
Return-Path: <gcc-bugs-return-473882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15101 invoked by alias); 19 Jan 2015 18:08: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 14943 invoked by uid 48); 19 Jan 2015 18:07:59 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64664] [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
Date: Mon, 19 Jan 2015 18:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-64664-4-7jzoRX7Ubw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64664-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64664-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01876.txt.bz2
Content-length: 442

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 5.0.0.
>From gcc-bugs-return-473883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 18:09:57 2015
Return-Path: <gcc-bugs-return-473883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18468 invoked by alias); 19 Jan 2015 18:09:56 -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 18161 invoked by uid 48); 19 Jan 2015 18:09:50 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/64435] [5 Regression] Bootstrap failure in libsanitizer on AArch64 with Linux kernel <= 3.15
Date: Mon, 19 Jan 2015 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: major
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64435-4-tP9uSNq4QX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64435-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-01/txt/msg01877.txt.bz2
Content-length: 1383

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd435

--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #17)
> PPC64 actually supports both 44 and 46 bit address space:
>
> uptr GetMaxVirtualAddress() {
> #if SANITIZER_WORDSIZE == 64
> # if defined(__powerpc64__)
>   // On PowerPC64 we have two different address space layouts: 44- and
> 46-bit.
>   // We somehow need to figure out which one we are using now and choose
>   // one of 0x00000fffffffffffUL and 0x00003fffffffffffUL.
>   // Note that with 'ulimit -s unlimited' the stack is moved away from the
> top
>   // of the address space, so simply checking the stack address is not
> enough.
>   // This should (does) work for both PowerPC64 Endian modes.
>   return (1ULL << (MostSignificantSetBitIndex(GET_CURRENT_FRAME()) + 1)) - 1;
> # elif defined(__aarch64__)
>   return (1ULL << 39) - 1;
> # elif defined(__mips64)
>   return (1ULL << 40) - 1;
...
> it is just that aarch64 hardcodes this right now.  Suppose doing something
> like ppc64 does could work.

Even though this is not listed here and does not really belong in this bug but
MIPS64 should be done the same way since it has many different virtual address
sizes as it has many different page sizes too (4k, 8k, 16k, 32k, and 64k).  I
wonder why ASAN folks don't just always use the way PowerPC is done.


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

* [Bug ipa/64664] [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706
  2015-01-19  7:04 [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 trippels at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-19 18:07 ` marxin at gcc dot gnu.org
@ 2015-01-19 20:43 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-01-19 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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


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

end of thread, other threads:[~2015-01-19 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19  7:04 [Bug ipa/64664] New: [5 Regression] ICE: tree check: expected function_decl, have <invalid tree code> in opts_for_fn, at tree.h:4706 trippels at gcc dot gnu.org
2015-01-19  7:08 ` [Bug ipa/64664] " trippels at gcc dot gnu.org
2015-01-19 10:50 ` rguenth at gcc dot gnu.org
2015-01-19 18:07 ` marxin at gcc dot gnu.org
2015-01-19 20:43 ` 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).