This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PING: [RFA] Fix New ARI warning Tue Nov 6 01:58:48 UTC 2012
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Joel Brobecker'" <brobecker at adacore dot com>, "'Pedro Alves'" <palves at redhat dot com>, <devans at sourceware dot org>, <gdb-patches at sourceware dot org>
- Date: Mon, 12 Nov 2012 09:29:11 -0700
- Subject: Re: PING: [RFA] Fix New ARI warning Tue Nov 6 01:58:48 UTC 2012
- References: <20121106015848.GA5296@sourceware.org> <5098efb2.05fd440a.7696.ffffd821SMTPIN_ADDED@mx.google.com> <50995EBB.6070503@redhat.com> <001b01cdc0b6$7e7b67d0$7b723770$@muller@ics-cnrs.unistra.fr> <20121112155053.GS5103@adacore.com> <22453.3111825169$1352736109@news.gmane.org>
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> For the second category, a possible solution would be to
Pierre> add or override the function as a macro that would generate an error
Pierre> at compilation time,
Pierre> but I am not sure this is easy to do in a way that would
Pierre> work for all systems...
IMO it is ok if it doesn't work universally as long as it works for a
large enough subset of gdb developers. This will ensure that most
breakages are caught early.
GCC uses the poison pragma for this. It seems to work well enough.
Tom