From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31025 invoked by alias); 21 Sep 2008 18:33:02 -0000 Received: (qmail 30528 invoked by uid 48); 21 Sep 2008 18:31:43 -0000 Date: Sun, 21 Sep 2008 18:33:00 -0000 Message-ID: <20080921183143.30527.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug testsuite/37202] FAIL: gcc.dg/visibility-1[4-9].c In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "danglin at gcc dot gnu dot org" 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: 2008-09/txt/msg02450.txt.bz2 ------- Comment #5 from danglin at gcc dot gnu dot org 2008-09-21 18:31 ------- This is also failing on hppa-unknown-linux-gnu. It uses the define in elfos.h. assemble_external is not called. It looks like output_operand is wrong: output_operand (rtx x, int code ATTRIBUTE_UNUSED) { if (x && GET_CODE (x) == SUBREG) x = alter_subreg (&x); /* X must not be a pseudo reg. */ gcc_assert (!x || !REG_P (x) || REGNO (x) < FIRST_PSEUDO_REGISTER); PRINT_OPERAND (asm_out_file, x, code); if (x && MEM_P (x) && GET_CODE (XEXP (x, 0)) == SYMBOL_REF) { tree t; x = XEXP (x, 0); t = SYMBOL_REF_DECL (x); if (t) assemble_external (t); } } Breakpoint 4, output_operand (x=0x40146480, code=72) at ../../gcc/gcc/final.c:3365 3365 if (x && GET_CODE (x) == SUBREG) (gdb) p debug_rtx (x) (symbol_ref:SI ("foo") [flags 0x42] ) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37202