This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
glibc project.

Discussion threads:

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.


Carlos O'Donell
Mentor Graphics / CodeSourcery
+1 (613) 963 1026

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]