From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4237 invoked by alias); 24 Jun 2009 19:26:29 -0000 Received: (qmail 4189 invoked by uid 48); 24 Jun 2009 19:26:15 -0000 Date: Wed, 24 Jun 2009 19:26:00 -0000 Message-ID: <20090624192615.4188.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/40528] Add a new ifunc attribute In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub 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: 2009-06/txt/msg01806.txt.bz2 ------- Comment #5 from jakub at gcc dot gnu dot org 2009-06-24 19:26 ------- What do you do if the function has arguments, because ifunc shouldn't have arguments? While C++ has unnamed arguments and you could perhaps enforce them, C does not. How do you handle option 3 with: __attribute__((ifunc)) int foo (int a, int b) { if (a) return foo_1; if (b) return foo_2; return foo_3; } ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40528