From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18456 invoked by alias); 9 Sep 2002 18:10:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18447 invoked from network); 9 Sep 2002 18:09:57 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 9 Sep 2002 18:09:57 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EE2CF3F27; Mon, 9 Sep 2002 14:09:57 -0400 (EDT) Message-ID: <3D7CE3F5.9060100@ges.redhat.com> Date: Mon, 09 Sep 2002 11:10:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tromey@redhat.com Cc: gdb@sources.redhat.com Subject: Re: Issue an internal warning on first deprecated function call References: <3D5C248D.4030003@ges.redhat.com> <87bs7wm95m.fsf@fleche.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00055.txt.bz2 >>>>>> "Andrew" == Andrew Cagney writes: > > > Andrew> The idea is to issue an internal-warning on the first call to a > Andrew> deprecated [multi-arch] function. > > Andrew> Thoughts? Variations on the idea? > > What about marking functions as deprecated at compile time using > __attribute__? Then the burden falls on the maintainers not to call > deprecated functions. (I'm not certain that > __attribute__((deprecated)) works if you are calling through a > function pointer.) Hmm, thanks. I thought there was such an attribute but couldn't find it in the version of the doco I was looking at. I'll try to check it out. thanks, Andrew