From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26036 invoked by alias); 18 Jul 2004 04:11:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26011 invoked by uid 48); 18 Jul 2004 04:11:37 -0000 Date: Sun, 18 Jul 2004 04:11:00 -0000 Message-ID: <20040718041137.26010.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040118181022.13730.jakub@gcc.gnu.org> References: <20040118181022.13730.jakub@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/13730] Calls through function pointer at -fpic not optimized to call through PLT when possible X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02196.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-18 04:11 ------- It is a direct call now on the mainline: bar: pushl %ebp movl %esp, %ebp pushl %ebx call __i686.get_pc_thunk.bx addl $_GLOBAL_OFFSET_TABLE_, %ebx subl $4, %esp call baz@PLT popl %eax popl %ebx popl %ebp ret Which is good as you with -fpic I see as there no way to get sibcalling with -fpic (even with a direct call). -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |3.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13730