From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17525 invoked by alias); 9 Oct 2010 22:46:01 -0000 Received: (qmail 17510 invoked by uid 22791); 9 Oct 2010 22:45:59 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Sat, 09 Oct 2010 22:45:55 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/45865] [4.6 regression] Failed to build 403.gcc in SPEC CPU 2006 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: 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 Date: Sat, 09 Oct 2010 22:46:00 -0000 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: 2010-10/txt/msg00820.txt.bz2 Message-ID: <20101009224600.q70B1NoASvDJje2fNJi37NDXTFQXOJ8iar3nZBvV52s@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45865 --- Comment #6 from H.J. Lu 2010-10-09 22:45:44 UTC --- A small testcase -- [hjl@gnu-6 gcc]$ cat /export/gnu/import/delta/foo.c typedef union tree_node *tree; enum ix86_builtin_type { IX86_BT_LAST_VECT, IX86_BT_LAST_PTR }; extern const enum ix86_builtin_type ix86_builtin_type_ptr_base[]; extern tree build_qualified_type (tree, int); extern tree build_pointer_type (tree); tree ix86_get_builtin_type (enum ix86_builtin_type tcode, unsigned int index) { tree type, itype; int quals; if (tcode <= IX86_BT_LAST_PTR) quals = 0x0; else quals = 0x1; itype = ix86_get_builtin_type (ix86_builtin_type_ptr_base[index], index); if (quals != 0x0) itype = build_qualified_type (itype, quals); type = build_pointer_type (itype); return type; } [hjl@gnu-6 gcc]$ ./xgcc -B./ -O2 -g -fcompare-debug -S -m32 /export/gnu/import/delta/foo.c -Wall xgcc: error: /export/gnu/import/delta/foo.c: -fcompare-debug failure (length) [hjl@gnu-6 gcc]$ ----