From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26857 invoked by alias); 2 May 2012 15:19:18 -0000 Received: (qmail 26848 invoked by uid 22791); 2 May 2012 15:19:17 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 May 2012 15:18:58 +0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/50602] ICE in tree_nrv, at tree-nrv.c:155 during large LTO build Date: Wed, 02 May 2012 15:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-05/txt/msg00124.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602 --- Comment #15 from Markus Trippelsdorf 2012-05-02 15:18:53 UTC --- This one is nicer (compiles without warnings): typedef __u32; typedef (*initcall_t) (); struct IO_APIC_route_entry { __u32 dest; } ; struct syscore_ops { int (*suspend) (); } ; struct { struct IO_APIC_route_entry entry; } a; int b; struct IO_APIC_route_entry ioapic_read_entry () { io_apic_read (2 * b); return a.entry; } save_ioapic_entries () { ioapic_read_entry (); } print_ICs () { ioapic_read_entry (); } initcall_t c __attribute__ ((__used__)) = print_ICs; struct syscore_ops d = {.suspend = save_ioapic_entries }; ioapic_init_ops () { register_syscore_ops (&d); } initcall_t e __attribute__ ((__used__)) = ioapic_init_ops;