This is the mail archive of the
mailing list for the glibc project.
Summary of the "Use __unused0" discussion.
- From: Carlos O'Donell <carlos_odonell at mentor dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Fri, 3 Feb 2012 17:06:29 -0500
- Subject: Summary of the "Use __unused0" discussion.
On January 1st Guillem Jover submitted two patches whose succient
problem definition is as such (quoting Guillem's original email):
On BSD systems __unused has traditionally been defined to mean the
equivalent of gcc's __attribute__((__unused__)). The problem comes when
defining such macro while trying to build unmodified source code with
BSD origins on systems with glibc ports headers. Separate patches have
been sent to fix the same issue on Linux kernel headers and the main
The arguments against applying the patch are:
* All symbols starting with _ belong to the system.
* Desire to avoid the slippery slope of changing the C library for broken code.
The arguments for applying the patch are:
* There is value in supporting of an existing body of BSD code on glibc-based systems.
* It is a one time change similar to __vector, __block, and even __thread.
There does not appear to be any technical reason to reject the patch.
Mentor Graphics / CodeSourcery
+1 (613) 963 1026