From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24986 invoked by alias); 14 May 2013 02:44:27 -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 Received: (qmail 24952 invoked by uid 48); 14 May 2013 02:44:24 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57260] Generated R_MIPS_GOT_MIPS relocation for direct function call while compiling with -O2 on MIPS N64 Date: Tue, 14 May 2013 02:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2013-05/txt/msg00879.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57260 --- Comment #8 from Andrew Pinski --- (In reply to Lee Duhem from comment #7) > Would you like to check again about the first case? I think > these two case are different. No they are both the same case: ld $25,%got_disp(DRIWakeupHandler)($28) .loc 1 179 0 ld $28,32($sp) .loc 1 178 0 move $4,$0 move $5,$0 move $6,$0 .cfi_restore 16 .cfi_restore 17 .cfi_restore 18 .cfi_restore 28 .cfi_restore 31 .reloc 1f,R_MIPS_JALR,DRIWakeupHandler 1: jr $25 daddiu $sp,$sp,48 .... ld $25,%got_disp(DRIBlockHandler)($28) .loc 1 161 0 ld $28,64($sp) .loc 1 137 0 move $4,$0 move $5,$0 move $6,$0 .cfi_restore 16 .cfi_restore 17 .cfi_restore 18 .cfi_restore 19 .cfi_restore 20 .cfi_restore 21 .cfi_restore 22 .cfi_restore 28 .cfi_restore 31 .reloc 1f,R_MIPS_JALR,DRIBlockHandler 1: jr $25 daddiu $sp,$sp,80