public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/63866] ICE in C++ printer with -fdump-ipa
  2014-11-14 11:10 [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa mpolacek at gcc dot gnu.org
@ 2014-11-14 11:10 ` mpolacek at gcc dot gnu.org
  2014-11-17 12:55 ` mpolacek at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-14 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-11-14
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Mine.


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

* [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa
@ 2014-11-14 11:10 mpolacek at gcc dot gnu.org
  2014-11-14 11:10 ` [Bug sanitizer/63866] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-14 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63866
           Summary: ICE in C++ printer with -fdump-ipa
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org

Likely TYPE_NAME/TYPE_STUB_DECL aren't set properly for __ubsan_*_data.

int main () { int i = __INT_MAX__; i++; asm ("" : "+g" (i)); }

$ ./cc1plus -quiet -fsanitize=undefined x.C -fdump-ipa-all
x.C:1:62: internal compiler error: tree check: expected tree that contains
‘decl common’ structure, have ‘identifier_node’ in dump_aggr_type, at
cp/error.c:650
 int main () { int i = __INT_MAX__; i++; asm ("" : "+g" (i)); }
                                                              ^
0x123cf49 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
    /home/marek/src/gcc/gcc/tree.c:9365
0x6646b1 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
    /home/marek/src/gcc/gcc/tree.h:2871
0x79d47b dump_aggr_type
    /home/marek/src/gcc/gcc/cp/error.c:650
0x79c0ed dump_type
    /home/marek/src/gcc/gcc/cp/error.c:453
0x79ecd7 dump_type_prefix
    /home/marek/src/gcc/gcc/cp/error.c:819
0x79f819 dump_simple_decl
    /home/marek/src/gcc/gcc/cp/error.c:971
0x7a0298 dump_decl
    /home/marek/src/gcc/gcc/cp/error.c:1072
0x7a8d7f decl_as_string(tree_node*, int)
    /home/marek/src/gcc/gcc/cp/error.c:2787
0x7a8e73 lang_decl_name(tree_node*, int, bool)
    /home/marek/src/gcc/gcc/cp/error.c:2822
0x8796ed cxx_printable_name_internal
    /home/marek/src/gcc/gcc/cp/tree.c:2026
0x879934 cxx_printable_name(tree_node*, int)
    /home/marek/src/gcc/gcc/cp/tree.c:2062
0xa186c4 symtab_node::name() const
    /home/marek/src/gcc/gcc/symtab.c:475
0xa19150 symtab_node::dump_base(_IO_FILE*)
    /home/marek/src/gcc/gcc/symtab.c:787
0x128d1d8 varpool_node::dump(_IO_FILE*)
    /home/marek/src/gcc/gcc/varpool.c:224
0xa19c37 symtab_node::dump(_IO_FILE*)
    /home/marek/src/gcc/gcc/symtab.c:903
0xa19c88 symtab_node::dump_table(_IO_FILE*)
    /home/marek/src/gcc/gcc/symtab.c:914
0xa342c1 symbol_table::compile()
    /home/marek/src/gcc/gcc/cgraphunit.c:2276
0xa34401 symbol_table::finalize_compilation_unit()
    /home/marek/src/gcc/gcc/cgraphunit.c:2342
0x798258 cp_write_global_declarations()
    /home/marek/src/gcc/gcc/cp/decl2.c:4677
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.
>From gcc-bugs-return-466743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Nov 14 11:11:43 2014
Return-Path: <gcc-bugs-return-466743-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13820 invoked by alias); 14 Nov 2014 11:11:43 -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 13621 invoked by uid 48); 14 Nov 2014 11:11:38 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/63866] ICE in C++ printer with -fdump-ipa
Date: Fri, 14 Nov 2014 11:11: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:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63866-4-kFkNy7QaJM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63866-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63866-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: 2014-11/txt/msg01215.txt.bz2
Content-length: 143

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

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r205684.


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

* [Bug sanitizer/63866] ICE in C++ printer with -fdump-ipa
  2014-11-14 11:10 [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa mpolacek at gcc dot gnu.org
  2014-11-14 11:10 ` [Bug sanitizer/63866] " mpolacek at gcc dot gnu.org
@ 2014-11-17 12:55 ` mpolacek at gcc dot gnu.org
  2014-11-18 14:56 ` mpolacek at gcc dot gnu.org
  2014-11-18 14:58 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-17 12:55 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zsojka at seznam dot cz

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 63911 has been marked as a duplicate of this bug. ***


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

* [Bug sanitizer/63866] ICE in C++ printer with -fdump-ipa
  2014-11-14 11:10 [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa mpolacek at gcc dot gnu.org
  2014-11-14 11:10 ` [Bug sanitizer/63866] " mpolacek at gcc dot gnu.org
  2014-11-17 12:55 ` mpolacek at gcc dot gnu.org
@ 2014-11-18 14:56 ` mpolacek at gcc dot gnu.org
  2014-11-18 14:58 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-18 14:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Nov 18 14:55:44 2014
New Revision: 217718

URL: https://gcc.gnu.org/viewcvs?rev=217718&root=gcc&view=rev
Log:
    PR sanitizer/63866
    * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
    put it into TYPE_NAME and TYPE_STUB_DECL.
    * ubsan.c (ubsan_type_descriptor_type): New variable.
    Function renamed to ...
    (ubsan_get_type_descriptor_type): ... this.  Cache
    return value in ubsan_type_descriptor_type variable.
    Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
    TYPE_NAME and TYPE_STUB_DECL.
    (ubsan_get_source_location_type): Create a TYPE_DECL for
    "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
    (ubsan_type_descriptor, ubsan_create_data): Call
    ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
    Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.

    * c-c++-common/ubsan/pr63866.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr63866.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/asan.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c


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

* [Bug sanitizer/63866] ICE in C++ printer with -fdump-ipa
  2014-11-14 11:10 [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa mpolacek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-11-18 14:56 ` mpolacek at gcc dot gnu.org
@ 2014-11-18 14:58 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-18 14:58 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-11-18 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-14 11:10 [Bug sanitizer/63866] New: ICE in C++ printer with -fdump-ipa mpolacek at gcc dot gnu.org
2014-11-14 11:10 ` [Bug sanitizer/63866] " mpolacek at gcc dot gnu.org
2014-11-17 12:55 ` mpolacek at gcc dot gnu.org
2014-11-18 14:56 ` mpolacek at gcc dot gnu.org
2014-11-18 14:58 ` mpolacek 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).